Mutations

UpdateAddress

Update an address

Parameters

id
Id of the address
input
Data of the address

Example

mutation UpdateAddress($id: ID!, $input: AddressInput!) {
  UpdateAddress(id: $id, input: $input) {
    id
    label
  }
}
{
  "id": 100010,
  "input": {
    "postal_code": "75011",
    "city": "Paris 11"
  }
}

Returned data

{
  "data": {
    "UpdateAddress": {
      "id": 100010,
      "label": "Point of sales Paris"
    }
  }
}

AddressInput data type

label
Label of the address
country
Country code (UK, FR, ...)
address_1
Line 1 of the address
address_2
Line 2 of the address
postal_code
Postal code
city
City (New-York, Paris, ...)
state
State
phone
Phone number