Create Slip Payment
Create a slip session for slip-based fiat payment. Returns a session token and a redirect URL where the depositor transfers and submits the slip.
How to use in 4 steps
You call the API once at the start and take the webhook at the end; the customer does the rest on our page
Create the payment
YouSend the amount and the account the customer will transfer from, plus X-Idempotency-Key — reuse the same key when you retry
{
"role": "DEPOSITOR",
"amount": 200,
"ttl_seconds": 1200, // link lives 20 minutes
"profile": { "depositor": {
"sender_bank": "SCB", // account the customer pays from
"sender_account": "1234567890"
}},
"order_id": "ODRW-322863625",
"order_user_reference": "USER134",
"return_url": "https://merchant.example.com/deposit/done"
}"redirect_url": "https://demo.sky777881.xyz/pay/slip/yUFSwamgJN…"
Send the customer the link
YouRedirect them there, or send the link over any channel — it expires after ttl_seconds
Wait while the customer pays
Customeron our pageEverything happens on that page and you never check the slip yourself — the customer must transfer from the exact account you registered

Credit the customer from this event only — not when the create call succeeds, and not when the page returns to return_url
PAYMENT_PAIDThe transfer landed — credit order ODRW-322863625
PAYMENT_FAILEDThe slip was already used (DUPLICATE_SIGNATURE)
Expired with no accepted slip = no webhook — poll GET /v1/payment/info yourself
https://testnet.trustsig.xyz/v1/p2p/public/session/createAuthentication Status
API Key is required for all requests Webhook Secret
Headers
x-api-keyAPI Key for authentication
x-signatureHMAC-SHA256 signature for authentication
x-timestampTimestamp (milliseconds) for signature
X-Idempotency-KeyUnique key สำหรับป้องกันการทำรายการซ้ำ (เช่น UUID)
Parameters (Request Body)
roleบทบาทของผู้ใช้ session (ใช้ DEPOSITOR สำหรับฝั่งผู้ฝากเงิน)
ttl_secondsอายุของ session เป็นวินาที (เช่น 1200 = 20 นาที)
profile.depositor.sender_bankรหัสธนาคารของผู้ฝาก (เช่น SCB, KBANK, BBL)
profile.depositor.sender_accountเลขบัญชีธนาคารของผู้ฝาก
amountจำนวนเงินที่ต้องการชำระ (หน่วยเป็นบาท)
order_idA unique order reference ID from your system (e.g., mystore_order_1234, uuid). Please use the same Order ID for the same transaction and do not generate a new one.
order_user_referenceCustomer Name
return_urlURL ที่จะ redirect กลับเมื่อทำรายการเสร็จสิ้น
