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
    • Purchase using token
      POST
    • Remove account token
      POST
    • Remove card token
      POST
    • Get linked account details
      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

Create payment link

POST
/api/merchant-portal/merchant-access/payment-link/create
This API allows you to create a payment link from your application.

Request

Header Params

Body Params multipart/form-data

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 'https://checkout-sandbox.payway.com.kh//api/merchant-portal/merchant-access/payment-link/create' \
--header 'Content-Type: multipart/form-data' \
--form 'request_time=""' \
--form 'merchant_id=""' \
--form 'merchant_auth=""' \
--form 'image=@""' \
--form 'hash=""'

Responses

🟢200Success
application/json
Headers

Body

Examples
{
    "data": {
        "id": "UD/8Hl***Ht1xQdhlw==",
        "title": "Test curl 001",
        "image": {
            "image": "",
            "filename": "",
            "size": 0
        },
        "amount": "0.03",
        "currency": "USD",
        "status": "OPEN",
        "description": "Payment link created from curl",
        "payment_limit": 5,
        "total_amount_org": 0,
        "total_refund": 0,
        "total_amount": 0,
        "total_trxn": 0,
        "created_at": "2023-04-13 03:43:30",
        "updated_at": "2023-04-13 03:43:30",
        "expired_date": 1681357409,
        "return_url": "https://domain.com",
        "merchant_ref_no": "ref00001",
        "outlet_id": "xknY***QfbOCJA==",
        "outlet_name": "Book Store",
        "payout": [
            {
                "acc": "000***222",
                "amt": "0.01",
                "acc_name": "Red cafe online"
            },
            {
                "acc": "122***425",
                "amt": "0.02",
                "acc_name": "Red Cafe 02 by K.S"
            }
        ],
        "payment_link": "https://dpayment-euat.payway.com.kh/JT4630l"
    },
    "status": {
        "code": "00",
        "message": "Success!"
    },
    "tran_id": 1681357410
}
Previous
Payment Link
Next
Get payment link details