POST
/v1/order-intents/{order_intent_id}/requote
Requote Order Intent
Summary
Create a new quote from an order intent
Description
Creates a fresh quote from an existing order intent, refreshing pricing and extending expiration. Useful when a quote expires or when pricing needs to be updated due to intent changes.
Request Example
curl -X POST "http://127.0.0.1:8000/api/v1/order-intents/oi_abc123def456/requote" \ -H "Authorization: Bearer YOUR_API_KEY"
Response Example
{
"order_intent_id": "oi_abc123def456",
"quote_id": "quo_new789",
"created_at": "2024-01-27T22:00:00Z",
"expires_at": "2024-01-27T23:00: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 |
missing_design |
400 | Provide dfm_run_id or board_id |
invalid_quantity |
400 | Quantity must be >= 1 |
missing_shipping |
400 | Ship-to must include country and postal_code |
dfm_run_not_found |
404 | DFM run not found |
board_not_found |
404 | Board not found |
Authentication
This endpoint requires Bearer token authentication:
Authorization: Bearer YOUR_API_KEY