Support

updateDraftOrderBillingInfo

View as Markdown

Update billing information on an existing draft order

mutation

Requires one of commerce.order:create, commerce.order:update, commerce.order:cancel, or commerce.order:complete (use the scope that matches the operation).

Update billing information on an existing draft order

Required headers

HeaderRequiredDescription
x-store-idYesID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: extensions.code: "UNAUTHENTICATED".

Go to Authentication for credential setup.

Arguments

  • orderId ID! required
  • input UpdateDraftOrderBillingInfoInput! required
    • address OrderAddressInput optional
    • companyName String optional
    • email String optional
    • firstName String optional
    • lastName String optional
    • phone String optional

Possible returns

  • ID ID — The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Last updated on

How is this guide?