Get a quote

Read one quote with its line items and services.

GET https://cotlet.dev/api/v1/servicetrade/quotes/{quote_id}

read

Returns the status, the line items with descriptions, subtotal, tax and total, the service requests it covers, the expiry date and who it is assigned to.

Parameters

Parameters: get_quote
NameTypeDescription
quote_id integer required integer Quote id from list_quotes.

Request

cURL
curl https://cotlet.dev/api/v1/servicetrade/quotes/1 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("servicetrade", "get_quote", {"quote_id":1})
Node.js
const result = await cotlet.call('servicetrade', 'get_quote', {"quote_id":1});
CLI
cotlet call servicetrade get_quote --data '{"quote_id":1}'

Example response

JSON

{
  "id": 20391,
  "name": "Repair: emergency lighting, Delta Plaza",
  "status": "submitted",
  "items": [
    {
      "id": 51120,
      "description": "Replace 6 emergency light batteries"
    }
  ],
  "subtotal": "1700.00",
  "tax_amount": "140.00",
  "total_price": "1840.00",
  "service_requests": [
    {
      "id": 77190,
      "description": "Replace emergency light batteries",
      "status": "open"
    }
  ],
  "expires_on": "2026-11-12"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.