跳到主要内容
版本:202201

创建履约

POST 

/openapi/2022-01/orders/:order_id/fulfillments

为指定订单的商品项创建履约,并更新发货信息。

请求

Path参数

    order_id string必填

    订单 ID。

请求体

    line_item_idsstring[]

    Order's Line Item IDs, If you need split the quantity on different fulfillments on same product, leave this field empty, and use line_items below instead.

    line_items object[]

    Array of line item id and the quantity of each item, If you need split the quantity on different fulfillments on same product, you can use this field, if you don't, you can leave this field empty , and use the line_item_ids instead.

  • Array [
  • idstring必填

    The order's line item ID

    ship_quantityint32必填

    The order's product quantity, 0 means all of the quantity will ship together.

  • ]
  • tracking_numberstring必填

    Tracking Number, for example: DHL1231232113

    tracking_companystring

    Tracking Company, for example: DHL

    tracking_company_codestring

    Tracking Company's code, for example: dhl

    tracking_urlstring

    Tracking Url

响应

200

数据结构
    fulfillment object
    idstring
    示例: 51c7dd5d-8f49-40c3-b2c1-5dfdeef9946d
    order_idstring
    示例: 633130-00000007
    statusstring
    示例: shipped
    tracking_companystring
    示例: 燕文物流
    tracking_numberstring
    示例: 11111111111
    tracking_company_codestring
    示例: DJ-11343
    tracking_urlstring
    示例:
    created_atstring
    示例: 2024-04-22T08:37:12Z
    updated_atstring
    示例: 2024-04-22T08:37:12Z
    line_items object[]
  • Array [
  • idstring
    示例: ed8af005-1f4e-42d1-859d-99b0fd420781
    product_idstring
    示例: a1a88be0-a1d4-47e4-a2f2-ba6e131cf447
    variant_idstring
    示例: a7175820-36b3-4fc6-9baf-51e3035242ba
    variant_titlestring
    示例: L-blue-T
    product_titlestring
    示例: shirt
    product_handlestring
    示例: shirt
    quantityinteger
    默认值: 0
    示例: 1
    notestring
    示例:
    fulfillment_statusstring
    示例: shipped
    skustring
    示例: T-M-L-blue-T-A001008
    weight_unitstring
    示例: kg
    vendorstring
    示例: shoplazza
    product_urlstring
    示例: /products/shirt
    compare_at_pricestring
    示例: 97.00
    imagestring
    示例: //cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg
    pricestring
    示例: 81.00
    totalstring
    示例: 81.00
    weightstring
    示例: 1.10
    properties object[]
  • Array [
  • namestring
    示例: size
    valuestring
    示例: L
  • ]
  • custom_properties object
    object
    refund_quantityinteger
    默认值: 0
    示例: 0
    refund_totalstring
    示例: 0.00
    taxableboolean
    默认值: true
    示例: true
    requires_shippingboolean
    默认值: true
    示例: true
    shipping_quantityinteger
    默认值: 0
    示例: 1
  • ]