Developer Suite
Register Sandbox
Register Sandbox
  1. Payment Link
  • Overview
  • API Endpoints
  • Ecommerce Checkout
    • Purchase
      POST
    • Get a transaction details
      POST
    • Close transaction
      POST
    • Check transaction
      POST
    • Refund API
      POST
    • Get transaction list
      POST
    • Exchange rate
      POST
  • Checkout Plugins
    • Prestashop
    • Woocommerce
  • Credentials on File
    • Link Account
      POST
    • Link Card
      POST
    • Payment
      POST
    • Renew Token
      POST
    • Get token details
      POST
    • Remove token
      POST
  • ABA QR API
    • QR API
      POST
  • Payment Link
    • Create payment link
      POST
    • Get payment link details
      POST
  • Pre-auth
    • Complete pre-auth transactions
      POST
    • Complete pre-auh transaction with payout
      POST
    • Cancel pre-purchase transaction
      POST
  • Payout
    • Payout
    • Update a beneficiary status
    • Add a beneficiary to whitelist
  • KHQR Guideline
  • Resources
  1. Payment Link

Get payment link details

POST
/api/merchant-portal/merchant-access/payment-link/detail
This API allows you to retrieve the details of a payment link that has already been created.

Request

Header Params

Body Params application/json

Example
{
    "request_time": "20200728093403",
    "merchant_id": "ec000002",
    "merchant_auth": "39aaa43e6929a752.....08cdb29ab498d9604600101d8dc00a",
    "hash": "EVDFA2118UD0...fbMa2b5q9CCt+sWw=="
}

Request Code 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 'https://checkout-sandbox.payway.com.kh//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

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"
}
Previous
Create payment link
Next
Pre-auth