mutation

updateAddress

Customer can modify the details of a previously saved addresses.
Arguments
address2Input
Address2Input
Address details, consists of pincode, phone, address id, country code, geo location, country, state, city, landmark, email etc.
ID allotted to the selected address.
Response
ID of an address.
is_default_address
Boolean
Default address flag if no address selected then this should be the default address selected.
success
Boolean
Success flag of update address response.
is_updated
Boolean
Updated flag for update address operation if the address updated or not.
address_id
Int
Unique id associated with address
Mutation
1mutation updateAddress($address2Input: Address2Input, $id: String) {
2 updateAddress(address2Input: $address2Input, id: $id) {
3 id
4 is_default_address
5 success
6 is_updated
7 address_id
8 }
9}
Try it
Input Variables
1{
2 "address2Input": {
3 "_custom_json": {},
4 "address": "2832 Sesame Street",
5 "address_type": "address_type",
6 "area": "area",
7 "area_code": "area_code",
8 "area_code_slug": "area_code_slug",
9 "checkout_mode": "checkout_mode",
10 "city": "Montreal",
11 "country": "Canada",
12 "country_code": "country_code",
13 "country_iso_code": "country_iso_code",
14 "country_phone_code": "country_phone_code",
15 "created_by_user_id": "created_by_user_id",
16 "email": "[email protected]",
17 "geo_location": {
18 "latitude": 30.7,
19 "longitude": 30.7
20 },
21 "google_map_point": {},
22 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
23 "is_active": true,
24 "is_default_address": true,
25 "landmark": "landmark",
26 "meta": {},
27 "name": "A name",
28 "phone": "1+ 418-323-4236",
29 "sector": "sector",
30 "pincode": "pincode",
31 "state": "Quebec",
32 "state_code": "state_code",
33 "tags": [
34 "tags"
35 ],
36 "user_id": "user_id"
37 },
38 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e"
39}
Response
1{
2 "updateAddress": {
3 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
4 "is_default_address": true,
5 "success": true,
6 "is_updated": true,
7 "address_id": 42
8 }
9}