Skip to main content

changeMobileOrderAddress

Requires a customer (portal or buyer app) session.

Buyer 'change delivery address': swap the order's ship-to (and bill-to, mirroring placement) for another ACTIVE address of the same company. Same gates as updateMobileOrderItems; never on an order placed for a branch, nor on one whose delivery fee was a live courier quote for its address.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation ChangeMobileOrderAddress($input: ChangeMobileOrderAddressInput!) {
changeMobileOrderAddress(input: $input) {
id
orderNumber
paymentNumber
salesRepName
status
addressId
amendment {
canChangeAddress
canChangePaymentMethod
canEditItems
lockReason
paymentMethodLockReason
version
}
}
}

Variables:

{
"input": {
"addressId": "id",
"orderId": "id"
}
}

Response:

{
"data": {
"changeMobileOrderAddress": {
"id": "id",
"orderNumber": "string",
"paymentNumber": "string",
"salesRepName": "string",
"status": "AWAITING_PAYMENT",
"addressId": "id",
"amendment": {
"canChangeAddress": true,
"canChangePaymentMethod": true,
"canEditItems": true,
"lockReason": "string",
"paymentMethodLockReason": "string",
"version": 0
}
}
}
}
changeMobileOrderAddress(
input: ChangeMobileOrderAddressInput!
): MobileOrder!

Arguments​

changeMobileOrderAddress.input ● ChangeMobileOrderAddressInput! non-null input​

The fields of the mobile order address to change.

Type​

MobileOrder object​

Order placed via the mobile BFF. v1 is COD only; persisted in Redis until SalesOrder wiring lands.