updateOrderCustomerInformation
Updates customer information for a V2 order.
This mutation allows updating shipping and billing addresses, names, emails, phones, and companies for orders in draft, pending, or accepted states.
Requirements
- User must have
update_orderpermission - Valid brand context must be provided (via argument or X-Brand-Id header)
- Order must exist and be using the V2 aggregate (internal_version = "v2")
- Order must be in draft, pending, or accepted state
Arguments
order_id(required): The ID of the order to updateshipping_address(optional): The shipping addressship_to_name(optional): The shipping nameship_to_email(optional): The shipping emailship_to_phone(optional): The shipping phoneship_to_company(optional): The shipping companyship_to_same_as_bill_to(optional): Whether billing address is same as shippingbilling_address(optional): The billing address (required if ship_to_same_as_bill_to is false)bill_to_name(optional): The billing namebill_to_email(optional): The billing emailbill_to_phone(optional): The billing phonebill_to_company(optional): The billing companybrand_id(optional): The brand ID (can be provided via X-Brand-Id header)
Validation
- Addresses must have address1, city, country, and postal_code
- Postal codes are validated against country-specific formats
updateOrderCustomerInformation(
input: UpdateOrderCustomerInformationInput!
): V2Order!
Arguments
updateOrderCustomerInformation.input ● UpdateOrderCustomerInformationInput! non-null input
Parameters for UpdateOrderCustomerInformation
Type
V2Order object
The V2 order type. This type represents a V2 order in the system with only the fields necessary for draft creation and details.