GET /v1/order-intents/{order_intent_id}/quotes

List Order Intent Quotes

Summary

List all quote snapshots for an order intent

Description

Retrieves all quote snapshots created from a specific order intent. Shows the history of pricing and validation as the intent evolved.

Request Example

curl -X GET "http://127.0.0.1:8000/api/v1/order-intents/oi_abc123def456/quotes" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Example

[
  {
    "quote_id": "quo_xyz789",
    "created_at": "2024-01-27T21:15:00Z",
    "expires_at": "2024-01-30T21:15:00Z",
    "status": "approved",
    "pricing": {
      "currency": "USD",
      "setup_fee": 20.0,
      "unit_price": 18.20,
      "quantity": 10,
      "subtotal": 202.00,
      "shipping": 15.0,
      "expedite_fee": 0.0,
      "total": 217.00
    },
    "lead_time": {
      "option": "standard",
      "estimated_ship_date": "2024-02-06",
      "estimated_days": 10
    },
    "gates": {
      "dfm": {"status": "pass"},
      "policy": {"status": "pass", "violations": []}
    },
    "warnings": []
  }
]

Error Codes

This endpoint may return the following error codes:

Code Status Meaning
missing_auth 401 No Authorization header provided
invalid_api_key 403 API key is invalid or missing
order_intent_not_found 404 Order intent not found
forbidden 403 Not allowed to access this intent

Authentication

This endpoint requires Bearer token authentication:

Authorization: Bearer YOUR_API_KEY