curl --request GET \
--url https://api.loopreturns.com/api/v1/destinations \
--header 'X-Authorization: <api-key>'{
"destinations": [
{
"id": 1,
"type": "warehouse",
"name": "Example Destination",
"enabled": true,
"address": {
"address1": "123 Main St",
"address2": "Unit 456",
"city": "Columbus",
"state": "Ohio",
"zip": "43210",
"country": "United States",
"country_code": "US"
}
}
]
}Retrieve all destinations.
curl --request GET \
--url https://api.loopreturns.com/api/v1/destinations \
--header 'X-Authorization: <api-key>'{
"destinations": [
{
"id": 1,
"type": "warehouse",
"name": "Example Destination",
"enabled": true,
"address": {
"address1": "123 Main St",
"address2": "Unit 456",
"city": "Columbus",
"state": "Ohio",
"zip": "43210",
"country": "United States",
"country_code": "US"
}
}
]
}Success
Show child attributes
The destination's unique identifier.
1
The type of location represented by the destination.
warehouse, donate "warehouse"
The destination's name.
"Example Destination"
Whether the destination is enabled as a return destination.
true
The destination's address.
Show child attributes
The street address of the destination.
"123 Main St"
The secondary address details of the destination.
"Unit 456"
"Columbus"
"Ohio"
"43210"
"United States"
"US"