Skip to main content

withdrawal

Withdrawal

Legacy endpoint unavailable

The withdrawal endpoint below is disabled and is not exposed in the current staging Agent API. This page preserves the legacy integration contract for reference. Contact integracija@vcash.rs before implementing withdrawals.

Overview​

The legacy withdrawal flow uses the VCash API.

The staging environement for the VCash API is located at: https://staging.api.vcash.rs

The process goes as follows:

Authentication​

When calling the VCash API, authentication is done by passing your API key in the secret header of the request.

danger

Unless you request us to change the defaults, do not use the "Bearer" prefix, do not use the Authorization header. the Header format is: secret: <your-api-key>

Create a Withdrawal Request​

Endpoint​

Endpoint: https://staging.api.vcash.rs/agent/money-transfer/voucher
Method: POST

Request​

FieldTypeDescription
amountintegerRequired. Withdrawal amount in cents.
{
"amount": 25000
}
danger

You need to send the amount as an integer, in cents. For example, if you want to send 250 RSD, you need to send 25000.

Response​

The legacy response contains these fields:

FieldTypeDescription
moneyTransferobjectCreated transfer details, including moneyTransferId, moneyTransferCode, and voucherCode.
voucherUrlstringWithdrawal URL to provide to the user.
messagestringResponse message.
errorsarray of objectsError details, with code and description for each error.