Update a quotation
https://carchost.fieldcontrol.com.br/quotations/{id}Updates a quotation and replaces its items. The body follows the same rules as creation.
Requires the
X-Api-Key,User-AgentandContent-Type: application/jsonheaders. Limit: 1 request per second (learn more).
Request
Path parameters
idstringrequiredQuotation identifier.
Example: YmIwYzk1ZGMtYzNhYi00YmQ4LTkxNjEtZDVjNTU1ZTQxNTQwOjIyOTE1.
Headers
User-AgentstringrequiredIdentification of your application.
Example: MinhaIntegracao/1.0.
Request body
JSON, sent with the Content-Type: application/json header.
identifierstringrequiredQuotation number. Must be unique in the account.
namestringrequiredQuotation name.
Up to 150 characters.
descriptionstringUp to 2000 characters.
additionalInformationstringAdditional information shown to the customer.
Up to 2000 characters.Accepts: null.
statusstringrequiredQuotation status.
Accepted values: pending, approved, refused, expired, canceled.
archivedbooleanrequiredcurrencySymbolstringCurrency symbol: $, US$, USD$, R$, €, £, CLP$, Q, MX$, L, B/., Bs, Gs, S/, RD$, COP$, C$, Kz, AR$ or UY$.
Up to 10 characters.Accepts: null.
subtotalnumberrequiredtotalnumberrequireddiscountobjectFields of discount
typenumber or stringrequiredpercentage (or 0) or value (or 1).
valuenumberrequiredtotalnumberrequiredcustomerobjectrequiredFields of customer
idstringrequiredCustomer identifier.
locationobjectCustomer location, which must belong to the customer and not be archived.
Fields of location
idstringrequiredorderobjectLinked work order.
Fields of order
idstringrequiredexpiredAtstringrequiredExpiration date.
refusedAtstringDecline date (ISO 8601), which cannot be in the future.
Accepts: null.
approvedAtstringAccepts: null.
approvedBystringAccepts: null.
createdBystringAccepts: null.
approvedSignaturestringAccepts: null.
itemslist of objectsrequiredQuotation items. On update, the list sent replaces the current one.
Fields of items
idstringItem identifier, to update it.
Accepts: null.
quantitynumberrequiredtotalnumberrequireddescriptionstringAccepts: null.
positionnumberrequiredproductServiceobjectrequiredFields of productService
idstringrequiredProduct or service identifier.
valuenumberrequiredUnit price.
typestringAccepts: null.
Responses
- 200
Quotation updated.
- 401
API key missing (
Missing API Key) or invalid (Invalid API Key). See Authentication. - 403
Account blocked (
Account blocked), expired (Account expired) or on a plan that does not allow integration (Account plan not allowed). See Authentication. - 404
Resource not found. The response body is empty.
- 422
Invalid body, with the same rules as creation (resourceValidationErr), or invalid identifier (uriValidationErr). When the update is not applied, the response is 422 with an empty body.
- 429
Limit of 1 request per second exceeded. See Rate limit.
- 500
Unexpected server error.