Get the delivery related information configured by the system
Request address
{域名地址}/api/shipping/info
Description:{域名地址}Replace it with your domain name, such ashttps://en.anqicms.com/api/shipping/info
Request Syntax
GET {域名地址}/api/shipping/info
Request Headers
This interface involves only public request headers. For more information, please refer toCommon Request Headers (Common Request Headers).
Request parameters
None
Response header
This interface only involves common response headers. For more information, please refer toCommon Request Headers (Common Request Headers).
Return parameters
| Field name | Type | Description |
|---|---|---|
| code | int | Error code |
| msg | string | Error description |
| data | object | Delivery information configuration |
data result item parameter
| Field name | Type | Description |
|---|---|---|
| free_shipping_amount | int | Free shipping amount, in cents |
| default_shipping_fee | int | Default shipping fee, in cents |
| weight unit | string | Weight unit |
| length_unit | string | Length unit |
| volume_weight_ratio | Float | volume_weight_ratio |
| enable_international | bool | support_international_shipping |
| estimated_delivery_days | string | description_of_estimated_delivery_days |
Usage Example
Request example
GET /api/shipping/info HTTP/1.1
Host: your-domain.com
Content-Type: application/json
Response Example
{
"code": 0,
"data": {
"free_shipping_amount": 9900,
"default_shipping_fee": 1000,
"weight_unit": "kg",
"length_unit": "cm",
"volume_weight_ratio": 6000,
"enable_international": false,
"estimated_delivery_days": "3-5 个工作日"
},
"msg": ""
}
error code
| Error code | Description |
|---|---|
| 0 | OK |
| -1 | Error, the reason is indicated in msg |