Skip to content

Cardless Cash Withdrawal

This endpoint is used to request a cardless cash withdrawal token via SMS.

POST https://api2.zipay.id/api/withdrawal/token/sms

This endpoint requires authentication using Bearer Token.

Authorization: Bearer {your_token}
FieldTypeRequiredDescription
amountnumberYesAmount to be withdrawn
currencystringYesCurrency (only IDR is supported)
{
"amount": 50000,
"currency": "IDR"
}

A successful response will return information about the token sent via SMS.

{
"success": true,
"message": "Withdrawal token delivery accepted",
"data": {
"delivery_id": "241a2a89-1f4d-4fa8-8503-6ef658a8fa9b",
"channel": "sms",
"masked_destination": "08*******7737",
"expires_at": "2025-12-21T16:52:38.201Z",
"retry_after_seconds": 60
}
}
FieldTypeDescription
dataobjectToken data that was sent
data.delivery_idstringUnique ID for token delivery
data.channelstringDelivery channel (sms)
data.masked_destinationstringMasked destination number for privacy
data.expires_atstringToken expiration time (ISO 8601 format)
data.retry_after_secondsnumberTime in seconds before retry is allowed
successbooleanRequest success status
messagestringResponse message

If an error occurs, the response will return detailed error information.

{
"success": false,
"message": "Validation error",
"errors": [
{
"field": "currency",
"code": "ISIN",
"message": "Withdrawal token delivery only supports IDR"
}
]
}
FieldTypeDescription
successbooleanSuccess status (always false)
messagestringGeneral error message
errorsarrayArray containing error details
FieldTypeDescription
fieldstringField that caused the error
codestringError code
messagestringDetailed error message