Skip to content

Remove a delivery partner

DELETE
/delivery-partners/{id}
curl --request DELETE \
--url https://example.com/delivery-partners/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--cookie __Host-bottle.session_token=<__Host-bottle.session_token>

Deleted if no order has ever used it. Once one has, it is archived instead: it can no longer be chosen, and its orders still name it.

id
required
string format: uuid

What became of it

Media typeapplication/json
object
outcome
required
string
Allowed values: deleted archived

Example

{
"outcome": "deleted"
}

Not signed in

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Not a member, without the permission this needs, or on a plan without delivery partners

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Not found

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Refused, with the reason

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Validation failed

Media typeapplication/json
object
error
required
string
Allowed values: validation
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string

Example

{
"error": "validation",
"issues": [
{
"path": "email",
"message": "Invalid email"
}
]
}