> For the complete documentation index, see [llms.txt](https://useepay.gitbook.io/developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://useepay.gitbook.io/developer/reference/wu-liu-jie-kou/upload/1.0.md).

# 物流信息上送（已废弃）

##

## API

## 物流上传接口

<mark style="color:green;">`POST`</mark> `访问地址：/logistics`

#### Headers

| Name                                           | Type   | Description                       |
| ---------------------------------------------- | ------ | --------------------------------- |
| Content-Type<mark style="color:red;">\*</mark> | String | application/x-www-form-urlencoded |

#### Request Body

| Name                                             | Type   | Description                           |
| ------------------------------------------------ | ------ | ------------------------------------- |
| sign<mark style="color:red;">\*</mark>           | string | 签名值                                   |
| signType<mark style="color:red;">\*</mark>       | string | 签名类型 MD5 / RSA (4)                    |
| echoParam                                        | string | 回声参数，Response 中将会原样返回 (256)           |
| logisticsInfo <mark style="color:red;">\*</mark> | array  | json string, 物流详细信息, 请参考logisticsInfo |
| reference<mark style="color:red;">\*</mark>      | string | useepay订单号, 需要唯一 (64)                 |
| merchantNo<mark style="color:red;">\*</mark>     | string | 商户号 (16)                              |
| version<mark style="color:red;">\*</mark>        | string | 目前固定为 1.0 (5)                         |
| transactionType                                  | String | max=18 交易类型：save                      |

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

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

logisticsInfo

| 字段               | 长度      | 描述     | 是否必要 |
| ---------------- | ------- | ------ | ---- |
| courierCode      | max=64  | 物流编号   | yes  |
| logisticsUrl     | max=256 | 物流查询网址 | yes  |
| logisticsCompany | max=32  | 物流公司   | yes  |

## Result

{% tabs %}
{% tab title="上送结果信息" %}

```
{
    "echoParam": "echoParam",
    "reference": "44543463463463",
    "errorCode": "0000",
    "errorMsg": "Approved or completed successfully",
    "merchantNo": "500000000007381",
    "resultCode": "succeed",
    "sign": "1aab1771d7846efb74edb801a0fd772d",
    "signType": "MD5"
}
```

| 字段            | 长度      | 描述                                                                  | 是否必要 |
| ------------- | ------- | ------------------------------------------------------------------- | ---- |
| merchantNo    | max=16  | max=16 商户编号，由 USEEPAY 分配                                            | yes  |
| reference     | max=64  | useepay订单号,由USEEPAY 生成                                              |      |
| resultCode    | max=32  | 业务结果（详见 [业务结果码](/developer/reference/resultcode.md)）**判断交易是否成功的依据** | yes  |
| errorCode     | max=4   | 错误码（详见 错误码 errorCode）                                               |      |
| errorMsg      | max=256 | 错误码消息描述                                                             |      |
| echoParam     | max=256 | 回声参数，响应报文会原样返回                                                      |      |
| sign          | max=256 | 签名                                                                  | yes  |
| {% endtab %}  |         |                                                                     |      |
| {% endtabs %} |         |                                                                     |      |
