Skip to main content
PUT
Update Destination

Authorizations

X-Authorization
string
header
required

Path Parameters

id
integer
required

The destination's unique identifier.

Body

application/json
name
string
required

The destination's name.

Maximum string length: 191
Example:

"Example Destination"

type
enum<string>
required

The type of location represented by the destination.

Available options:
warehouse,
donate
Example:

"warehouse"

address
object
required

The destination's address.

enabled
boolean

Whether the destination is enabled as a return destination.

Example:

true

Response

Success

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

id
integer

The destination's unique identifier.

Example:

1

type
enum<string>

The type of location represented by the destination.

Available options:
warehouse,
donate
Example:

"warehouse"

name
string

The destination's name.

Example:

"Example Destination"

enabled
boolean

Whether the destination is enabled as a return destination.

Example:

true

provider_location_id
integer | null

The numeric location identifier from the commerce platform (for example Shopify) when a location is linked to this destination in Loop. null when no location is linked. The linked location's source field indicates which provider the ID belongs to.

Example:

42424242

address
object

The destination's address.