mutation

addAddress

Add a new address to their cart to save details such as name, email, contact information, and address.
Arguments
address2Input
Address2Input
Address details, consists of pincode, phone, address id, country code, geo location, country, state, city, landmark, email etc.
Response
Id of the 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 save address Response.
Mutation
1mutation addAddress($address2Input: Address2Input) {
2 addAddress(address2Input: $address2Input) {
3 id
4 is_default_address
5 success
6 }
7}
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}
Response
1{
2 "addAddress": {
3 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
4 "is_default_address": true,
5 "success": true
6 }
7}