Skip to main content
POST
/
addresses
Create a new Address
curl --request POST \
  --url https://commerce.driv.ly/api/addresses \
  --header 'Content-Type: application/json' \
  --data '
{
  "city": {
    "state": "<string>",
    "name": "<string>"
  },
  "zip": "<string>",
  "line1": "<string>",
  "id": "<string>",
  "line2": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "city": {
      "state": "<string>",
      "name": "<string>"
    },
    "zip": "<string>",
    "line1": "<string>",
    "line2": "<string>"
  },
  "success": true
}

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json
city
object
required

Address is located in City

zip
string
required

Address has ZIP

line1
string
required

Address has Address Line 1

id
string

Address is uniquely identified by id

line2
string

Address has Address Line 2

Response

Address Created

data
Address · object
success
boolean