Skip to main content
DELETE
/
orders
/
{id}
Delete Order
curl --request DELETE \
  --url https://api.petstoreapi.com/v1/orders/{id}
{
  "type": "https://petstoreapi.com/errors/bad-request",
  "title": "Bad Request",
  "status": 400,
  "detail": "Invalid value for parameter 'status'. Must be one of: available, pending, sold.",
  "instance": "/pets"
}

Headers

X-Tenant-ID
string<uuid>

Optional tenant identifier for data isolation. When provided, all operations will be scoped to this tenant, ensuring data separation between different organizations or users. If omitted, operations will access the shared/public data pool where data may be visible to and modified by other users.

Path Parameters

id
string<uuid>
required

Unique identifier for the order

Response

Resource deleted successfully