post
/{tenantId}/v1/billing/settleSettle outstanding balance
Requires Authentication
Billing
Payments
Clears a wallet suspension by charging the outstanding negative
balance through the supplied (or default) payment method.
Path Parameters
| Name | Type | Description |
|---|---|---|
tenantIdrequired | string (uuid) | Tenant UUID |
Request Body
required
paymentMethodIdstring (uuid)
- Optional; defaults to the tenant's current default method.idempotencyKeystring (uuid)
required
acknowledgeCreditsinteger (int64)
- Optional sanity-check on the outstanding credits the caller believes they owe. Refused if non-zero and doesn't match the server-computed outstanding.Responses
Settlement charge created
Response Bodyapplication/json
transactionIdstring (uuid)
statusstring
enum: "succeeded" | "requires_action" | "pending_external" | "failed"providerIntentIdstring
requiresActionUrlstring
failureCodestring
failureMessagestring
Code Examples
curl -X POST 'https://api-next.checkio.co.uk/{tenantId}/v1/billing/settle' \
-H 'Authorization: Bearer {token}' \
-H 'Content-Type: application/json' \
-d '{
"paymentMethodId": "00000000-0000-0000-0000-000000000000",
"idempotencyKey": "00000000-0000-0000-0000-000000000000",
"acknowledgeCredits": 0
}'