# API对接-PayApi

**Request URL**

· /api/pay/index

**Request Method**

· POST / GET

**Parameter**

&#x20;

| **parameter name** | **required** | **type** | **illustrate**  |
| ------------------ | ------------ | -------- | --------------- |
| money              | Y            | string   | usdt            |
| order\_sn          | N            | string   | 订单号（不填写系统就默认生成） |

&#x20;

**Back Example(接口回调)**

<pre><code><strong>{
</strong> 
    "code": 1,
    "msg": "success",
    "time": "1661304497",
    "data": {
        "address": "TLtbzxESi27Rcfck3FVCYgjXU7Y5vHThmQ",
        "order_sn": "2022082426973508",
        "money": "3",
        "endtime": 1661305397
    }
}
</code></pre>

<mark style="color:purple;">**支付成功回调数据格式：**</mark>

<pre><code><strong>{
</strong>        "address": "TLtbzxESi27Rcfck3FVCYgjXU7Y5vHThmQ",
        "order_sn": "2022082426973508",
        "money": "3",
        "paytype": "success"
}
</code></pre>

![](https://2656996347-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmicBXh77MPf56yGoiv19%2Fuploads%2FGHX7RRXsLRLAvEJnOxf5%2Fimage.png?alt=media\&token=4d710c59-3005-4029-9645-d53a90680951)

**Return parameter description**

| **parameter name** | **type** | **illustrate**       |
| ------------------ | -------- | -------------------- |
| endtime            | int      | expiration timestamp |
| address            | string   | wallet address       |
| order\_sn          | string   | orderid              |
| money              | float    | usdt                 |

&#x20;
