cloadyDocs
API ReferenceEndpointsAccount

Add funds to the usage balance

Charges the account card and adds the amount to the usage balance (requires full scope). A bank that wants 3-D Secure answers 402 `payment_action_required` with `clientSecret` and `paymentIntentId`; confirm it in the browser and repeat the request with `paymentIntentId`.

POST
/api/me/balance/topups
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/me/balance/topups" \  -H "Content-Type: application/json" \  -d '{    "amountCents": 500  }'
{  "balance": {    "balanceMicros": 0,    "limitCents": 1,    "exempt": true,    "month": {      "ai": {        "spentMicros": 0,        "freeMicros": 0,        "count": 0      },      "email": {        "spentMicros": 0,        "freeMicros": 0,        "count": 0      }    },    "entries": [      {        "id": "string",        "kind": "topup",        "amountMicros": 0,        "note": "string",        "createdAt": "string"      }    ]  }}