list-returns
Method: GET
Path: /orders/returns
Tags: Orders
Summary
Retrieve all order returns
Description
Retrieve all order returns
TypeScript Definition
typescript
"list-returns": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
message?: string;
success?: boolean;
content?: {
returns?: components["schemas"]["OrderReturn"][];
};
};
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
404: components["responses"]["NotFound"];
};
};Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["OrderReturn"] | OrderReturn |
components["responses"]["BadRequest"] | BadRequest |
components["responses"]["Unauthorized"] | Unauthorized |
components["responses"]["NotFound"] | NotFound |
Responses
200
OK
400
Bad request
401
Not authorized for given operation on the Resource
404
Requested resource not found
OpenAPI Definition
json
{
"tags": [
"Orders"
],
"operationId": "list-returns",
"summary": "Retrieve all order returns",
"description": "Retrieve all order returns",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/operations/list-returns",
"description": "API reference for the list-returns operation"
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"success": {
"type": "boolean"
},
"content": {
"properties": {
"returns": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OrderReturn"
}
}
},
"type": "object"
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
}
},
"security": [
{
"Authorization": []
}
],
"x-speakeasy-group": "orders",
"x-speakeasy-ignore": true,
"x-speakeasy-name-override": "listReturns"
}Auto-generated from OpenAPI spec and TypeScript definitions