# Payment Order Registration

Depending on Transaction type (TRT) will be register as one-phase or two-phase for Credit/Debit payment method. By using this endpoint, user will be able to register order with differences payment methods such as PAYON, CREDIT\_DEBIT and PPCBank PAY(Available soon).

| Environment | URL                                                            |
| ----------- | -------------------------------------------------------------- |
| TEST        | [http://pgtest.payon.com.kh](http://pgtest.payon.com.kh:36605) |
| PRODUCTION  | [https://pg.payon.com.kh](https://pg.payon.com.kh:35505)       |

## Order Registration Request

<mark style="color:green;">`POST`</mark> `{{URL}}/pg/order/register`

API Direction :  MERCHANT -> PAYON

#### Request Body

| Name                                            | Type   | Description                                                                    |
| ----------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
| termId<mark style="color:red;">\*</mark>        | string | Terminal's Identification                                                      |
| merchantId<mark style="color:red;">\*</mark>    | string | Merchant's Identification                                                      |
| txId<mark style="color:red;">\*</mark>          | string | Transaction's Identification                                                   |
| trt<mark style="color:red;">\*</mark>           | string | <p>Transaction Type(Possible value: <br>10: Purchase, 12: PRE AUTH</p>         |
| currency<mark style="color:red;">\*</mark>      | string | Three-letter ISO currency code in lowercase. only USD is support at this time. |
| amount<mark style="color:red;">\*</mark>        | string | Amount                                                                         |
| paymentMethod<mark style="color:red;">\*</mark> | string | Payment Method.  PAYON, CREDIT\_DEBIT, PPCBANK\_TRANSFER,  BAKONG\_KHQR        |
| clientId                                        | string | Customer's Identification                                                      |
| bindingId                                       | string | Binding's Identification                                                       |
| payDvCd                                         | string | PPCBANK\_PAY, PAYON\_PAY,PAYON\_QR,KHQR,MPI                                    |
| buyerId                                         | string | Buyer's Identification                                                         |
| sellerId                                        | String | Seller's Identification                                                        |

{% tabs %}
{% tab title="200 " %}

```
{
    "resultMsg": "Success",
    "resultCode": "0000",
    "resultData": {
        "txDt": "20210802",
        "txSeqNo": "2021080200006557",
        "txStCd": "00",
        "trt": "10",
        "payDvCd": "8",
        "paymentType": "02",
        "paymentIssuerCd": "",
        "paymentMethodDetailDesc": "",
        "acquirerId": "A0000001",
        "merchantId": "C0000143",
        "termId": "CT03000003",
        "wdlAcNo": "",
        "wdlNm": "",
        "wdlIp": "localhost",
        "wdlCvv": "",
        "wdlExpiry": "",
        "issBank": "PAYON",
        "issBankCntyCd": "KHM",
        "issBankApprNo": "",
        "issBankApprDttm": "",
        "issBankResultCd": "",
        "issBankResultMsg": "",
        "dsEnrolYn": "N",
        "dsVerifySuccessYn": "",
        "dsVerifyDttm": "",
        "dsVerifyResultCd": "",
        "dsVerifyMsg": "",
        "tracNo": "243522744224444",
        "amount": 3,
        "currencyCode": "USD",
        "collectDt": "",
        "verifyDvCd": "",
        "verifyDt": "",
        "correctDvCd": "",
        "correctDt": "",
        "correctManager": "",
        "correctComment": "",
        "apprNo": "",
        "apprDttm": "",
        "resultCd": "",
        "resultMsg": "",
        "regDttm": "02082021060222",
        "regUser": "ADMIN",
        "uptDttm": "02082021060222",
        "uptUser": "ADMIN",
        "cancelOrgnTxDt": "",
        "cancelOrgnTxSeqNo": "",
        "cancellabilityYN": null,
        "stan": "006191",
        "procCd": null,
        "expirationDate": null,
        "transactionLocalTime": null,
        "transmissionDateTime": null,
        "merchantType": null,
        "apprCd": null,
        "settleYn": "N",
        "cancelYn": "N",
        "refundYn": "N",
        "refNo": null,
        "netAmt": null,
        "feeAmt": null,
        "dsOrderNo": "c120e418-e543-49a1-9663-86726cfe368f",
        "merchantName": null,
        "merchantLogo": null,
        "backUrl": null,
        "cardNo": null,
        "formUrl": "http://pgtest.payon.com.kh:36605/pg/verifyBinding?termId=CT03000003&clientId=C0000143CT03000003&orderNo=c120e418-e543-49a1-9663-86726cfe368f&merchantId=C0000143&paymentMethod=CREDIT_DEBIT&bindingId=",
        "termUrl": "http://localhost:35505/pg/ppcbank/verifyCode?orderNo=3190f3a6-6898-4f26-a15d-76463c5195b1",
        "apiKey": null,
        "cavv": null,
        "bindingId": "",
        "clientId": "C0000143CT03000003"
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.payon.com.kh/payon-api-reference/payment-order-registration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
