> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vambe.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Get order products

## Overview

Retrieve products associated with a specific order. Returns order details including all products, quantities, and prices.

## Use Cases

* **Order Confirmation**: Display order details to customers
* **Order Processing**: Get product list for fulfillment
* **Analytics**: Analyze order composition
* **Customer Service**: View what customer ordered

## Authentication

```
x-api-key: your_api_key_here
```

## Path Parameters

| Parameter | Type   | Required | Description |
| --------- | ------ | -------- | ----------- |
| `id`      | string | Yes      | Order ID    |

## Response Structure

| Field      | Type   | Description              |
| ---------- | ------ | ------------------------ |
| `id`       | string | Order ID                 |
| `currency` | string | Order currency           |
| `total`    | number | Total order amount       |
| `products` | array  | Array of product objects |

### Product Object

| Field      | Type   | Description      |
| ---------- | ------ | ---------------- |
| `id`       | string | Product ID       |
| `name`     | string | Product name     |
| `quantity` | number | Quantity ordered |
| `price`    | number | Unit price       |

## Example Request

```bash theme={null}
curl --request GET \
  'https://api.vambe.me/api/public/order/order-123/product' \
  --header 'x-api-key: your_api_key_here'
```

## Example Response

```json theme={null}
{
  "id": "order-123",
  "currency": "USD",
  "total": 149.97,
  "products": [
    {
      "id": "prod-001",
      "name": "Premium Coffee Beans",
      "quantity": 2,
      "price": 24.99
    },
    {
      "id": "prod-002",
      "name": "Coffee Grinder",
      "quantity": 1,
      "price": 99.99
    }
  ]
}
```

## Error Responses

| Status Code | Description           |
| ----------- | --------------------- |
| 401         | Unauthorized          |
| 403         | Forbidden             |
| 404         | Order not found       |
| 500         | Internal Server Error |


## OpenAPI

````yaml get /api/public/order/{id}/product
openapi: 3.0.0
info:
  title: Vambe AI API
  description: Vambe AI documentation
  version: '1.0'
  contact: {}
servers:
  - url: https://api.vambe.me
    description: Production Server
security: []
tags:
  - name: Vambe AI
    description: ''
paths:
  /api/public/order/{id}/product:
    get:
      tags:
        - Order
      operationId: PublicOrderController_getProductsByOrder
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''

````