Transaction Session API

View as Markdown

Creates a Headless Apple Pay transaction session. Returns a sessionId for your integration. Requires a valid user access token and approved KYC where applicable.

Note: Ensure the quoteId was generated with paymentMethod set to apple_pay.

Headers

x-user-ipstringRequired

End user’s originating IP. More details here

x-api-keystringRequired
Partner API Key present in Transak Dashboard.
x-access-tokenstringRequired

Your Partner Access Token. Please refer here for a tutorial on generating your access token.

authorizationstringOptional

Authorization token is the accessToken received from the API - api/v2/auth/verify

Note: This is applicable for Headless Apple Pay(with Auth and KYC) Flow

x-user-identifierstringOptional

Your authenticated user Email Id address.

Note: This is applicable for Headless Apple Pay(with Auth Reliance and KYC) Flow

Request

This endpoint expects an object.
quoteIdstringRequired

Quote ID from the Quotes API.

walletAddressstringRequired
Destination crypto wallet address.
configobjectOptional
Additional optional UI configuration passed through to the session.

Response

Success
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error
500
Internal Server Error