get-order-return-detail
Method: GET
Path: /orders/{order_number}/return/{return_id}
Tags: Orders
Summary
Retrieve order return detail
Description
Retrieve order return detail
TypeScript Definition
typescript
"get-order-return-detail": {
parameters: {
query?: never;
header?: never;
path: {
/** @description order number */
order_number: string;
/** @description return id */
return_id: string;
};
cookie?: never;
};
requestBody?: never;
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
message?: string;
success?: boolean;
content?: {
order_return?: 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 |
Parameters
- order_number (path): order number
- return_id (path): return id
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": "get-order-return-detail",
"summary": "Retrieve order return detail",
"description": "Retrieve order return detail",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/operations/get-order-return-detail",
"description": "API reference for the get-order-return-detail operation"
},
"parameters": [
{
"name": "order_number",
"in": "path",
"description": "order number",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "return_id",
"in": "path",
"description": "return id",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"success": {
"type": "boolean"
},
"content": {
"properties": {
"order_return": {
"$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": "getOrderReturnDetail"
}Auto-generated from OpenAPI spec and TypeScript definitions