POST

/v1/addresses

Bearer*
curl --request POST \
  --url https://api.oneslipstream.com/v1/addresses \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "consumer": "con_bPKKB3sYsukFanSsaBcMCMR2",
  "city": "London",
  "country": "GB",
  "line1": "New Bond Street",
  "postcode": "SE1 7TP"
}'
{
  "id": "addr_bPKKB3sYsukFanSsaBcMCMR2",
  "buildingName": "null",
  "buildingNumber": "7",
  "city": "London",
  "country": "GB",
  "line1": "New Bond Street",
  "line2": "null",
  "postcode": "SE1 7TP",
  "state": "Greater London",
  "subBuildingName": "null",
  "subBuildingNumber": "null",
  "createdAt": "2022-01-01T00:00:00.000Z"
}

Authorizations

Authorizationheaderrequired
string

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
consumerrequired
string

The unique identifier for the consumer

buildingName
string | null

The building name

buildingNumber
string | null

The building number

cityrequired
string | null

The city

countryrequired
string | null

The country

line1required
string

Address line 1 (e.g., street)

line2
string | null

Address line 2 (e.g., apartment, suite, unit, or building).

postcoderequired
string | null

The postal code

state
string | null

The state

subBuildingName
string | null

The sub building name

subBuildingNumber
string | null

The sub building number

Response

200 - application/json
idrequired
string

The unique identifier for the address

buildingName
string | null

The building name

buildingNumber
string | null

The building number

cityrequired
string | null

The city

countryrequired
string | null

The country

line1required
string

Address line 1 (e.g., street)

line2
string | null

Address line 2 (e.g., apartment, suite, unit, or building).

postcoderequired
string | null

The postal code

state
string | null

The state

subBuildingName
string | null

The sub building name

subBuildingNumber
string | null

The sub building number

createdAt
string

The date and time the address was created