Requires write_draft_orders access scope.
For more info, refer to:
PUT https://{handle}.myshopline.com/admin/openapi/v20260301/orders/draft_orders.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .
Modify the content of the draft order, such as product list, shipping address, etc.
Request Headers
  • Content-Type string required
    The field must be set to the fixed value application/json; charset=utf-8.
  • Authorization string required
    The access token for the API resource. Refer to App authorizationto obtain the access token, and then pass the obtained token in the Bearer format.
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
  • draft_orderobject
    Draft order object.
  • billing_addressobject
    Billing address information.
  • address1 string
    The first line of the payment billing address. This typically includes information such as the street address or a post office box number. Maximum length: 255
  • address2 string
    The second line of the payment billing address. This typically includes information such as apartment, suite, or unit number. Maximum length: 255
  • area string
    The administrative region name in payment billing address.
  • area_code string
    The code for administrative district, custom number.
  • city string
    The city in the payment billing address.
  • city_code string
    The code for city in the payment billing address.
  • company string
    The country in the payment billing address.
  • country string
    The country in the payment billing address.
  • country_code string
    The country code in the payment billing address. A two-letter country or region code that follows the ISO 3166-1 (alpha 2) standard, used to identify a specific market's country or region.
  • email string
    Buyer's email address.
  • first_name string
    The buyer's first name.
  • last_name string
    The buyer's last name.
  • phone string
    The user's mobile phone number.
  • province string
    The province in the payment billing address.
  • province_code string
    The code for the province in the payment billing address, which can be a custom code or a two-digit ISO 3166-2 international code.
  • same_as_receiver boolean
    Indicates whether the address is the same as the shipping information. •true: Same •false: Different
  • zip string
    The postal code information of the address.
  • calc_sku_stock_mode string required
    Calculate inventory mode. •not_limit : Infinity inventory •real : real inventory •reserve_real : reserve inventory + real inventory
    Example: string
  • customerobject
    Buyer's information.
  • area_code string
    Area code of the buyer's contact address.
  • email string
    Buyer's email address.
  • first_name string
    User's first name.
  • id string required
    The unique identifier for user.
    Example: string
  • last_name string
    User's last name.
  • phone string
    User's mobile phone number.
  • discount_amount_ext string
    Order discount amount, represented as a string of type double with a precision of 2. For example, 12.41。
  • discount_amount_ext_name string
    Order discount name. Maximum length: 64
  • discountable boolean
    Indicates whether marketing discounts can be stacked. •true: Stackable •false: Not stackable
  • id string required
    Draft order ID.
    Example: string
  • language_infoobject
    The language information.
  • customer_language string
    Buyer side checkout language, prefer using this language.
  • merchant_language string
    Merchant side checkout language, prefer using the buyer-side language.
  • line_itemsobject[] required
    List of product.
  • applied_discountobject
    Product discount information.
  • description string
    The discount description.
  • title string
    The discount title.
  • value long
    Discount value amount. When the discount type is DISCOUNT_AMOUNT_PERCENTAGE, this value can range from a minimum of 0 to a maximum default of 100.
  • value_type string
    Discount type. Valid values are: · fixed_amount:Fixed amount · percentage: Percentage
  • discountable boolean
    Indicates whether to use online store marketing campaigns. •true: Used •false: Not used
  • gift_card boolean
    Indicates whether the product is a gift card item. •true: Gift card item •false: Not a gift card item
  • id string
    Order product line ID. The unique identifier for the product line in the order.
  • price string
    The selling price of the product in two-digit precision, such as '12.41'.
  • product_id string required
    The product ID.
    Example: string
  • product_source string required
    Product source。 •main_site: main station product •customize: custom product
    Example: string
  • propertiesobject[]
    Product customization information.
  • name string
    Custom attribute name.
  • show boolean
    Indicates whether this message should be displayed on the frontend. •true: Displayed •false: Not displayed
  • type string
    Product attribute types. Valid values are: ● text: Text type ● picture:Image type ● link:Link type
  • urls array
    The list of the URL resources.
  • value string
    The value of custom attribute.
  • quantity integer required
    Product quantity. Value range: 0-120
  • requires_shipping boolean
    Indicates whether shipping is required. •true: Required •false: Not required
  • sku string
    A unique identifier for the item in the fulfillment. Applicable only to custom line items. The maximum length is 255.
  • title string
    The title of the product.
  • variant_id string required
    Product SKU serial number.
    Example: string
  • market_region_country_code string
    Market country.
  • note string
    Draft order note.
  • note_attributesobject[]
    The additional information.
  • name string
    The name of the additional information.
  • value string
    The value of the additional information.
  • outer_id string
    The unique identifier for the operation. Each ID can only be used to perform the operation once.
  • payment_termsobject
    Payment information.
  • pay_channel_id string required
    The unique identifier for the payment channel.
    Example: string
  • pay_status string
    Payment status. •unpaid •paid
  • payment_channel_name string
    The name of the payment channel.
  • shipping_addressobject
    Buyer's shipping address information.
  • address1 string
    The first line of the address. This typically includes information such as the street address or a post office box number.
  • address2 string
    The second line of the address. This typically includes information such as apartment, suite, or unit number.
  • city string
    The city in the shipping address.
  • city_code string
    The city code in the shipping address.
  • company string
    The company name of the receiver in the shipping address.
  • country string
    The country or district in the shipping address.
  • country_code string
    The country code in the shipping address. A two-letter country or region code that follows the ISO 3166-1 (alpha 2) standard, used to identify a specific market's country or region.
  • district string
    District of the shipping address.
  • district_code string
    The code for the district in the shipping address, custom identifier.
  • first_name string
    The buyer's first name.
  • last_name string
    The buyer's last name.
  • phone string
    The buyer's phone number.
  • province string
    The province in the shipping address.
  • province_code string
    创建草稿单 API 整改 100% district 4 of 7 E215 district J222
    The code for the province in the shipping address, which can be a custom code or a two-digit ISO 3166-2 international code. Summarize this table
    The code for the province in the shipping address, which can be a custom code or a two-digit ISO 3166-2 international code. Turn on screen reader support To enable screen reader support, press ⌘+Option+Z To learn about keyboard shortcuts, press ⌘slash
  • zip string
    The postal code for the shipping address.
  • shipping_linesobject
    Logistics information.
  • delivery_id string
    Shipping method ID, shipping template ID.
  • price string
    The shipping cost for logistics, double type string with accuracy 2.
  • shipping_type string required
    Logistics types. Valid values are: · system: System logistics · custom: Custom logistics When the logistics type is system, only the delivery_id needs to be provided. When the logistics type is custom, both the title and price fields must be provided.
    Example: string
  • title string
    Logistics name.
  • stock_reserved boolean required
    Indicates whether there is a stock reservation identifier at the order level. •true: Present •false: No
  • stock_reserved_time long
    Order dimension inventory pre-reserved time.
  • tags array
    Draft order tags. Multiple tags should be separated by commas.
  • tax_exempt string
    Indicates whether the product is subject to tax. •true: Tax is required. •false: No tax is required.
Status Codes
For the complete list of codes and messages, see Http status code.

Response Headers
  • traceId
    A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
  • draft_orderobject
    Draft order object.
  • billing_addressobject
    Billing address information.
  • address1 string
    The first line of the payment billing address. This typically includes information such as the street address or a post office box number. Maximum length: 255
  • address2 string
    The second line of the payment billing address. This typically includes information such as apartment, suite, or unit number. Maximum length: 255
  • area string
    The administrative region name in payment billing address.
  • area_code string
    The code for administrative district, custom number.
  • city string
    The city in the payment billing address.
  • city_code string
    The code for city in the payment billing address.
  • company string
    The country in the payment billing address.
  • country string
    The country in the payment billing address.
  • country_code string
    The country code in the payment billing address. A two-letter country or region code that follows the ISO 3166-1 (alpha 2) standard, used to identify a specific market's country or region.
  • email string
    The buyer's email.
  • first_name string
    The buyer's first name.
  • last_name string
    The buyer's last name.
  • phone string
    The buyer's phone number.
  • province string
    The province in the billing payment address.
  • province_code string
    The country code in the payment billing address. A two-letter country or region code that follows the ISO 3166-1 (alpha 2) standard, used to identify a specific market's country or region.
  • same_as_receiver boolean
    Indicates whether the address is the same as the shipping information. •true: Same •false: Different Defalut value: false
  • standard_province_code string
    The code for the province in the billing address, which is a two-digit ISO 3166-2 international code.This differs from province_code - the province_code response field uses a custom code.
  • zip string
    The postal code for the shipping address.
  • create_time long
    The date and time when the draft order is created. Format: ISO 8601. Example: 2024-08-31T02:20:26+08:00
  • currency string
    The store currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD .
  • customerobject
    The buyer's information.
  • area_code string
    Area code of the buyer's contact address.
  • email string
    The buyer's email address.
  • first_name string
    The buyer's first name.
  • id string
    The unique identifier for the buyer.
  • last_name string
    The buyer's last name.
  • phone string
    The buyer's phone number.
  • discount_amount_ext string
    Order discount amount, represented as a string of type double with a precision of 2. For example, 12.41。
  • discount_amount_ext_name string
    Order discount name.
  • discount_amount_ext_setobject
    The discount amount, displayed in both the buyer's currency and the store's currency.
  • presentment_moneyobject
    Buyer-side amount information.
  • amount string
    Seller-side amount. The value is rounded to two decimal places.
  • currency_code string
    The buyer side currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Seller-side amount information.
  • amount string
    Seller-side amount. The value is rounded to two decimal places.
  • currency_code string
    The store's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • id string
    The unique identifier for the draft order.
  • invoice_url string
    Invoice URL.
  • line_itemsobject[]
    List of product.
  • applied_discountobject
    Product custom discount information.
  • amount string
    Discount amount , double type string for accuracy 2. For example: 12.41
  • amount_setobject
    Detailed information of discount amount, displayed in both the buyer's currency and the store's currency.
  • presentment_moneyobject
    Buyer-side amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Seller-side amount information.
  • amount string
    Seller-side Amount. The value is rounded to two decimal places.
  • currency_code string
    The store's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • before_amount string
    The original price of the product, a string of double type with two-digit precision.
  • before_amount_setobject
    Original price information of the product, displayed in both the buyer's currency and the store's currency.
  • presentment_moneyobject
    Buyer-side amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Seller-side amount information.
  • amount string
    Seller-side Amount. The value is rounded to two decimal places.
  • currency_code string
    The store's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • description string
    The discount description.
  • title string
    The discount name.
  • value long
    Discount amount. When the discount type is percentage, the minimum value is 0 and the maximum value is 100 by default.
  • value_type string
    Discount type. •fixed_amount •percentage
  • gift_card boolean
    Indicates whether the product is a gift card item. •true: Gift card item •false: Not a gift card item
  • id string
    Product line ID, unique confirm a Product line.
  • image_url string
    The image URL of the product picture.
  • price string
    Product amount after participating in custom discounts.
  • price_setobject
    Product amount after participating in custom discounts, displayed in both the buyer's currency and the store's currency.
  • presentment_moneyobject
    Buyer's amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Seller's amount information.
  • amount string
    Seller-side Amount. The value is rounded to two decimal places.
  • currency_code string
    The store's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • product_id string
    The SPU serial number of the product.
  • product_source string
    Product source。 •main_site: main product •customize: customize product
  • propertiesobject[]
    The custom properties of the product.
  • name string
    Custom attribute name.
  • show boolean
    Indicates whether this message should be displayed on the frontend. •true: Displayed •false: Not displayed
  • type string
    Attribute type: ● text ● picture ● link
  • urls array
    The URL resouces list.
  • value string
    The value of the custom attribute.
  • quantity integer
    Product quantity. Value range: 0-120
  • requires_shipping boolean
    Indicates whether physical shipping is required. •true: Required •false: Not required Default value: false
  • sku string
    The SKU of the product. The unique identifier for the product variant. Maximum length: 64
  • tax_linesobject[]
    Tax information.
  • name string
    The name of the tax fee.
  • price string
    The amount of the tax fee.
  • price_setobject
    The amount information.
  • presentment_moneyobject
    Buyer's amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Seller's amount information.
  • amount string
    Seller-side Amount. The value is rounded to two decimal places.
  • currency_code string
    The store's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • rate double
    The tax rate, for display only. For Example, if the tax rate is 2%, specify this field as 0.02. Example: 0.02
  • type string
    Tax fee type used to distinguish between commodity tax and freight tax. product_tax: commodity tax shipping_tax: freight tax
  • title string
    Product title.
  • variant_id string
    Product SKU serial number.
  • variant_title string
    Product SKU title.
  • logistics_price string
    Total shipping amount.
  • logistics_price_setobject
    The total shipping amount in multi-currency.
  • presentment_moneyobject
    Buyer's amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Seller's amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • logistics_tax string
    Total shipping tax fee.
  • logistics_tax_setobject
    The total shipping tax fee in muti-currency.
  • presentment_moneyobject
    Buyer's amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Seller's amount information.
  • amount string
    Seller-side amount.The value is rounded to two decimal places.
  • currency_code string
    The seller's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • market_name string
    Market name.
  • market_region_country_code string
    Market country.
  • note string
    The note of the draft order.
  • note_attributesobject[]
    Additional information for the draft order.
  • name string
    The name of the additional attribute.
  • value string
    The value of the additional attribute.
  • payment_termsobject
    Payment terms and Payment information.
  • created_at string
    The date and time when the payment term is created. Format: ISO 8601. Example: 2024-08-31T02:20:26+08:00
  • due_in_days integer
    When the terms type is NET, the payment is due after how many days if the payment is not made
  • id string
    The unique identifier for the payment iterm.
  • overdue boolean
    Indicates whether the payment terms have expired. •true: Expired •false: Not expired
  • pay_channel_id string
    The unique identifier for the payment channel.
  • pay_status string
    Payment slip status. After the status is paid, this status will not synchronize with the payment status of the final order. •unpaid •paid
  • payment_channel_name string
    Payment channel name.
  • payment_schedulesobject[]
    A set of schedules associated with the payment terms.
  • completed_at string
    Payment completion date.
  • due_at string
    The due date and time for the payment.Calculate based on issued_at and due_in_days. If the type is fixed, calculate based on a custom fixed date.
  • issued_at string
    The date and time when the payment term is activated. Format: ISO 8601. Example: 2024-08-31T02:20:26+08:00
  • payment_terms_name string
    The name used to create the payment term template.
  • payment_terms_type string
    The type of payment terms template used to create the payment terms: •FIXED: Merchant specified date •FULFILLMENT: Fulfillment (Shipment) completion date •NET: Fixed condition date •RECEIPT: Billing sent date •UNKNOWN: Unknown type
  • updated_at string
    The date and time when the payment term is last updated. Format: ISO 8601. Example: 2024-08-31T02:20:26+08:00
  • po_number string
    Purchase order number recorded on the order in B2B scenarios.
  • presentment_currency_code string
    Market currency.
  • product_tax string
    Product total tax fee.
  • product_tax_setobject
    Product total tax fee, displayed in both the buyer's currency and the store's currency.
  • presentment_moneyobject
    Buyer's amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Merchant's amount information.
  • amount string
    Seller-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shipping_addressobject
    Shipping address.
  • address1 string
    The first line of the address. This typically includes information such as the street address or a post office box number.
  • address2 string
    The second line of the address. This typically includes information such as apartment, suite, or unit number.
  • city string
    The city in the shipping address.
  • city_code string
    The code for city in the shipping address.
  • company string
    The company name of the receiver in shipping address.
  • country string
    The country in the payment shipping address.
  • country_code string
    A two-letter country or region code that follows the ISO 3166-1 (alpha 2) standard, used to identify a specific country or region in the address. For example, US.
  • district string
    District of the shipping address.
  • district_code string
    The code for the district in the shipping address, custom identifier.
  • first_name string
    The buyer's first name.
  • last_name string
    The buyer's last name.
  • phone string
    The buyer's phone number.
  • province string
    The province in the shipping address.
  • province_code string
    The code for the province in the shipping address, which can be a custom code or a two-digit ISO 3166-2 international code.
  • standard_province_code string
    The code for the province in the shipping address, which is a two-digit ISO 3166-2 international code.This differs from province_code - the province_code response field uses a custom code.
  • zip string
    The postal code for the shipping address.
  • shipping_linesobject
    Logistics information.
  • delivery_id string
    Shipping method ID, shipping template ID.
  • price long
    The shipping cost for logistics, double type string with accuracy 2.
  • price_setobject
    The shipping cost for logistics in multi-currency.
  • presentment_moneyobject
    Buyer's amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Merchant's amount information.
  • amount string
    Seller-side amount.The value is rounded to two decimal places.
  • currency_code string
    The seller's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shipping_type string
    Logistics type: •system : system logistics •custom : custom logistics
  • title string
    Logistics name.
  • status integer
    The draft order statu: •completed •open
  • stock_reserved boolean
    Indicates whether there is a stock reservation identifier at the order level. •true: Present •false: No
  • stock_reserved_time long
    The time reserved for stock at the order level.
  • store_id string
    The unique identifier for the store.
  • tags array
    The tags for draft orders that separated by a comma between multiple tags. The maximum number of tags is 99 for one store.
  • tax_linesobject[]
    The tax information.
  • name string
    Tax name.
  • price string
    The tax amount.
  • price_setobject
    The price information.
  • presentment_moneyobject
    Buyer's amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Merchant's amount information.
  • amount string
    Seller-side amount.The value is rounded to two decimal places.
  • currency_code string
    The seller's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • rate double
    The tax rate.
  • type string
    Tax fee type, used to distinguish between commodity tax and freight tax. · product_tax: commodity tax · shipping_tax: freight tax
  • total_duties_setobject
    Total Duties.
  • presentment_moneyobject
    Buyer's amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Merchant's amount information.
  • amount string
    Seller-side amount.The value is rounded to two decimal places.
  • currency_code string
    The seller's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • total_line_items_price string
    The total amount of products in the current draft order.
  • total_line_items_price_setobject
    The total amount of products.
  • presentment_moneyobject
    Buyer's amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Merchant's amount information.
  • amount string
    Seller-side amount.The value is rounded to two decimal places.
  • currency_code string
    The seller's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • total_price string
    The total amount of draft order: Product selling price - discount + tax + shipping.
  • total_price_setobject
    Draft order total amount, displayed in both the buyer's currency and the store's currency.
  • presentment_moneyobject
    Buyer's amount information.
  • amount string
    Buyer-side amount.The value is rounded to two decimal places.
  • currency_code string
    The buyer's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • shop_moneyobject
    Merchant's amount information.
  • amount string
    Seller-side amount.The value is rounded to two decimal places.
  • currency_code string
    The seller's used currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example, USD.
  • update_time long
    The date and time when the draft order is last updated. Format: ISO 8601. Example: 2024-08-31T02:20:26+08:00
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20260301

ParamOptions

header required

Body

required
{
  "draft_order": {
    "billing_address": {
      "address1": null,
      "address2": null,
      "area": null,
      "area_code": null,
      "city": null,
      "city_code": null,
      "company": null,
      "country": null,
      "country_code": null,
      "email": null,
      "first_name": null,
      "last_name": null,
      "phone": null,
      "province": null,
      "province_code": null,
      "same_as_receiver": null,
      "zip": null
    },
    "calc_sku_stock_mode": "string",
    "customer": {
      "area_code": null,
      "email": null,
      "first_name": null,
      "id": "string",
      "last_name": null,
      "phone": null
    },
    "discount_amount_ext": null,
    "discount_amount_ext_name": null,
    "discountable": null,
    "id": "string",
    "language_info": {
      "customer_language": null,
      "merchant_language": null
    },
    "line_items": [
      {
        "applied_discount": {
          "description": null,
          "title": null,
          "value": null,
          "value_type": null
        },
        "discountable": null,
        "gift_card": null,
        "id": null,
        "price": null,
        "product_id": "string",
        "product_source": "string",
        "properties": [
          {
            "name": null,
            "show": null,
            "type": null,
            "urls": null,
            "value": null
          }
        ],
        "quantity": 0,
        "requires_shipping": null,
        "sku": null,
        "title": null,
        "variant_id": "string"
      }
    ],
    "market_region_country_code": null,
    "note": null,
    "note_attributes": [
      {
        "name": null,
        "value": null
      }
    ],
    "outer_id": null,
    "payment_terms": {
      "pay_channel_id": "string",
      "pay_status": null,
      "payment_channel_name": null
    },
    "shipping_address": {
      "address1": null,
      "address2": null,
      "city": null,
      "city_code": null,
      "company": null,
      "country": null,
      "country_code": null,
      "district": null,
      "district_code": null,
      "first_name": null,
      "last_name": null,
      "phone": null,
      "province": null,
      "province_code": null,
      "zip": null
    },
    "shipping_lines": {
      "delivery_id": null,
      "price": null,
      "shipping_type": "string",
      "title": null
    },
    "stock_reserved": false,
    "stock_reserved_time": null,
    "tags": null,
    "tax_exempt": null
  }
}

Language

curl --request PUT \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20260301/orders/draft_orders.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json'
Was this article helpful to you?