Skip to content
platform

API reference · Quotes

Get Quote by Order ID

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

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

Description

Returns the quotes that originated an order. Use it when you receive an order and need to trace which quotation it came from — the price and lead time you provided in the quote are here.

Path Parameters

Parameter Type Required Description
partnerOrderId integer Yes Id of the order, not of the quote. It is the id of the Orders endpoints, and the same value that appears in partnerOrderId on the quote.

Business rules

The response is a list

An order may have come from more than one quote — one per quoted item. Expect an array even when there is only one.

Response · 200

Array with one object per quote. All come with the answered-quote fields filled in, since they generated an order.

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 in 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 as [] when there are none.
stock.price · stock.leadTime · stock.partnerPartCode — Only on an already-answered quote. What you provided in the response.
price number Only on an already-answered quote. Same value as stock.price.
priceFormats.value · priceFormats.mask string Only on an already-answered quote. The price with two decimal places ("1250.00") and already with the currency mask ("R$1250.00").
leadTime integer Only on an already-answered quote. Same value as stock.leadTime.
partnerPartCode string Only on an already-answered quote. Same value as stock.partnerPartCode.
partnerInternalPartCode string Only on an already-answered quote. Internal code of the inventory record 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 on the answered quote: inside stock and also at the root of the object. They are the same value — read from whichever you prefer, and do not treat the root as a second piece of data.

Errors

Code When
404 The order has no linked quote, the id does not exist, or the order belongs to another store. The same response in all three cases, with no body.
401 Token missing, malformed or expired.

Example request

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

Example responses

200Success — the quote that originated the 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.