Create/Update Address
Create or update an address for a user by ID
Endpoint Details
POST
/users/addresses/add
Headers
Content-Type
application/json
Authorization
Bearer <YOUR_ACCESS_TOKEN>
Body
userId
string
Identifier of the user to add address for
one
string
Primary street address
two
string
Secondary address (apt, suite, etc.)
city
string
City name
state
string
Two-letter state code or full state name
zip
string
Postal/ZIP code
type
string
Address type ('shipping' or 'billing')
placesId
string
Google Places API location identifier
lat
number
Latitude coordinate of address
long
number
Longitude coordinate of address
isDefault
boolean
Set as default address for type, default: false
Response Details
statusCode
number
HTTP status code of the response
message
string
A brief message describing the result of the API call
metadata
Contains metadata about the API call
auth
Authentication object, only when refresh in true
data
Address object added
Metadata Object
Sample Request and Response
Last updated