Tizondocs
ReferenceTest helpers

Set sandbox credit terms

POST
/v1/test_helpers/credit

Grants this account test-mode credit, as Tizon would in live: an overdraft limit up to $10,000, and net terms (kept as they are when omitted, 30 days for an account with none). Zero net terms make any debt overdue at once, so the overdraft freeze can be tried without waiting. Every change is announced as credit.updated. Moves no money, so it takes no Idempotency-Key.

Authorization

ApiKey
AuthorizationBearer <token>

An account API key, sent as Authorization: Bearer tz_live_…. The prefix selects the mode: tz_test_ for sandbox, tz_live_ for real money.

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

application/json

curl -X POST "https://example.com/v1/test_helpers/credit" \  -H "Content-Type: application/json" \  -d '{    "overdraft_limit": {      "amount": 1450,      "currency": "USD"    }  }'
{  "id": "string",  "object": "account",  "livemode": true,  "name": "string",  "status": "active",  "kyb_state": "none",  "live_access": true,  "credit": {    "overdraft_limit": {      "amount": 1450,      "currency": "USD"    },    "net_terms_days": 0,    "status": "active"  },  "created_at": "2019-08-24T14:15:22Z"}