Developer SDK Kit & API Sandbox
API Version v1.0.0

API Reference Playground

Interact directly with the payment gateway endpoints. Provide your active standard API key below to perform live queries directly inside the browser.

Ensure you use a standard application key. Dedicated LINE OA extension keys are not permitted here.

POST/api/v1/tw-angpao/redeem

Claims and redeems a TrueMoney Angpao voucher. The redeemed amount will be automatically deposited to the targeted phone number saved in settings.

Request Body Parameters

Sample Response Structure

{
  "code": 0,
  "message": "Voucher successfully redeemed",
  "data": {
    "amount_stang": 5000, // 50.00 THB
    "client_identifier": "ORDER_12345",
    "phoneNumber": "0812345678",
    "status": "SUCCESS"
  }
}

SDK Code Generator

# redeem TrueMoney Voucher
curl -X POST "http://localhost:3000/api/v1/tw-angpao/redeem" \
  -H "Content-Type: application/json" \
  -H "x-api-key: gw_your_api_key_here" \
  -d '{
    "voucher_url": "https://gift.truemoney.com/campaign/?v=xxxx",
    "client_identifier": "ORDER_12345"
  }'
Developer Sandbox

As you edit parameters in the form fields, both the sandbox request execution and the generated SDK code snippets will instantly synchronize in real time.