Disbursement

Request URL (Sandbox)

  • /trade/pay

Request Method

  • POST

Parameters

Parameter
Necessary
Type
Description

mch_order_no

Y

string

Merchant order number, should be unique

amount

Y

int

Amount of transferred fund

min:10000

bank_code

Y

string

Bank code

bank_card

Y

string

Bank account number

user_name

Y

string

Account holder's name

user_mobile

Y

string

mobile

eg:628XXXXXXXX

mch_id

Y

int

merchant id

appid

Y

int

app id

Request example

{
    "mch_order_no":"123456789011",
    "amount":10000,
    "bank_code":"BCA",
    "user_name":"test",
    "bank_card":"8223213456",
    "user_mobile":"6282121000613",
    "mch_id":10001,
    "appid":100011000
}

Response example

 {
    "code":"0",
    "message":"success",
    "data":{
        "order_no":"2019090410000001",
        "mch_order_no":"123456789011",
        "status":0,
        "pay_msg":"success"
    }
}

Respones parameters

Parameters
Can be empty
Type
Description

code

string

“0”means disbursement success

message

string

description

data[].order_no

N

string

MonetaPay unique order number

data[].mch_order_no

N

string

merchant order number

data[].status

N

int

0-pending,

1-success,

2-failed

data[].pay_msg

Y

string

transaction description

MonetaPay callback notification

  • Merchant should provide the callback url.

  • response will in json format.

  • MonetaPay will sign according to the key of the current merchant, and the data is transmitted in an encrypted way. After the merchant obtains the data, it decrypts the data and then checks the signature.

Request Parameters

Parameter
Necessary
Type
Description

order_no

Y

string

MonetaPay unique order number

mch_order_no

Y

string

Merchant order number

status

Y

int

0 - pending

1 - succes

2- fail

pay_msg

Y

string

Transaction description

pay_time

Y

string

Transaction time

Format:

YYYY-MM-DD HH:ii:ss

Request example

POST /Postback_url HTTP/1.1 Host: www.examble.com Content-Type: application/json Cache-Control: no-cache

{“data”:{“en_data”:”xxxxxxxxxxxxxx”}}

en_data is the result of encrypting the parameter data. For the encryption algorithm, please refer to the encryption description.

Response example

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

Response Parameters

Parameter
Type
Can it be empty
Description

code

int

N

0 means success, when code is not 0, data can be empty

message

string

N

Description of the status

Last updated