API create PaymentLink
Endpoint URL for UAT:https://uat-pms.galaxypay.vn/api-ex/payment-link/create
Request Message
curl --location 'https://uat-pms.galaxypay.vn/api-ex/qrpayment/create' \
--header 'X-Caller: YOUR_CALLER_ID' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'X-Signature: c9656c694bba19c50df209d74686cc19d4f3569709e6e7d65452a8b5cd62d90a' \
--header 'Content-Type: application/json' \
--header 'Cookie: SESSION=ZGJhNjEwODYtZTE5Mi00NTg0LTlhY2MtZGU5ODBjMzkxZWQw' \
--data '{
"amount": 112000,
"linkName":"Thanh toán hoá đơn ORDER123",
"requestId":"cd80bae6-3d24-44a8-9760-71b3e17fe27c",
"description": "Thanh toán hoá đơn",
"expiryDuration": 3,
"paymentMethod": [
"GPAY",
"MPGS",
"QRPAY",
"MOMO",
"ZALOPAY",
"NAPAS"
],
"customerField": [
"email",
"fullname",
"phone",
"shippingAddress"
],
"orderReference": "TS1909",
"ipnUrl":"https://abc.com/api/ipn/123"
}'
Body
1
amount
Numeric(16) mandatory
Transaction amount
1
linkName
Alphanumeric mandatory
Name of payment link, it show in portal
1
requestId
Alphanumeric(50) mandatory
Unique ID for each transaction request
Recommend: GUID
1
description
Alphanumeric(250) mandatory
A brief description of the Payment Link
1
expiryDuration
Numeric mandatory
Number of days at which the Payment Link expired.
1
paymentMethod
Alphanumeric mandatory
List of payment method: "GPAY", "MPGS", "QRPAY", "MOMO", "ZALOPAY", "NAPAS"
1
customerField
Alphanumeric optional
Collect additional information from your customer using custom fields. Up to 4 fields are supported.
1
orderReference
Alphanumeric optional
Reference number tagged to a Payment Link
1
ipnUrl
Alphanumeric optional
IPN URL
Body
Response Message
{
"requestId": "cd80bae6-3d24-44a8-9760-71b3e17fe27c",
"responseDateTime": "20230227231841",
"responseCode": "200",
"responseData": {
"shortLink": "https://uat-s.galaxypay.vn/PFwP2YsLoyuwoXeF7",
"orderNo": "9354202307051688550745270"
}
}
Last updated