Create a Terminal Payment Session
Documentation Index
Fetch the complete documentation index at: https://terminal-docs.xendit.co/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Headers
Idempotency key to ensure the request is not processed multiple times
The sub-account user-id to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information.
The XenPlatform split rule ID that will be applied to this transaction. This header is only used if you have access to xenPlatform.
Body
IDR, VND, THB, MYR x >= 1ID, VN, TH, MY PAY TERMINAL "ref_123456789"
"cus_123456789"
"Payment for order #123"
Response
Terminal Payment Session created successfully
^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$"ref_123456789"
PAY IDR, VND, THB, MYR x >= 1ID, VN, TH, MY TERMINAL ACTIVE, COMPLETED, FAILED, CANCELED "2024-11-06T15:32:42Z"
"2024-11-06T15:32:42Z"
"cus_123456789"
"Payment for order #123"