Developer Suite
Register Sandbox
Register Sandbox
  1. Payout
  • 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
      POST
    • Update a beneficiary status
      POST
    • Add a beneficiary to whitelist
      POST
  • KHQR Guideline
  • Resources
  1. Payout

Payout

POST
/api/payment-gateway/v2/direct-payment/merchant/payout
The ABA PayWay Funds Route API provides a seamless solution for splitting and distributing payments to third parties, sellers, service providers, or your ABA bank accounts.

Request

Header Params

Body Params application/json

Example
{
    "merchant_id": "EC0001",
    "tran_id": "A17259584044451",
    "beneficiaries": "ElKjECTZK7ym...NX0Dt2dz...",
    "amount": 3.44,
    "currency": "USD",
    "custom_fields": "{\"timestamp\":\"2024-08-23 10:35:55.437\",\"traceId\":\"63f9645fa3bd8678907ed4c038357385\"}",
    "hash": "3c70c551a...d1092f6e22228a7686c51bc1162a..."
}

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/payment-gateway/v2/direct-payment/merchant/payout' \
--header 'Content-Type: application/json' \
--data-raw '{
    "merchant_id": "EC0001",
    "tran_id": "A17259584044451",
    "beneficiaries": "ElKjECTZK7ym...NX0Dt2dz...",
    "amount": 3.44,
    "currency": "USD",
    "custom_fields": "{\"timestamp\":\"2024-08-23 10:35:55.437\",\"traceId\":\"63f9645fa3bd8678907ed4c038357385\"}",
    "hash": "3c70c551a...d1092f6e22228a7686c51bc1162a..."
}'

Responses

🟢200OK
application/json
Body

Examples
{
    "transaction_id": "172595840773178",
    "transaction_date": "2024-09-10T15:53:27.2157019+07:00",
    "external_reference": "100FT30147412155",
    "apv": "328097",
    "transaction_amount": 3.44,
    "transaction_currency": "USD",
    "beneficiaries": [
        {
            "payout_id": "172595842687056",
            "name": "",
            "mid_acccount": "200030000",
            "amount": 1.72,
            "currency": "USD"
        },
        {
            "payout_id": "172595842679750",
            "name": "",
            "mid_acccount": "012538302",
            "amount": 1.72,
            "currency": "USD"
        }
    ],
    "status": {
        "code": "0",
        "message": "Success!",
        "tran_id": "172595840773178",
        "trace_id": "e728bf3e95e32e3c97286fc9f8aef82d"
    }
}
Previous
Payout
Next
Update a beneficiary status