Accept or reject
Quotes: Manage hardware procurement quotes. Quotes contain items, recipients, and alternatives.
Endpoint3 params
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
idpath | string | yes | The quote order_id (e.g. "1773018508225") |
itemIdpath | uuid | yes | UUID of an item or alternative. The API checks the items table first, then item_alternatives. |
action | string | yes | Must be "accept" or "reject". Any other value returns 400 VALIDATION_ERROR. |
javascript
const response = await fetch(`https://api.quipteams.com/api/v1/quotes/${id}/items/${itemId}/action`, {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"action": "accept"
}),
});
const { data } = await response.json();
console.log(data);Example Request Body
json
{
"action": "accept"
}Response
json
{
"data": {
"id": "item-or-alt-uuid",
"type": "item",
"status": "accepted"
}
}