Skip to main content
GET
/
api
/
public
/
order
/
{id}
/
product
cURL
curl --request GET \
  --url https://api.vambe.me/api/public/order/{id}/product

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

ParameterTypeRequiredDescription
idstringYesOrder ID

Response Structure

FieldTypeDescription
idstringOrder ID
currencystringOrder currency
totalnumberTotal order amount
productsarrayArray of product objects

Product Object

FieldTypeDescription
idstringProduct ID
namestringProduct name
quantitynumberQuantity ordered
pricenumberUnit price

Example Request

curl --request GET \
  'https://api.vambe.ai/api/public/order/order-123/product' \
  --header 'x-api-key: your_api_key_here'

Example Response

{
  "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 CodeDescription
401Unauthorized
403Forbidden
404Order not found
500Internal Server Error

Path Parameters

id
string
required