Address
This page contains the documentation for the address endpoints.
The address endpoints allow you to add, modify, select and delete an address. You can view the list of addresses that you have.
This endpoint allows you to get the list of addresses.
Provide your API key.
Successful response. Returns the user's address information.
See message description.
see message description.
GET /address/list HTTP/1.1
Host: thefurniturebros.com
Authorization: YOUR_API_KEY
Accept: */*
{
"_id": "6556dd7a50e4db57682be25c",
"user": {
"_id": "6555a0f89feeac7dccd9b1dd",
"name": "first account"
},
"addresses": [
{
"address": "383 Kent St, Sydney NSW 2000, Australia",
"main": false,
"_id": "656bf54c99723847983a9714"
},
{
"address": "80 Collins St, Melbourne VIC 3000, Australia",
"main": true,
"_id": "656d3c9b6f828da5305bad97"
}
],
"__v": 53
}This endpoint allows you to get the API key for Google Places API. Learn more here.
Provide your API key.
Successful response. The order has been created successfully.
The API key for Google Places.
AIzaSyC6ASDCKAAS3G1E2EjRKlzk8TvHziasds"See message description.
see message description.
GET /address/api_key HTTP/1.1
Host: thefurniturebros.com
Authorization: YOUR_API_KEY
Accept: */*
AIzaSyC6ASDCKAAS3G1E2EjRKlzk8TvHziasds"This endpoint allows you to add an address for the user.
Provide your API key.
The address of the user to add. Newly added address will be selected as the main address.
Successful response. The order has been created successfully.
successSee message description.
see message description.
POST /address/add HTTP/1.1
Host: thefurniturebros.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"address": "383 Kent St, Sydney NSW 2000, Australia"
}successThis endpoint allows you to delete an address.
Provide your API key.
The address ID of the user to be deleted.
Use the GET get addresses endpoint to look at the list of addresses, and it's ID.
Successful response. Returns the user's address information.
See message description.
see message description.
DELETE /address/delete HTTP/1.1
Host: thefurniturebros.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 40
{
"addressId": "674b3347dc3d9360b4c32da3"
}{
"_id": "6556dd7a50e4db57682be25c",
"user": "6555a0f89feeac7dccd9b1dd",
"addresses": [
{
"address": "383 Kent St, Sydney NSW 2000, Australia",
"main": false,
"_id": "656bf54c99723847983a9714"
},
{
"address": "80 Collins St, Melbourne VIC 3000, Australia",
"main": true,
"_id": "656d3c9b6f828da5305bad97"
}
],
"__v": 53
}Last updated