Skip to main content

CreateDraftOrderInput

Autogenerated input type of CreateDraftOrder

input CreateDraftOrderInput {
billToCompany: String
billToEmail: String
billToName: String
billToPhone: String
billingAddress: AddressInput
brandId: ID
clientMutationId: String
orderItems: [OrderItemInput!]
orderNumber: String
salesChannelId: ID
shipToCompany: String
shipToEmail: String
shipToName: String
shipToPhone: String
shipToSameAsBillTo: Boolean
shippingAddress: AddressInput
}

Fields

CreateDraftOrderInput.billToCompany ● String scalar

The company of the person who will receive the bill.

CreateDraftOrderInput.billToEmail ● String scalar

The email of the person who will receive the bill.

CreateDraftOrderInput.billToName ● String scalar

The name of the person who will receive the bill.

CreateDraftOrderInput.billToPhone ● String scalar

The phone of the person who will receive the bill.

CreateDraftOrderInput.billingAddress ● AddressInput input

The address where the bill will be sent to.

CreateDraftOrderInput.brandId ● ID scalar

The brand ID. This parameter is optional, but if not provided, you should provide the header 'X-Brand-Id' with the brand ID.

CreateDraftOrderInput.clientMutationId ● String scalar

A unique identifier for the client performing the mutation.

CreateDraftOrderInput.orderItems ● [OrderItemInput!] list input

The items that are part of the order.

CreateDraftOrderInput.orderNumber ● String scalar

The order number. This order number must be unique in the brand context. If not provided, the system will generate a unique order number.

CreateDraftOrderInput.salesChannelId ● ID scalar

The sales channel ID for the order. If not provided, the system may use a default channel.

CreateDraftOrderInput.shipToCompany ● String scalar

The company of the person who will receive the order.

CreateDraftOrderInput.shipToEmail ● String scalar

The email of the person who will receive the order.

CreateDraftOrderInput.shipToName ● String scalar

The name of the person who will receive the order.

CreateDraftOrderInput.shipToPhone ● String scalar

The phone of the person who will receive the order.

CreateDraftOrderInput.shipToSameAsBillTo ● Boolean scalar

Indicates if the bill to address is the same as the ship to address.

CreateDraftOrderInput.shippingAddress ● AddressInput input

The address where the order will be shipped to.

Member Of

createDraftOrder mutation