Create Material
Create Material
Request URL
POST
https://rem-api-sandbox.pagsmile.com/remittance/collection/create-material
Request Header
Content-Type*
string
application/json; charset=UTF-8
Request Body
Refer to : common
Biz_data
merchant_id*
long
Merchant ID
material_name*
string
Material Name
currency*
string
Currency
amount*
string
Amount
buyer_name
string
Buyer Name
If business_type is 'business_goods' or 'business_service',it is required
buyer_country
string
Buyer Country
Refer to Country Code
If business_type is 'business_goods' or 'business_service',it is required
sender_name*
string
Sender Name
sender_relationship*
string
Sender Relationship
goods[0].name
string
Goods name
goods[0].num
int
Goods count
collection_ids
List<Long>
Collection ID List
Response
{
"code": "10000",
"msg": "Success",
"data":{
},
"random_key":"abssdddd2wdw==",
"sign_type": "RSA",
"app_id": "2017051914172236111"
}
material_id*
long
Material ID
Example
curl --location --request POST 'https://rem-api-sandbox.pagsmile.com/remittance/collection/create-material' \
--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
Was this helpful?