Services
API Reference
- Back Office
- Listings
- Historical Photos
- Vehicles
- Taxes & Fees
- Consumers
- Credit
- Services
- Invoices
- Companies
- Locations
- Webhooks
- Inspection
Locations
Create a new Address
POST
/
addresses
curl --request POST \
--url https://commerce.driv.ly/api/addresses \
--header 'Content-Type: application/json' \
--data '{
"id": "adr_2kj49d1msod2",
"zip": "62704",
"city": {
"name": "Springfield",
"state": {
"code": "IL"
}
},
"line2": "Apt 201",
"line1": "456 Elm Street"
}'
{
"data": {
"id": "adr_2kj49d1msod2",
"zip": "62704",
"city": {
"name": "Springfield",
"state": {
"code": "IL"
}
},
"line2": "Apt 201",
"line1": "456 Elm Street"
},
"success": true
}
Query Parameters
The number of levels of related objects to include in the response
Body
application/json
Response
200
application/json
Address Created
The response is of type object
.
curl --request POST \
--url https://commerce.driv.ly/api/addresses \
--header 'Content-Type: application/json' \
--data '{
"id": "adr_2kj49d1msod2",
"zip": "62704",
"city": {
"name": "Springfield",
"state": {
"code": "IL"
}
},
"line2": "Apt 201",
"line1": "456 Elm Street"
}'
{
"data": {
"id": "adr_2kj49d1msod2",
"zip": "62704",
"city": {
"name": "Springfield",
"state": {
"code": "IL"
}
},
"line2": "Apt 201",
"line1": "456 Elm Street"
},
"success": true
}
Assistant
Responses are generated using AI and may contain mistakes.