QuipteamsREST API

Update a quote item

Quotes: Manage hardware procurement quotes. Quotes contain items, recipients, and alternatives.

Endpoint5 params

Parameters

NameTypeDescription
idpathstring
The quote order_id (e.g. "1773018508225")
itemIdpathuuid
UUID of the quote line item
actionstring
Must be "accept" or "reject".
alternative_iduuid
UUID of a specific alternative to act on. Must belong to the item specified by itemId.
recipientsobject[]
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"
  }
}