Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

Start Xendit checkout to top up org wallet

POST/v1/settings/billing/wallet/top-up
Authorization
bearerAuthbearerAuthrequired
or
apiKeyAuthapiKeyAuthrequired
Request body
requiredapplication/json
amount_idrinteger<int64>required
Responses
200OK
checkout_urlstringrequired
invoice_idstring
invoice_numberstring
payment_session_idstringrequired
reference_idstring
400Bad Request
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
401Unauthorized
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
403Forbidden
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
422Unprocessable Entity
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
500Internal Server Error
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X POST "/v1/settings/billing/wallet/top-up" \
  -H "Content-Type: application/json" \
  -d '{
  "amount_idr": 0
}'
Response
{
  "checkout_url": "string",
  "invoice_id": "string",
  "invoice_number": "string",
  "payment_session_id": "string",
  "reference_id": "string"
}