cURL
curl --request POST \ --url https://api.loopreturns.com/api/v1/destinations \ --header 'Content-Type: application/json' \ --header 'X-Authorization: <api-key>' \ --data '{ "name": "Example Destination", "type": "warehouse", "enabled": true, "address": { "address1": "123 Main St", "address2": "Unit 456", "city": "Columbus", "state": "Ohio", "zip": "43210", "country": "United States", "country_code": "US" } }'
{ "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" } }
Create a destination.
Success
A physical location such as a warehouse or donation center to which returns are shipped.