Create a quotation
https://carchost.fieldcontrol.com.br/quotationsCreates a quotation with its items.
Requires the
X-Api-Key,User-AgentandContent-Type: application/jsonheaders. Limit: 1 request per second (learn more).
Request
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
- 201
Quotation created.
- 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. - 422
Invalid body (resourceValidationErr): required field missing, number already used (
reason: already exists), customer, order, location or product/service not found, or location archived or from another customer. - 429
Limit of 1 request per second exceeded. See Rate limit.
- 500
Unexpected server error.