Base URL https://payments.clocknext.com/api/v1
Tops up (positive delta) or draws down (negative delta) the customer's wallet in USD, on any plan or none. The wallet may go negative. With pool: "reserved" it moves the Reserved Wallet, which can't go below 0 (422). Send an idempotencyKey to make retries safe.
apiKeyAuthorizationBearer <cnk_…>Organisation-scoped key from Settings → API Keys.
id*stringCustomer id.
application/json- body
delta*numberChange in USD: positive tops up, negative draws down. Not 0.
notes?stringYour note about the change, up to 200 characters. The wallet ledger shows it as notes on the row.
length <= 200pool?stringmain (default) or reserved — the Reserved Wallet, when your workspace has it on.
"main""main""reserved"idempotencyKey?stringMakes retries safe: a repeat with the same key adjusts nothing and returns replayed: true.
1 <= length <= 255Wallet balance adjusted.
application/json- response
statusCode*integerThe HTTP status code of the response, repeated in the body.
statusDetail*The status of the request. status is SUCCESS, and message says what happened.
result*The result of the Wallet balance change.
curl -X POST 'https://payments.clocknext.com/api/v1/customers/cus_abc123/wallet/adjust' \ -H 'Content-Type: application/json' \ -d '{ "delta": 100, "notes": "Prepaid top-up — PO 4471", "idempotencyKey": "adj-nw-wallet-po4471"}'{ "statusCode": 200, "statusDetail": { "status": "SUCCESS", "message": "Wallet balance adjusted." }, "result": { "adjusted": true, "replayed": false, "remaining": 144.881975, "customerArchived": false }}Base URL https://payments.clocknext.com/api/v1
The same call, addressed by the customer's externalId. Same body and response.
apiKeyAuthorizationBearer <cnk_…>Organisation-scoped key from Settings → API Keys.
externalId*stringYour own id for the customer: 1–64 letters, numbers or "-". Case-sensitive.
^[A-Za-z0-9-]{1,64}$1 <= length <= 64application/json- body
delta*numberChange in USD: positive tops up, negative draws down. Not 0.
notes?stringYour note about the change, up to 200 characters. The wallet ledger shows it as notes on the row.
length <= 200pool?stringmain (default) or reserved — the Reserved Wallet, when your workspace has it on.
"main""main""reserved"idempotencyKey?stringMakes retries safe: a repeat with the same key adjusts nothing and returns replayed: true.
1 <= length <= 255Wallet balance adjusted.
application/json- response
statusCode*integerThe HTTP status code of the response, repeated in the body.
statusDetail*The status of the request. status is SUCCESS, and message says what happened.
result*The result of the Wallet balance change.
curl -X POST 'https://payments.clocknext.com/api/v1/customers/ext/string/wallet/adjust' \ -H 'Content-Type: application/json' \ -d '{ "delta": 250, "notes": "UPI top-up"}'{ "statusCode": 200, "statusDetail": { "status": "SUCCESS", "message": "Wallet balance adjusted." }, "result": { "adjusted": true, "replayed": false, "remaining": 1074.765568, "customerArchived": false }}Types
Every object type on this page, with its fields.
WalletAdjustInput
| Field | Type | Required | Description |
|---|---|---|---|
delta | number | yes | Change in USD: positive tops up, negative draws down. Not 0. |
notes | string | no | Your note about the change, up to 200 characters. The wallet ledger shows it as notes on the row. |
pool | "main" | "reserved" | no | main (default) or reserved — the Reserved Wallet, when your workspace has it on. |
idempotencyKey | string | no | Makes retries safe: a repeat with the same key adjusts nothing and returns replayed: true. |