# 4.3.8 Order Confirmation

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

Use this API to confirm and settle pre payment orders.

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

* **Method: post**
* **Path: <https://prod-openapi.newpay.la/api/open/converge/pay/v1/ordersPrepaid>**

### **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     |
| merchantId | Unique identifier assigned to a third-party merchant                                                       | string    | true     |
| timestamp  | Request timestamp                                                                                          | timestamp | true     |
| sign       | [Data signature](https://newpay-api-document.gitbook.io/newpay-api-document/8.-signature-and-verification) | string    | true     |
| orderNo    | Merchant's order number                                                                                    | 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  |
| > tranAbbr | Transaction Type                                                                                          | string  |
| > sign     | Data signature                                                                                            | string  |
| > tranNo   | Transaction Number                                                                                        | string  |

## 3. Example Data <a href="#id-3-example-data" id="id-3-example-data"></a>

### **3.1 Request** <a href="#id-31-request" id="id-31-request"></a>

```json
{
    "appId": "3514d69403bc4ce1a8fafb6415a31018",
    "timestamp": 1687494500726,
    "sign": "{{sign}}",
    "merchantId": "1001211005000526",
    "orderNo": "asd2323414"


}
```

### **3.2 Response** <a href="#id-32-response" id="id-32-response"></a>

```json
{
    "success": true,
    "message": "success",
    "data": {
        "appId": "5afa28d9dfe94830ad67cd3a61ab8978",
        "sign": "R2fZH0vFRu58OMYYeyb3Sq9mPrIiMo6BS1jALw0vEuPSYMnr8E0rRaga0v2MosIhpw7204r646b4GtuewMexKlSKtSKYpiUzWKT0aIOugnfGF9GRhnLcxIwNtkbODj+OgxE2HiZq5FMxkZmprjJ9uczpyYE6JrCVASRAn/P1TczFiz4bfNMEVBUZHNMNnIUVEAkM57lgrrhAPWxplJJCHuCspMfxoixz2XBBHrBZoH1mwQfEtPobxUvu4yF9MlL+LEesRTCTJRlx+dr8iXo0LDqigH6HZDUpkyKkQ92hdr1+ZIQkhMKTq0sv8A61za18ndxP+0cManPgCkfj+lF8AA==",
        "tranAbbr": null,
        "tranNo": "00012023062300000008"

    },
    "code": "0",
    "timestamp": "1662521235625"
}
```
