Skip to navigation

Simulate VBA Transaction

View as Markdown

Simulate an incoming bank transfer transaction for Virtual Account Payments in Sandbox Environment.

Leave out source.senderName, or send the user’s exact KYC name. A different name fails the KYC name check, so no order is created, even though success is true in the response.

Authentication: use either Transak Auth, which sends the user’s authorization token, or Partner Auth (Auth Reliance), which sends x-access-token and x-user-identifier. Do not send both. See the headers below.

Headers

x-user-ipstringRequired

End user’s originating IP. More details here

x-api-keystringRequired

Your Partner API key. You can find this in the Partner Dashboard.

authorizationstringOptional

Transak Auth. The user’s accessToken from Transak’s OTP login, returned by the Verify User OTP API (/api/v2/auth/verify). Send the token on its own, with no Bearer prefix. It is valid for 30 days. Call the Refresh User Access Token API before it expires. Do not send x-access-token or x-user-identifier with it.

x-access-tokenstringOptional

Partner Auth (Auth Reliance). Your Partner Access Token, valid for 7 days. Send it with x-user-identifier, and do not send authorization. See Auth Reliance Flows and how to create a Partner Access Token.

x-user-identifierstringOptional

Partner Auth (Auth Reliance). The email address of the user you authenticated. Send it with x-access-token.

Query parameters

typestringRequired

Type of transaction to simulate. Supported value - bank_transfer.

Request

This endpoint expects an object.
amountdoubleRequired

Transaction amount to simulate. Supported range - ‘0 to 50’

paymentMethodstringRequired
Payment method identifier.
sourceobjectRequired
destinationobjectRequired

Response

dataobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error