POST
/
destinations
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"
  }
}

Authorizations

X-Authorization
string
header
required

Body

application/json
name
string
required

The destination's name.

type
enum<string>
required

The type of location represented by the destination.

Available options:
warehouse,
donate
address
object
required

The destination's address.

enabled
boolean

Whether the destination is enabled as a return destination.

Response

200
application/json
Success

A physical location such as a warehouse or donation center to which returns are shipped.

id
integer

The destination's unique identifier.

type
enum<string>

The type of location represented by the destination.

Available options:
warehouse,
donate
name
string

The destination's name.

enabled
boolean

Whether the destination is enabled as a return destination.

address
object

The destination's address.