API Reference

UpdateAddress

Update an address

Parameters

id - ID
Id of the address
input - AddressInput
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 - String
Label of the address
country - String
Country code (UK, FR, ...)
address_1 - String
Line 1 of the address
address_2 - String
Line 2 of the address
postal_code - String
Postal code
city - String
City (New-York, Paris, ...)
state - String
State
phone - String
Phone number