Addresses

Create address

Create and add a shipping address to the current user.

post/user/shipping

Request body

namestring required

The recipient's name.

street1string required

Street of the address.

street2string

Apartment, suite, etc. of the address.

citystring required

City of the address.

provincestring

Province or state of the address.

zipstring required

Zip code of the address.

phonestring

Phone number of the recipient.

countrystring required

Example request

{
  "name": "John Doe",
  "street1": "123 Main St",
  "street2": "Apt 1",
  "city": "Anytown",
  "province": "CA",
  "zip": "12345",
  "country": "US",
  "phone": "5555555555"
}

Response

Shipping address ID.

datastring required

Shipping address ID.

Example response

{
  "data": "shp_XXXXXXXXXXXXXXXXXXXXXXXXX"
}

Changes