cURL
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 }
The number of levels of related objects to include in the response
Address is located in City
Show child attributes
Address has ZIP
Address has Address Line 1
Address is uniquely identified by id
Address has Address Line 2
Address Created
{ "id": "adr_2kj49d1msod2", "zip": "62704", "city": { "name": "Springfield", "state": { "code": "IL" } }, "line2": "Apt 201", "line1": "456 Elm Street"}