Update a quote item
Quotes: Manage hardware procurement quotes. Quotes contain items, recipients, and alternatives.
Endpoint5 params
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
idpath | string | yes | The quote order_id (e.g. "1773018508225") |
itemIdpath | uuid | yes | UUID of the quote line item |
action | string | yes | Must be "accept" or "reject". |
alternative_id | uuid | no | UUID of a specific alternative to act on. Must belong to the item specified by itemId. |
recipients | object[] | no | Updated recipients array (only for accept). Replaces all existing recipients for this item. |
javascript
const response = await fetch(`https://api.quipteams.com/api/v1/quotes/${id}/items/${itemId}`, {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"action": "accept",
"alternative_id": "alt-uuid-001",
"recipients": [
{
"name": "John Doe",
"email": "john@acme.com",
"country": "United States",
"phone_number": "+1-555-0100",
"address": "123 Main St, NYC"
}
]
}),
});
const { data } = await response.json();
console.log(data);Example Request Body
json
{
"action": "accept",
"alternative_id": "alt-uuid-001",
"recipients": [
{
"name": "John Doe",
"email": "john@acme.com",
"country": "United States",
"phone_number": "+1-555-0100",
"address": "123 Main St, NYC"
}
]
}Response
json
{
"data": {
"id": "item-or-alt-uuid",
"type": "item",
"status": "accepted"
}
}