Get Customer Addresses

Get all of a customers addresses

GET https://api.moltin.com/v2/customers/:customerId/addresses

Path Parameters

NameTypeDescription

customerId

string

A customer ID that has addresses

Headers

NameTypeDescription

X-Moltin-Customer-Token

string

A customer token used to access customer addresses implicitly

Authorization

string

The Bearer token to grant access to the API

{
  "data": [
    {
      "id": "5f8da740-6680-463e-b31c-190b2db4bf9d",
      "type": "address",
      "name": "Home",
      "first_name": "Ron",
      "last_name": "Swanson",
      "company_name": "",
      "phone_number": "(555) 555-1234",
      "line_1": "1 Sunny Street",
      "line_2": "Sunny Place",
      "city": "Sunny Town",
      "postcode": "SU33 1YY",
      "county": "Sunnyville",
      "country": "GB",
      "instructions": "Leave in the shed",
      "links": {
        "self":
          "https://api.moltin.com/v2/addresses/5f8da740-6680-463e-b31c-190b2db4bf9d"
      },
      "meta": {
        "timestamps": {
          "created_at": "2018-05-04T15:20:09.734Z",
          "updated_at": "2018-05-04T15:20:09.734Z"
        }
      }
    }
  ]
}

With customer token

curl -X GET https://api.moltin.com/v2/customers/:customer_id/addresses \
     -H "X-Moltin-Customer-Token: XXXX"
     -H "Authorization: Bearer XXXX"

Without customer token

curl -X GET https://api.moltin.com/v2/customers/:customer_id/addresses \
     -H "Authorization: Bearer XXXX"

Last updated