Skip to main content
Version: 202201

Create Fulfillment

POST 

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

Creates a fulfillment for specific order items and updates their shipping details.

Request

Path Parameters

    order_id stringrequired

    Order's ID

Body

    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 [
  • idstringrequired

    The order's line item ID

    ship_quantityint32required

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

  • ]
  • tracking_numberstringrequired

    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

Responses

200

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