📘
🔒
Creates a new order in the store with the specified products, shipping details, and payment information.
This API is especially useful for:
Creating manual orders in the admin panel
Processing orders from external sales channels
Implementing custom checkout flows
Migrating orders from other platforms
📘
Parameter Type Required Description Example orderobject Yes Contains all order details - order.line_itemsarray of objects Yes Products included in the order - order.line_items. product_idstring Yes Unique product identifier "prod_12345"order.line_items. variant_idstring Yes Unique variant identifier "var_67890"order.line_items. quantityint32 Yes Product quantity 2order.shipping_addressobject Yes Delivery address details - order.shipping_address. first_namestring No Recipient's first name "John"order.shipping_address. last_namestring Yes Recipient's last name "Doe"order.shipping_address. emailstring Yes Recipient's email "[email protected] "order.shipping_address. phone_area_codestring No Phone area code "1"order.shipping_address. phonestring No Phone number "5551234567"order.shipping_address. countrystring Yes Delivery country "United States"order.shipping_address. country_codestring Yes ISO country code "US"order.shipping_address. provincestring Yes State/province "California"order.shipping_address. province_codestring Yes ISO province code "CA"order.shipping_address.areastring No Address region "Silicon Valley"order.shipping_address.citystring Yes Delivery city "San Francisco"order.shipping_address.addressstring Yes Primary street address "123 Main St"order.shipping_address.address1string Yes Secondary address "Apt 4B"order.shipping_address.companystring No Company name "Acme Inc"order.shipping_address.zipstring Yes Postal code "94105"order.shipping_lineobject Yes Shipping method details - order.shipping_line. shipping_namestring Yes Shipping method name "Express Delivery"order.shipping_line. shipping_descstring No Shipping description "2-3 business days"order.shipping_line. shipping_pricestring Yes Shipping cost "15.99"order.tax_totalstring Yes Total tax amount "7.50"order.currency_codestring Yes Currency code "USD"order.tagsarray of strings No Order tags ["wholesale", "priority"]order.discountstring Yes Discount applied "10%"order.notestring No Order notes "Gift wrapping requested"order.payment_linestring No Payment method "COD"
📘
Parameter Type Example Description codestring "success"Status code of the API response messagestring "Order retrieved successfully"Descriptive message about the response data.orderobject - Complete order object containing all details
Parameter Type Example Description idstring "ord_123"Order ID created_atstring "2023-01-01T00:00:00Z"Creation time updated_atstring "2023-01-01T00:00:00Z"Update time notestring "Gift note"Merchant note numberstring "#1001"Order number total_pricestring "100.00"Total price sub_totalstring "90.00"Subtotal currencystring "USD"Currency financial_statusstring "paid"Payment status statusstring "fulfilled"Order status cancelled_atstring Cancel time cancel_reasonstring Cancel reason payment_methodstring Payment method fulfillment_statusstring "fulfilled"Fulfillment status customer_deleted_atstring Customer deletion time deleted_atstring Order deletion time placed_atstring "2023-01-01T00:00:00Z"Payment time tagsstring "vip"Order tags buyer_accepts_marketingboolean trueMarketing consent code_discount_totalstring "10.00"Code discounts customer_notestring "Handle with care"Customer note total_discountstring "10.00"Total discounts total_taxstring "5.00"Product taxes total_shippingstring "5.00"Shipping cost line_itemsarray[object] - Line items payment_lineobject - Payment line shipping_lineobject - Shipping line billing_addressobject - Billing address shipping_addressobject - Shipping address fulfillmentsarray[object] - Fulfillments customerobject - Customer info refer_infostring "google"Referral info sales_platformstring "web"Sales platform total_refund_pricestring "0.00"Refunded amount primary_market_priceobject - Market pricing total_tip_receivedstring "5.00"Tips received discount_applicationsstring "promo10"Discount details refund_statusstring "none"Refund status email_statusstring "sent"Email status recovery_statusstring "success"Recovery status total_paidstring "100.00"Total paid amount payment_linesarray[object] - Payment lines gift_card_totalstring "0.00"Gift card amount logistics_codestring "DHL123"Logistics code shipping_tax_totalstring "1.00"Shipping tax location_lineobject - Location info additional_totalstring "0.00"Additional fees additional_pricesarray[object] - Fee details configobject - Configuration checkout_urlstring "https://..."Checkout URL duty_totalstring "0.00"Duty fees
Parameter Type Example Description idstring "ful_12345"Fulfillment/shipment ID order_idstring "ord_123"Associated order ID statusstring "shipped"Current fulfillment status created_atstring "2023-01-01T00:00:00Z"Creation timestamp updated_atstring "2023-01-02T00:00:00Z"Last update timestamp tracking_companystring "UPS"Shipping carrier name tracking_numberstring "1Z12345E"Package tracking number tracking_company_codestring "ups"Carrier system code line_itemsarray[object] - Shipped items tracking_urlstring "https://ups.com/track"Tracking page URL phone_numberstring "+1234567890"Contact phone for shipment
Parameter Type Example Description idstring "li_12345"Unique line item identifier product_idstring "prod_123"Associated product ID product_titlestring "Premium T-Shirt"Name of purchased product variant_idstring "var_456"Product variant ID variant_titlestring "Blue / Medium"Variant description quantityuint32 2Quantity purchased notestring "Gift wrapping requested"Product-specific note imageobject - Product image details pricestring "29.99"Unit price compare_at_pricestring "39.99"Original/compare price total_pricestring "59.98"Total price (price × quantity) fulfillment_statusstring "fulfilled"Fulfillment status skustring "TSHIRT-BL-M"Inventory tracking code weightstring "0.5"Product weight weight_unitstring "kg"Weight measurement unit vendorstring "Fashion Co"Product supplier product_urlstring "https://..."Product page URL created_atstring "2023-01-01T00:00:00Z"Creation time updated_atstring "2023-01-01T00:00:00Z"Update time optionsarray[object] - Variant options product_slugstring "premium-t-shirt"Product URL slug taxableboolean trueWhether item is taxable requires_shippingboolean trueWhether requires shipping spustring "SPU123"Standard Product Unit product_tagsstring "summer,sale"Product tags refund_quantity_totaluint32 0Total refunded quantity ship_quantityuint32 2Shipped quantity customboolean falseCustom product flag trunk_pricestring "0.00"Trunk price discount_applicationsstring "promo10"Applied discounts tax_pricestring "2.99"Tax amount duty_pricestring "0.00"Duty cost
Parameter Type Example Description srcstring "https://..."Image URL widthint32 800Image width heightint32 600Image height altstring "Blue T-Shirt"Alt text
Parameter Type Example Description namestring "Color"Option name valuestring "Blue"Selected value
Parameter Type Example Description payment_namestring "VISA-1234"Display name of payment method payment_channelstring "stripe"Payment service provider payment_methodstring Specific payment type credit_card_numberstring ""Masked card digits trans_channelstring ` Transaction channel trans_methodstring Transaction method transaction_nostring "txn_789012"Unique transaction ID
Parameter Type Example Description idstring "ship_12345"Unique identifier for the shipping method namestring "Express Delivery"Display name of the shipping method descstring "2-3 business days"Description of shipping terms
Parameter Type Example Description first_namestring "John"First name of the billing contact last_namestring "Doe"Last name of the billing contact addressstring "1 Rue des Carrieres"Primary street address address1string "Suite 1234"Additional address line phonestring "+861231231234"Contact phone number citystring "SAN JOSE"City name zipstring "87036"Postal/ZIP code provincestring "New Mexico"State/Province name countrystring "United States"Country name companystring "ABC Limited"Company name latitudestring "22.54"Geographic latitude longitudestring "114.06"Geographic longitude namestring "John Doe"Full name of billing contact country_codestring "US"2-letter country code province_codestring "NM"State/Province code phone_area_codestring "+86"Phone country code emailstring "[email protected] "Email address areastring "Bay area"Regional area designation
Parameter Type Example Description compare_at_pricestring "129.99"Original/list price in primary currency pricestring "99.99"Current selling price in primary currency total_pricestring "199.98"Extended price (price × quantity) actual_ratestring "1.12"Currency conversion rate applied
Parameter Type Example Description idstring "cust_12345"Unique customer identifier emailstring "[email protected] "Customer's email address first_namestring "John"Customer's first name last_namestring "Doe"Customer's last name phonestring "+1234567890"Customer's phone number created_atstring "2023-01-01T00:00:00Z"Customer account creation date updated_atstring "2023-06-01T00:00:00Z"Last customer profile update order_countint32 5Total orders placed by customer total_spentstring "499.95"Lifetime spending amount
Parameter Type Example Description idstring "1234567890"Unique identifier for the location line. location_idstring "Doe"Identifier for the associated location. location_namestring "123 Main St"Name of the location, such as a store or warehouse.
Parameter Type Example Description product_tax_includedboolean trueTax inclusion flag requires_shippingboolean trueShipping requirement checkout_urlstring "https://store.com/checkout"Order checkout URL
Parameter Type Example Description namestring "Gift Wrapping"System identifier for charge type pricestring "5.99"Charge amount in order currency biz_idstring "gift_wrap_1"Business logic identifier fee_titlestring "Special Packaging"Customer-facing charge description
Parameter Type Example Description primary_market_langstring "en"Primary market language code market_langstring "en-US"Localized market language market_idstring Unique market identifier market_currencystring "USD"Market currency code market_currency_symbolobject - Currency symbol details market_base_idstring "base_us"Base market ID market_base_currencystring "USD"Base market currency market_base_currency_symbolobject - Base currency symbol primary_market_idstring "primary_us"Primary market ID primary_market_currencystring "USD"Primary currency code primary_market_currency_symbolobject - Primary currency symbol market_price_settingobject - Price calculation settings market_countrystring "US"2-letter country code
Parameter Type Example Description codestring "USD"ISO currency code valstring "$"Currency symbol leftstring "$"Left-side display rightstring ""Right-side display
Parameter Type Example Description local_currency_enabledboolean trueLocal currency active custom_rate_enabledboolean falseCustom exchange rate custom_ratefloat 1.0Manual exchange rate ratefloat 1.12Current exchange rate back_ratefloat 0.89Reverse exchange rate actual_ratefloat 1.1198Precise exchange rate base_to_ratefloat 1.0Base to local rate local_to_ratefloat 1.0Local to base rate adjustint32 0Price adjustment % price_round_enabledboolean truePrice rounding active
Field Type Example Description codestring InvalidParameterError http message messagestring `` Error message