Create Payment Order

Create Payment Order

Request URL

POST https://rem-api-sandbox.pagsmile.com/remittance/payment/create

Request Header

Name
Type
Description

Content-Type*

string

application/json; charset=UTF-8

Request Body

Refer to : common

Biz_data

Name
Type
Description

merchant_id*

long

Merchant ID

order_no*

string

Order Number

pay_currency*

string

Pay Currency

receive_currency*

string

Receive Currency

receive_amount*

string

Receive Amount

quote_id

long

Quote ID

if pay_currency not equal pay_currency,

quote_id is required

swift_fee_method

string

SHA

OUR,

Default value:SHA

reference

string

Reference

payee_id

long

Payee ID

Choose one of payee_id and payee object

payee.receive_country*

string

Country Code

payee.pay_type*

string

Pay Type

Fixed value:swift

payee.account_type*

integer

Account Type

Fixed value: 1

payee.payee_type*

integer

payee.payee_values*

string(json)

Payee Values

choose one of payee_id and payee object

Response

{
    "code": "10000",
    "msg": "Success",
    "data":{
    },
    "random_key":"abssdddd2wdw==",
    "sign_type": "RSA",
    "app_id": "2017051914172236111"
}
Name
Type
Description

order_id*

long

Order ID

merchant_id*

long

Merchant ID

transaction_id

long

Transaction ID

order_no*

string

Order ID

order_status*

integer

Order Status

Refer to

receive_country*

string

Receive Country

pay_currency*

string

Pay currency

pay_amount

string

Pay amount

fee

string

Fee

receive_currency*

string

Receive Currency

receive_amount*

string

Receive Amount

account_num*

string

Account number

payee_name

string

Payee Name

payee_id

long

Payee ID

quote_id

long

Quote ID

conversion_rate

string

Conversion Rate

reference

string

Reference

error_message

string

Error Message

created_at*

string

Create At,

Format: yyyy-MM-dd HH:mm:ss

Example


curl --location --request POST 'https://rem-api-sandbox.pagsmile.com/remittance/payment/create' \
--header 'Content-Type: application/json' \
--data-raw '
{
    "partner_id": "000000000000001",
    "sub_partner_id": "",
    "app_id": "162051914172236138",
    "timestamp": "2011-09-23 04:24:03",
    "format": "JSON",
    "version": "2.0",
    "random_key": "jJT3+PR9CSowcR2QOK5OzMjVmTSjGoectzYbO8lENHnboElE",
    "request_id": "F6bEd39c-EecF-C1a2-AFcb-bA9BAeC8",
    "sign_type": "RSA",
    "biz_data":"jJT3+PR9CSowcR2QOK5OzMjVmTSjGoectzYbO8lENHnboElEjJT3+PR9CSowcR2QOK5OzMjVmTSjGoectzYbO8lENHnboElE"
}'

Note: 162************38 is pagsmile's test app id for sandbox

Please use your own app_id when testing.

Last updated