# 6. For Traditional Merchant

## 1. Overview <a href="#id-1overview" id="id-1overview"></a>

Use this API to make payment for the scanning device.

## 2. Request Info <a href="#id-2request-info" id="id-2request-info"></a>

* **Method: post**
* **Path:** [**https://prod-v2.newpay.la:18082/beta/codeScanner/createOrder**](https://prod-v2.newpay.la:18082/beta/codeScanner/createOrder)

### **2.1 Request Header** <a href="#id-21-request-header" id="id-21-request-header"></a>

| Key          | Value            |
| ------------ | ---------------- |
| Content-Type | application/json |
| version      | 1.0              |

### **2.2 Request Data** <a href="#id-22-request-data" id="id-22-request-data"></a>

| Name        | Description                                                                                                | Type   | Required |
| ----------- | ---------------------------------------------------------------------------------------------------------- | ------ | -------- |
| appId       | Unique identifier assigned to a third-party application platform                                           | string | true     |
| mchId       | Unique identifier assigned to a third-party merchant                                                       | string | true     |
| authCode    | QR code                                                                                                    | string | true     |
| amount      | order amount                                                                                               | string | true     |
| currency    | Payment currency, LAK/USD                                                                                  | string | true     |
| mchOrderNo  | Order number,The unique number assigned by a merchant to identify a payment request.                       | string | true     |
| callbackUrl | Payment result notification URL                                                                            | string | true     |
| description | can be anything, it is not required.                                                                       | string | false    |
| sign        | [Data signature](https://newpay-api-document.gitbook.io/newpay-api-document/8.-signature-and-verification) | string | true     |

### **2.3 Response Data** <a href="#id-23-response-data" id="id-23-response-data"></a>

| Name            | Description                                                                                               | Type    |
| --------------- | --------------------------------------------------------------------------------------------------------- | ------- |
| success         | Success flag: true/false                                                                                  | boolean |
| message         | Response message                                                                                          | string  |
| code            | [Reponse code](https://newpay-api-document.gitbook.io/newpay-api-document/9.-business-code#response-code) | string  |
| timestamp       | Response timestamp                                                                                        | long    |
| data            | Result                                                                                                    | object  |
| > appId         | Unique identifier assigned to a third-party application platform                                          | string  |
| > orderAmt      | Payment amount                                                                                            | string  |
| > payUrl        | pay url                                                                                                   | string  |
| > mchOrderNo    | third-party merchant's order number                                                                       | string  |
| > newpayOrderNo | NewPay order number                                                                                       | string  |
| > status        | [Order Status](https://newpay-api-document.gitbook.io/newpay-api-document/9.-business-code#order-status)  | int     |
| > currency      | Payment currency, LAK/USD                                                                                 | string  |
| > channel       | ALIPAY / WECHAT                                                                                           | string  |
| > sign          | Data signature                                                                                            | string  |
