Create pay-in
POST /api/v1/pay/create
Channels under maintenance are excluded when creating and confirming new orders. A maintenance channel cannot remain selected while the record is only a session and no formal order exists. Formal orders created before maintenance continue to use their original channel. See Channel maintenance.
| Field | Type | Required | Description |
|---|---|---|---|
merchant_order_no |
string | Yes | Merchant-unique order number, up to 128 characters. |
amount |
string | Yes | Decimal amount, for example 100.00 |
currency |
string | Yes | Uppercase currency code, such as MYR, SGD, or USDT. |
channel_code |
string | No | Optional. When provided, limits the cashier choices to this channel, which must still satisfy the current merchant, currency, payment type, and limit requirements. |
customer_id |
string | No | Customer identifier, up to 191 characters. |
customer_name |
string | No | Customer name, up to 191 characters. |
customer_email |
string | No | Valid customer email address, up to 254 characters. |
customer_phone |
string | No | Customer phone number, up to 191 characters. |
payer_bank_code |
string | No | Platform payment code, identified together with currency. Supports verified banks, payment schemes, or payment methods. Channels that require payer bank details still support only DBS, UOB, and OCBC; values are case-sensitive. |
payer_bank_account_owner |
string | No | Payer account name, up to 191 characters. |
payer_bank_account_number |
string | No | Payer account number, up to 191 characters. |
payer_username |
string | No | Optional payer username, up to 191 characters. |
notify_url |
string | No | Asynchronous notification URL. If omitted, the merchant's default notification URL is used. Production must use HTTPS. |
return_url |
string | No | Browser return URL for this session. It must be an absolute HTTP(S) URL up to 2048 bytes. If omitted, the merchant's default URL is used when available. A browser return does not prove payment success. |
Customer and payer fields prefill the cashier. Users may edit or complete them before confirmation, and conditionally required fields are validated against the selected channel. Bank codes must be supported by that channel. After confirmation, submission uses the selected channel. If the selection becomes invalid, an error is returned instead of switching channels automatically.
Request example:
{
"api_key": "<API_KEY>",
"merchant_id": "merchant_1001",
"merchant_order_no": "PAY202609160001",
"amount": "100.00",
"currency": "MYR",
"notify_url": "https://merchant.example.com/payment/notify",
"return_url": "https://merchant.example.com/payment/result",
"timestamp": "1789516800",
"nonce": "550e8400-e29b-41d4-a716-446655440000",
"sign": "<64位小写HMAC-SHA256>"
}
Response example:
{
"code": 0,
"message": "OK",
"data": {
"checkout_mode": "cashier",
"platform_order_no": "P202609160001",
"merchant_order_no": "PAY202609160001",
"amount": "100.00",
"requested_amount": "100.00",
"currency": "MYR",
"status": "awaiting_payment_method",
"payment_url": "https://cashier.example.com/#/cashier/<opaque-token>",
"expired_at": "2026-09-16T15:30:00Z"
},
"request_id": "req_01JEXAMPLE"
}