SA-starpago-en
  1. payout
SA-starpago-en
  • Access Guidelines
  • Accessory Code Table
  • Signature Example
  • Solutions to common problems with signatures
  • Indonesia - BankCodes Table
  • Thailand - BankCodes Table
  • Pakistan - BankCodes Table
  • Philippines - BankCodes Table
  • Bengal - BankCodes Table
  • payin
    • Pakistan - Create payin
      POST
    • Thailand - Create payin
      POST
    • Philippines - Create payin
      POST
    • Bengal - Create payin
      POST
    • Payment Order Query
      GET
  • payout
    • Pakistan - Create payout
      POST
    • Thailand - Create payout
      POST
    • Philippines - Create payout
      POST
    • Bengal - Create payout
      POST
    • Payout Order Query
      GET
  • account
    • Balance Query
      GET
  • webhook
    • payin webhook
    • payout webhook
  1. payout

Thailand - Create payout

POST
{{HOST}}/api/v2/payout/order/create

Special announcement#

If the HTTP response status code is not 200 when the order is created and initiated, the order status must be verified twice through the merchant management background or the order inquiry interface. If the order exists and the status is "Generating Order" and "Transaction Abnormal", the current order is in the status of in-progress, so don't make any changes to the order. If the order exists and the status is "Generated Order" and "Transaction Exception", then the current order is in progress, so do not change any order, otherwise there may be unnecessary capital loss, so please be careful. If the business code returned by the creation interface is 400 and there is a clear parameter verification failure, you can directly determine the order failure without inquiry. If you have any questions, please confirm with the StarPago team at the first time, the query interface must be the order status (orderStatus) as the basis for order judgment, if any other abnormalities, please do not modify the order status, you need to manually participate in the StarPago team to follow up on the confirmation, please do not withdraw cash in the order of the withdrawal of information on the second withdrawal operation to avoid unnecessary loss of funds. avoid unnecessary loss of funds. Please do not withdraw your money twice to avoid unnecessary loss of funds.

Request

Body Params application/json
appId
string 
应用号
required
appID
merOrderNo
string 
商户订单号
required
商户订单号
currency
string 
金额币种
required
THB
amount
string 
required
金额
notifyUrl
string 
异步通知地址
required
异步通知地址
payMethod
string 
required
fixed "THBDF"
extra
object 
扩展信息
required
bankCode
string 
required
参考代付银行对照表
accountNo
string 
required
收款银行账号
accountName
string 
持卡人姓名
required
收款人姓名
email
string 
required
收款人邮箱
mobile
string 
required
收款人电话
attach
string 
附加信息
optional
商户附加信息,原样返回
sign
string 
签名
required
Example
{
    "appId": "a0c07e56c281c23c9b0bfd94923cfb9d",
    "merOrderNo": "94657471-ecsf-2013c-640d-2cde48001122",
    "currency": "IDR",
    "notifyUrl": "http://localhost:8888/notify",
    "sign": "c9e15a0edd9006a06c8dda3ce0b7d3b325ccfcf209f6a289750305a7ff99b788",
    "amount": 13500,
    "extra": {"email": "akin@gmail.com", "phone": "08123456789", "bankCode": "BCA", "accountNo": "2810349126", "accountName": "wang wenliang"},
    "attach": "发起代付"
}

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 -g --request POST '{{HOST}}/api/v2/payout/order/create' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appId": "a0c07e56c281c23c9b0bfd94923cfb9d",
    "merOrderNo": "94657471-ecsf-2013c-640d-2cde48001122",
    "currency": "IDR",
    "notifyUrl": "http://localhost:8888/notify",
    "sign": "c9e15a0edd9006a06c8dda3ce0b7d3b325ccfcf209f6a289750305a7ff99b788",
    "amount": 13500,
    "extra": {"email": "akin@gmail.com", "phone": "08123456789", "bankCode": "BCA", "accountNo": "2810349126", "accountName": "wang wenliang"},
    "attach": "发起代付"
}'

Responses

🟢200成功
application/json
Body
code
integer 
响应状态码
required
0为成功
data
object 
返回数据
required
orderStatus
integer 
订单状态
required
pending 0 1 -4
success 2 3
failed -1 -2 -3
orderNo
string 
交易订单号
required
merOrderNo
string 
商户订单号
required
amount
integer 
订单金额
required
currency
string 
金额币种
required
createTime
integer 
required
updateTime
integer 
required
message
string 
描述信息
required
订单异常时会返回此字段,用作异常描述
sign
string 
签名
required
msg
string 
返回文字描述
required
Example
{
    "code": 0,
    "msg": "success",
    "data": {
        "orderStatus": 1,
        "orderNo": "9efe3c74b7fc4b8ea6c1cd7f600b31fb",
        "merOrderNo": "94657471-ecsf-2013c-640d-2cde48001122",
        "amount": 13500,
        "currency": "IDR",
        "attach": "发起代付",
        "createTime": 1728015783642,
        "updateTime": 1728015783642,
        "sign": "6df9c40a4e238131e62299717e2f19fdf5964f2aea7800273368d5ea13f4dadd"
    }
}
Modified at 2025-04-28 13:16:25
Previous
Pakistan - Create payout
Next
Philippines - Create payout
Built with