Get payment link details
POST
/api/merchant-portal/merchant-access/payment-link/detail
Request
Header Params
Content-Type
string
required
Example:
application/json
Body Params application/json
request_time
string
required
merchant_id
string
required
merchant_auth
string
required
hash
string
required
request_time
, merchant_id
, and merchant_auth
with public_key
.
Example
{
"request_time": "20200728093403",
"merchant_id": "ec000002",
"merchant_auth": "39aaa43e6929a752.....08cdb29ab498d9604600101d8dc00a",
"hash": "EVDFA2118UD0...fbMa2b5q9CCt+sWw=="
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/merchant-portal/merchant-access/payment-link/detail' \
--header 'Content-Type: application/json' \
--data-raw '{
"request_time": "20200728093403",
"merchant_id": "ec000002",
"merchant_auth": "39aaa43e6929a752.....08cdb29ab498d9604600101d8dc00a",
"hash": "EVDFA2118UD0...fbMa2b5q9CCt+sWw=="
}'
Responses
🟢200Success
application/json
Body
data
object
required
id
string
required
title
string
optional
image
object
optional
amount
number
required
currency
string
required
KHR
, USD
.>= 3 characters<= 3 characters
status
string
required
OPEN
: The status remains open when payment_limit
is greater than total_trxn
, meaning payments can still be made.PAID
: The status changes to paid once payment_limit
equals total_trxn
. At this point, the user can no longer make payments using the PAID
payment link.description
string
required
payment_limit
number
required
total_amount_org
string
required
total_refund
string
required
total_amount
number
required
total_trxn
number
required
created_at
string
required
updated_at
string
required
expired_date
number
required
pushback_url
string
optional
payment_link
string
optional
status
object
required
code
string
required
PTL02
: Wrong hashPTL132
: Invalid payment linkmessage
string
required
code
for the details.tran_id
string
required
Examples
{
"data": {
"id": "iN4sbkzbwOCx5VzdXTYsCw==",
"title": "Test curl 001",
"image": {
"image": "",
"filename": "",
"size": 0
},
"amount": 0.02,
"currency": "USD",
"status": "OPEN",
"description": "Payment link created from curl",
"payment_limit": 5,
"total_amount": 0,
"total_trxn": 0,
"created_at": "2022-08-17 11:31:43",
"updated_at": "2022-08-17 11:31:43",
"expired_date": 1660710702,
"pushback_url": "https://domain.com",
"payment_link": "https://dpayment-euat.payway.com.kh/UA10736"
},
"status": {
"code": "00",
"message": "Success!"
},
"tran_id": "20220817063142"
}