Schema Documentation

UpdateOrderInput

Description

Input for the updateOrder mutation.

Fields
Input FieldDescription
billing - CustomerAddressInput Order billing address
clientMutationId - String This is an ID that can be passed to a mutation by the client to track the progress of mutations and catch possible duplicate mutation submissions.
coupons - [String] Coupons codes to be applied to order
currency - String Currency the order was created with, in ISO format.
customerId - Int Order customer ID
customerNote - String Note left by customer during checkout.
feeLines - [FeeLineInput] Order shipping lines
id - ID Order global ID
isPaid - Boolean Define if the order is paid. It will set the status to processing and reduce stock items.
lineItems - [LineItemInput] Order line items
metaData - [MetaDataInput] Order meta data
orderId - Int Order WP ID
parentId - Int Parent order ID.
paymentMethod - String Payment method ID.
paymentMethodTitle - String Payment method title.
shipping - CustomerAddressInput Order shipping address
shippingLines - [ShippingLineInput] Order shipping lines
status - OrderStatusEnum Order status
transactionId - String Order transaction ID
Example
{"billing":CustomerAddressInput,"clientMutationId":"abc123","coupons":["xyz789"],"currency":"xyz789","customerId":987,"customerNote":"xyz789","feeLines":[FeeLineInput],"id":"4","isPaid":true,"lineItems":[LineItemInput],"metaData":[MetaDataInput],"orderId":987,"parentId":987,"paymentMethod":"abc123","paymentMethodTitle":"abc123","shipping":CustomerAddressInput,"shippingLines":[ShippingLineInput],"status":"CANCELLED","transactionId":"abc123"}