Payout
POST
/api/payment-gateway/v2/direct-payment/merchant/payout
Request
Header Params
Content-Type
string
required
Example:
application/json
Body Params application/json
merchant_id
string
required
<= 255 characters
tran_id
string
required
<= 20 characters
beneficiaries
string
required
<= 1000 characters
amount
number <float>
required
KHR
: The amount must be greater than or equal to 100KHRUSD
: The amount must be greater than or equal to 0.01USDcurrency
string
required
KHR
or USD
.>= 3 characters<= 3 characters
custom_fields
string
optional
<= 255 characters
hash
string
required
merchant_id
, tran_id
, beneficiaries
, amount
, custom_fields
and currency
with public_key
.
<= 512 characters
Example
{
"merchant_id": "EC0001",
"tran_id": "A17259584044451",
"beneficiaries": "ElKjECTZK7ym...NX0Dt2dz...",
"amount": 3.44,
"currency": "USD",
"custom_fields": "{\"timestamp\":\"2024-08-23 10:35:55.437\",\"traceId\":\"63f9645fa3bd8678907ed4c038357385\"}",
"hash": "3c70c551a...d1092f6e22228a7686c51bc1162a..."
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/payment-gateway/v2/direct-payment/merchant/payout' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchant_id": "EC0001",
"tran_id": "A17259584044451",
"beneficiaries": "ElKjECTZK7ym...NX0Dt2dz...",
"amount": 3.44,
"currency": "USD",
"custom_fields": "{\"timestamp\":\"2024-08-23 10:35:55.437\",\"traceId\":\"63f9645fa3bd8678907ed4c038357385\"}",
"hash": "3c70c551a...d1092f6e22228a7686c51bc1162a..."
}'
Responses
🟢200OK
application/json
Body
transaction_id
string
optional
transaction_date
string
optional
external_reference
string
optional
apv
string
optional
transaction_amount
number <double>
optional
transaction_currency
string
optional
beneficiaries
array [object {5}]
optional
payout_id
string
optional
name
string
optional
mid_acccount
string
optional
amount
number <double>
optional
currency
string
optional
status
object
optional
code
string
optional
0
: Success4
: Duplicated Transaction ID11
: Something went wrong. Try again or contact the merchant for help24
: Can not decrypt data25
: Allow maximum 10 beneficiaries per requests26
: Invalid Merchant Profile36
: Payout account or amount is invalid44
: Purchase amount has reached transaction limit48
: Something went wrong with requested parameters. Please try again or contact the merchant for help70
: Total purchase amount has reached daily limit. Please use difference account79
: Payment Rejected!81
: The total amount must be greater than 0. Please double check and try again.82
: Invalid transaction currency. We only support USD or KHR. Please double check and try again.83
: Transaction is duplicated.84
: Unable to access the merchant's account details. Please verify that your settlement account is still active.85
: Transaction currency does not match the merchant's currency. Please review your details.86
: Unable to debit the merchant's account.87
: Unable to retrieve the beneficiary's account details.88
: Unable to retrieve the beneficiary's MID details.89
: Unable to retrieve the beneficiary's account details.90
: The currencies for the merchant and beneficiary do not align. Please review your details.91
: Unable to credit the beneficiary's account.92
: The total payout amount does not match the total transaction amount. Please review your details.93
: Insufficient balance.400
: Bad requestmessage
string
optional
tran_id
string
optional
trace_id
string
optional
Examples
{
"transaction_id": "172595840773178",
"transaction_date": "2024-09-10T15:53:27.2157019+07:00",
"external_reference": "100FT30147412155",
"apv": "328097",
"transaction_amount": 3.44,
"transaction_currency": "USD",
"beneficiaries": [
{
"payout_id": "172595842687056",
"name": "",
"mid_acccount": "200030000",
"amount": 1.72,
"currency": "USD"
},
{
"payout_id": "172595842679750",
"name": "",
"mid_acccount": "012538302",
"amount": 1.72,
"currency": "USD"
}
],
"status": {
"code": "0",
"message": "Success!",
"tran_id": "172595840773178",
"trace_id": "e728bf3e95e32e3c97286fc9f8aef82d"
}
}