CreateOrderInput
Input for creating an order
Note:
ShippingAddress is required but BillingAddress is not. BillingAddress will be set to ShippingAddress if not provided
CustomerID must be an existing customer
input CreateOrderInput {
rows: [OrderRowInput!]!
externalId: String
fees: [FeeInput!]
billingAddress: AddressInput
shippingAddress: AddressInput!
customerId: Int!
}
Fields
rows ● [OrderRowInput!]!
externalId ● String
fees ● [FeeInput!]
billingAddress ● AddressInput
shippingAddress ● AddressInput!
customerId ● Int!
Example
{
"rows": [
{
"productId": "P12345",
"unitPrice": {
"priceExcludingTax": 80,
"taxAmount": 20
}
}
],
"externalId": "SHP-23421",
"fees": [
{
"type": "DELIVERY"
}
],
"billingAddress": {}
}