Cancel a quotation
https://carchost.fieldcontrol.com.br/quotations/{id}/cancelCancels a pending quotation. The success response uses status 201.
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.
canceledAtstringCancellation date (ISO 8601), which cannot be in the future. Defaults to the moment of the request.
Accepts: null.
Responses
- 201
Quotation canceled.
- 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
Nonexistent quotation (
reason: not found; there is no 404), status that does not allow canceling (reason: invalid status transition) or invalid or future date (resourceValidationErr). A quotation that is already canceled is returned unchanged. - 429
Limit of 1 request per second exceeded. See Rate limit.
- 500
Unexpected server error.