Skip to main content

UpdateMobileAddressInput

Changes to an ordering address. Omitted fields stay as they are.

input UpdateMobileAddressInput {
addressId: ID!
addressLine1: String
addressType: AddressType
city: String
country: String
isDualPurpose: Boolean
lat: Float
lng: Float
name: String
phone: String
postalCode: String
state: String
}

Fields​

UpdateMobileAddressInput.addressId ● ID! non-null scalar​

The ID of the address.

UpdateMobileAddressInput.addressLine1 ● String scalar​

The first line of the address.

UpdateMobileAddressInput.addressType ● AddressType enum​

Address classification (AddressType enum).

UpdateMobileAddressInput.city ● String scalar​

The city.

UpdateMobileAddressInput.country ● String scalar​

The country.

UpdateMobileAddressInput.isDualPurpose ● Boolean scalar​

TRUE when the address serves BOTH the shipping and billing role. addressType stays the PRIMARY classification (one enum column cannot hold two roles) and this records the second — the same pair myAddresses already returns. Nullable/optional: app builds predating this field send nothing and the column defaults to false. Until this existed the buyer app had nowhere to put a both-ticked selection, so it encoded the combination in name ("Shipping & Billing") and parsed it back out on edit — do not go back to that.

UpdateMobileAddressInput.lat ● Float scalar​

The latitude of the address on the map.

UpdateMobileAddressInput.lng ● Float scalar​

The longitude of the address on the map.

UpdateMobileAddressInput.name ● String scalar​

The name of the address.

UpdateMobileAddressInput.phone ● String scalar​

Phone number.

UpdateMobileAddressInput.postalCode ● String scalar​

Postal / ZIP code. OPTIONAL, unlike the admin address form which requires it: many of the countries this app ships to (QA, AE, …) have no postal system, and a required field there blocks the buyer from saving a perfectly valid address. Omitted or blank stores an empty string — Address.postalCode is a NOT NULL column, so it can never be null. Until this field existed the service wrote the literal "00000" for every mobile-created address, which is why older rows carry it.

UpdateMobileAddressInput.state ● String scalar​

The state or region.

Member Of​

updateAddress mutation