需要 write_assigned_fulfillment_orders 权限点。
更多权限点使用信息,请参考:
POST https://{handle}.myshopline.com/admin/openapi/v20250601/fulfillments/:order_id/:fulfillment_id/events/create.json
handle :店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com 的店铺,其 handleopen001
创建物流跟踪事件
路径参数
  • fulfillment_id string required
    发货单id
    Example: 22060720884441337538627925
  • order_id string required
    订单id
    Example: 21056024607602932623437925
请求头
  • Content-Type required
    字段值固定为application/json; charset=utf-8
  • Authorization string required
    资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
请求体
  • address string
    地址
    Example: 126 York Street
  • city string
    城市
    Example: Ottawa
  • country string
    国家
    Example: Canada
  • estimated_delivery_at string
    预计送货时间(格式见ISO 8601)
    Example: 2021-08-16T08:27:57+00:00
  • happened_at string
    事件发生时间(格式见ISO 8601)
    Example: 2021-08-16T08:27:57+00:00
  • latitude string
    纬度
    Example: 23.32947
  • longitude string
    经度
    Example: 113.301255
  • message string
    备注,最大长度为512
    Example: nothing
  • province string
    省份
    Example: Ontario
  • status string required
    状态,包括:label_printed、label_purchased、attempted_delivery、ready_for_pickup、picked_up、confirmed、in_transit、out_for_delivery、delivered、failure
    Example: label_printed
  • zip string
    邮编
    Example: A1B 2C3
响应
更多状态码信息请参考 HTTP 状态码

响应头
  • traceId
    traceId
响应体
  • fulfillment_eventobject
    事件信息
  • address string
    地址
    Example: 126 York Street
  • city string
    城市
    Example: Ottawa
  • country string
    国家
    Example: Canada
  • create_at string
    创建时间
    Example: 2021-08-16T08:27:57+00:00
  • estimated_delivery_at string
    预计送货时间(格式见ISO 8601)
    Example: 2021-08-16T08:27:57+00:00
  • fulfillment_id string
    发货单id
    Example: 22060720884441337538627925
  • happened_at string
    事件发生时间(格式见ISO 8601)
    Example: 2021-08-16T08:27:57+00:00
  • id string
    事件id
    Example: 4206234611998187371524
  • latitude string
    纬度
    Example: 23.32947
  • longitude string
    经度
    Example: 113.301255
  • message string
    备注
    Example: nothing
  • order_id string
    订单id
    Example: 21056024607602932623437925
  • province string
    省份
    Example: Ontario
  • shop_id string
    店铺id
    Example: 2331445
  • status string
    状态,包括:label_printed、label_purchased、attempted_delivery、ready_for_pickup、picked_up、confirmed、in_transit、out_for_delivery、delivered、failure
    Example: label_printed
  • update_at string
    更新时间
    Example: 2021-08-16T08:27:57+00:00
  • zip string
    邮编
    Example: A1B 2C3
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601

ParamOptions

path required
path required
header required

Body

required
{
  "address": "126 York Street",
  "city": "Ottawa",
  "country": "Canada",
  "estimated_delivery_at": "2021-08-16T08:27:57+00:00",
  "happened_at": "2021-08-16T08:27:57+00:00",
  "latitude": "23.32947",
  "longitude": "113.301255",
  "message": "nothing",
  "province": "Ontario",
  "status": "label_printed",
  "zip": "A1B 2C3"
}

Language

curl --request POST \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601/fulfillments/order_id/fulfillment_id/events/create.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json' \
--data '
{
"address": "126 York Street",
"city": "Ottawa",
"country": "Canada",
"estimated_delivery_at": "2021-08-16T08:27:57+00:00",
"happened_at": "2021-08-16T08:27:57+00:00",
"latitude": "23.32947",
"longitude": "113.301255",
"message": "nothing",
"province": "Ontario",
"status": "label_printed",
"zip": "A1B 2C3"
}
'
这篇文章对你有帮助吗?

Error loading component.

Error loading component.