Skip to main content

Create and manage a Quote

Quotes are served under /api/v1/carts: cartId, cartNumber and the cart.* webhook events all refer to the Quote. Create a Quote with POST /api/v1/carts, giving an Account and a Catalogue View.

{
"name": "Branch connectivity renewal",
"accountId": "4ba84b26-76b3-4fd0-9555-e444dcc68a29",
"primaryContactId": "e5ae6187-bf25-405c-8f72-dd993ab988fc",
"catalogueViewCode": "DIRECT_SALES_UK",
"attributes": {
"crmOpportunityId": "OPP-10482"
}
}

Persist the returned Quote id and version, and read the Quote by id with GET /api/v1/carts/{cartId}.

Add an item with POST /api/v1/carts/{cartId}/items, giving a published productCode and a quantity. The same command handles standalone products, Packages and Solutions. For a Package or Solution component, also send the parent item id and the component code.

{
"expectedVersion": 3,
"productCode": "STATIC_IP",
"quantity": 1,
"parentCartItemId": "a1b2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"componentCode": "ADDRESSING"
}