Skip to main content

withdrawal

Withdrawal

Overview

To initiate the withdrawal process, vendors need to call into the TCash API.

The staging environement for the TCash API is located at: https://staging.api.tcash.me

The process goes as follows:

Authentication

When calling the TCash 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.tcash.me/agent/money-transfer/voucher
Method: POST

Request

amount
integer <int32>
{
  • "amount": 0
}
danger

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

Response

message
string or null
Array of objects or null (ErrorDto)
(VoucherDto (object or null))
voucherUrl
string or null
{
  • "message": "string",
  • "errors": [
    ],
  • "moneyTransfer": {
    },
  • "voucherUrl": "string"
}