Get an Address

Get By ID

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

Path Parameters

NameTypeDescription

addressId

string

The ID for the Address you are requesting

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

{
  "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/:address_id \
     -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/:address_id \
     -H "Authorization: Bearer XXXX"

Last updated