List - Addresses
GET/api/address
These are the addresses you have enabled to be used as origin/destination for the Auctions. Please note that you cannot set the same address as both origin and destination.
Request
Header Parameters
Apikey of a company linked to a user
Responses
- 200
The response of the Address list is paginated, so each object in the list is of type Address. Each point of it is taken into consideration.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object
docs object[]
Possible values: non-empty
, Value must match regular expression ^[0-9a-fA-F]{24}$
Internal ID for database usage.
Possible values: non-empty
City of the address
Possible values: non-empty
Name of the destination company. It will be used for data verification.
Possible values: >= 3 characters
and <= 20 characters
https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
GPS location position
Possible values: non-empty
Name (or nickname) you give to the address for your use
Possible values: non-empty
Complete data
Possible values: non-empty
User's contact phone number
Possible values: non-empty
Province of the address
Possible values: non-empty
Province or Community of the address. In case it's not compatible with the address format, it may remain empty.
Possible values: non-empty
Physical address; street, avenue, etc.
Possible values: non-empty
House number of the address
Possible values: non-empty
Postal code of the address. It will depend on the country for the use of one format or another.
{
"data": {
"docs": [
{
"_id": "5d84f846b0f6ba698f544dbf",
"city": "vigo",
"company_name": "ABC Logistics",
"country": "españa",
"location": {
"coordinates": [
-8.7207,
42.2406
],
"type": "Point"
},
"name": "ABC Logistics Vigo",
"name_address": "Aduana, 4, Rúa Concepción Arenal, Santiago de Vigo, Vigo, Pontevedra, Galicia, 36201, España",
"phone": "+34981234567",
"province": "Pontevedra",
"state": "galicia",
"street_address": "Rúa Concepción Arenal",
"street_number": "4",
"zipcode": "36201"
}
],
"hasNextPage": true,
"hasPrevPage": true,
"limit": 0,
"nextPage": 0,
"page": 0,
"pagingCounter": 0,
"prevPage": 0,
"totalDocs": 0,
"totalPages": 0
},
"status": 0
}