Callback

Headers We encourage verify signature to make sure that payload is truely send by our server

Field Name
Type
Description

x-appid

String

x-signature

String

Deposit Callback

POST https://<Agent Url deposit callback>

Field Name
Type
Description

refId

String

Ref ID (Unique ID generate by agent)

transactionId

String

userId

String

amount

Number (Decimal)

fee

Number (Decimal)

fee of this transaction

status

String

PAID, FAILED, EXPIRED,VOID

extParams

Object

Extra parameter that provide by agent when creating deposit order

successAt

Datetime

Datetime when this transaction complete YYYY-MM-DD HH:mm:ss

wallet

Object

{ balance: 111 } Wallet Balance of the agent

flag_incorrect_payee

Boolean (optional)

(this info may available only some payment providers) default false, can be true if provider can detect payee's account number didn't match with payee's account number provided when creating order

payee

Object (optional)

{       
  account_number:
  account_name: 
  account_bank_code: 
  std_bank_code: 
}

this info may available only some payment providers

Expected Response As for now we rely on (http status code 200) if http status code 200, the system will stop sending nofify, we log latest response content returned by your callback function ณ ตอนนี้ เราสนใจแค่สถานะของ HTTP STATUS CODE 200, เราเก็บบันทึกข้อมูลการตอบรับจากบริการของคุณ For example:

Http Status Code 200, 201, 202

{ "code": 0 }
{ 
   "code": 0,
   "message": "Success"
}

Http Status Code 400, 401, 500, 422 will be treat as error response

Withdraw Callback

POST https://<Agent Url withdraw callback>

Field Name
Type
Description

refId

String

Ref ID (Unique ID generate by agent)

transactionId

String

userId

String

amount

Integer

fee

Decimal

fee of this transaction

status

String

PAID, FAILED, REVERT, CANCEL

extParams

Object

Extra parameter that provide by agent when creating deposit order

successAt

Datetime

Datetime when this transaction complete YYYY-MM-DD HH:mm:ss

wallet

Object

{ balance: 000 } Wallet Balance of the agent

{ 
   "code": 0,
   "message": "Success"
}

*** Callback สามารถถูกยิงซ้ำได้ กรุณารองรับการยิง callback ซ้ำ เช่นในกรณี รายการถนสำเร็จ มีการตีกลับไปยังเพย์เม้น Status Wating => Status Success => * Status REVERT *

Last updated