Skip to content
platform

API reference · Quotes

Get Quote Details

Method
GET
Route
/partnerBudgets/:id
Base URL
https://ws.autorei.net
Path parameters
:id
Token
Requires Bearer token
Test in Postman

Opens this request in the public API documentation, the official source of the reference.

Description

Returns a quote by its identifier, with its current state: whether it is still pending, whether you have already responded and how much you reported, and whether it became an order.

Path Parameters

Parameter Type Required Description
id integer Yes Quote id, as it came in id in the pending list.

Response · 200

The quote. Fields marked appear only under the indicated condition.

Field Type Description
id integer Quote id.
active boolean Whether the quote is active.
quantity integer Quantity the customer requested.
dateCreated string Date and time of the request, in UTC.
product.name string Product name at CWS.
product.manufacturer string Manufacturer name.
product.mfrPartCode string Product code at the manufacturer.
product.composition string UNITARY, PAIR, KIT, WARRANTY or SET.
product.imageSet.baseUrl · availableSizes · paths — Root, sizes (pp, p, m, g, gg, full) and paths of the product images.
customer.city · customer.state string Customer city and state (UF).
customer.type string PF or PJ.
formNotification.formNotificationId integer Id of the request that originated the quote.
formNotification.formNotificationCustomAttributes array Extra form fields: name, description, value. Comes back [] when there are none.
stock.price · stock.leadTime · stock.partnerPartCode — Only in an already-answered quote. What you reported in the response.
price number Only in an already-answered quote. Same value as stock.price.
priceFormats.value · priceFormats.mask string Only in an already-answered quote. The price with two decimal places ("1250.00") and already with the currency mask ("R$1250.00").
leadTime integer Only in an already-answered quote. Same value as stock.leadTime.
partnerPartCode string Only in an already-answered quote. Same value as stock.partnerPartCode.
partnerInternalPartCode string Only in an already-answered quote. Internal code of the inventory created.
partnerOrderId integer Only when the quote became an order. Order id — use it in the Orders endpoints.

The price, the lead time and the product code appear in two places in the answered quote: inside stock and also at the root of the object. They are the same value — read from wherever you prefer, and do not treat the root as a second piece of data.

Errors

Code When
404 Nonexistent id or quote from another store. The same response in both cases, with no body.
401 Token missing, malformed or expired.

Example request

curl --request GET 'https://ws.autorei.net/partnerBudgets/:id' \
  --header 'Authorization: Bearer {{access_token}}'

Example responses

200Success — already-answered quote that became an order

{
  "id": 4480101,
  "active": true,
  "product": {
    "name": "Kit Embreagem Completo - Linha Pesada",
    "manufacturer": "Fabricante Exemplo",
    "mfrPartCode": "FE-500101",
    "composition": "UNITARY",
    "imageSet": {
      "baseUrl": "https://images.lojaexemplo.cws.digital/produtos",
      "availableSizes": [
        "pp",
        "p",
        "m",
        "g",
        "gg",
        "full"
      ],
      "paths": [
        "/50/01/kit-embreagem-completo-500101-1756992000000.jpg"
      ]
    }
  },
  "stock": {
    "price": 1250,
    "leadTime": 7,
    "partnerPartCode": "SKU-A-001"
  },
  "quantity": 5,
  "customer": {
    "city": "São Paulo",
    "state": "SP",
    "type": "PF"
  },
  "dateCreated": "2026-09-01T13:42:07Z",
  "price": 1250,
  "priceFormats": {
    "value": "1250.00",
    "mask": "R$1250.00"
  },
  "leadTime": 7,
  "partnerPartCode": "SKU-A-001",
  "partnerInternalPartCode": "SKU-A-001",
  "partnerOrderId": 900201,
  "formNotification": {
    "formNotificationId": 4480901,
    "formNotificationCustomAttributes": []
  }
}

Used in

Generated from the public API collection, published on 2026-09-04: api-docs.cws.digital.