Orders > Orders > ordersCreateImported
Commerce APIOrdersOrdersordersCreateImported
ordersCreateImported
POST:orders/create_imported.json

Description

Create an imported order.

Permission bit: "orders.create"

Topic: Orders

Arguments

data: [OIOrder!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

billing_address: AddressCreate!


billing_address_short_id: String


cancel_reason: OrderCancelReason

The reason why the order was canceled


canceled_at: String


coupon_id: String!


created_at: String!


currency: String!


custom_items: [OICustomItem!]


customer_balance_spent: Int!


customer_id: String!


financial_status: OrderFinancialStatus!

Financial status of the order


fulfilled_at: String


fulfillment_status: OrderFulfillmentStatus!

Fulfillment status of the order


fulfillments: [OIOrderFulfillment!]


history: [OIOrderHistory!]


line_items: [OIOrderLineItem!]!


mobile: String!


mobile_notifications: Boolean!


number: Int!


paid_at: String!


payment_detail: OIPaymentDetail


primary_rate: Float!


promotion_id: String!


recovered: Boolean!


reserved_at: String!


restored_at: String


round_tax_at: RoundTaxAt!

At what level the tax should be rounded


sales_channel_id: String


shipping_address: AddressCreate!


shipping_address_override: AddressCreate


shipping_address_short_id: String


shipping_detail: OIShippingDetail!


shipping_price: Int!


source_name: OrderSourceName!

Where the order originated from


subtotal_price: Int!


tax_inclusive_prices: Boolean!


tax_rounding: Int!


total_discounts: Int!


total_line_items_price: Int!


total_price: Int!


total_tax: Int!


total_weight: Int!


usd_rate: Float!


Result

[Order!]

Preview (typescript)

Loading module