v1
latestOpenAPI 3.1.02026-07-2689175245.8 KBDestinations
Create Destination
Create a destination.
Required API key scope
- Destinations (Write)
post/destinations
Request body
Example request
{
"name": "Example Destination",
"type": "warehouse",
"enabled": true,
"address": {
"name": "Main Warehouse",
"company": "Universal Exports",
"address1": "123 Main St",
"address2": "Unit 456",
"city": "Columbus",
"state": "Ohio",
"zip": "43210",
"country": "United States",
"country_code": "US",
"phone": "+1-678-999-8212"
}
}Response
Success
Example response
{
"id": 1,
"type": "warehouse",
"name": "Example Destination",
"enabled": true,
"provider_location_id": 42424242,
"address": {
"id": 23432434,
"hash": "dd93hf99d83hdops9d8fhh38fhd03hh3",
"created_at": "2021-10-01T03:30:15.000Z",
"updated_at": "2021-10-01T03:30:15.000Z",
"name": "Staples",
"company": "Example Company",
"address1": "1747 Olentangy River Rd",
"city": "Columbus",
"state": "OH",
"zip": "43212",
"country": "United States of America",
"country_code": "US",
"latitude": 39.995329,
"longitude": -83.026838
}
}