需要 write_orders 权限点。
更多权限点使用信息,请参考:
POST https://{handle}.myshopline.com/admin/openapi/v20250601/orders/:order_id/fulfillments.json
handle :店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com 的店铺,其 handleopen001
订单发货
路径参数
  • order_id string required
    订单号
请求头
  • Content-Type required
    字段值固定为application/json; charset=utf-8
  • Authorization string required
    资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
请求体
  • fulfillmentobject required
    发货信息
  • line_itemsobject[]
    商品组
  • id long required
    商品ID
  • quantity integer required
    商品发货数量
  • notify_customer boolean
    是否应通知客户。如果设置为true,则在创建或更新发货时将发送一封电子邮件
  • tracking_company string
    物流公司,枚举见文档:https://shopline.yuque.com/docs/share/cfb1e1ca-aede-43e9-b1e6-59ab47fd7d0f?# 《物流公司名称枚举信息》
    Example: SF
  • tracking_number string
    运单号
    Example: SF123456789
  • tracking_url string
    物流追踪Url
    Example: https://www.sf-tracking.com/?number=123456789
响应
更多状态码信息请参考 HTTP 状态码

响应头
  • traceId
    traceId
响应体
  • fulfillmentobject
    包裹信息
  • created_at string
    创建日期
  • id string
    包裹ID
  • line_itemsobject[]
    商品组
  • fulfillable_quantity integer
    可发货数量
  • fulfillment_quantity integer
    发货数量
    Example: 1
  • grams double
    重量
  • id string
    商品ID
  • name string
    商品名称
  • price string
    价格
  • price_setobject
    多币种价格
  • presentment_moneyobject
    结算币种
  • amount string
    金额
  • currency_code string
    币种
  • shop_moneyobject
    店铺币种
  • amount string
    金额
  • currency_code string
    币种
  • product_id string
    商品id
  • quantity integer
    商品发货数量
  • requires_shipping boolean
    是否需要发货
  • sku string
    商品货号
  • tax_linesobject[]
  • price string
    金额
  • price_setobject
    多币种金额
  • presentment_moneyobject
    结算币种
  • amount string
    金额
  • currency_code string
    币种
  • shop_moneyobject
    店铺币种
  • amount string
    金额
  • currency_code string
    币种
  • rate string
    税率
  • title string
    税名称
  • taxable boolean
    是否收税
  • title string
    商品标题
  • total_discount string
    优惠金额
  • total_discount_setobject
    多币种优惠
  • presentment_moneyobject
    结算币种
  • amount string
    金额
  • currency_code string
    币种
  • shop_moneyobject
    店铺币种
  • amount string
    金额
  • currency_code string
    币种
  • variant_id string
    商品变体ID
  • variant_title string
    商品变体名称
  • version string
    商品版本
  • name string
    包裹
    Example: e.g. #1001.1, #1001.2
  • order_id string
    订单号
  • status string
    包裹状态
  • tracking_company string
    物流公司名称
  • tracking_number string
    运单号
  • tracking_numbers array
    运单号数组
    Example: ``
  • tracking_url string
    物流追踪URL
  • tracking_urls array
    物流追踪URL组
    Example: ``
  • updated_at string
    更新时间
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601

ParamOptions

path required
header required

Body

required
{
  "fulfillment": {
    "line_items": [
      {
        "id": 0,
        "quantity": 0
      }
    ],
    "notify_customer": false,
    "tracking_company": "SF",
    "tracking_number": "SF123456789",
    "tracking_url": "https://www.sf-tracking.com/?number=123456789"
  }
}

Language

curl --request POST \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601/orders/order_id/fulfillments.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json' \
--data '
{
"fulfillment": {
"line_items": [
{
"id": 0,
"quantity": 0
}
],
"notify_customer": false,
"tracking_company": "SF",
"tracking_number": "SF123456789",
"tracking_url": "https://www.sf-tracking.com/?number=123456789"
}
}
'
这篇文章对你有帮助吗?

Error loading component.

Error loading component.