Skip to Content

PATCH Quotations

Gebruik dit endpoint om bestaande quotations bij te werken.

Gebruikersniveau: Gevorderd

Endpoint

PATCH /v1/{scopeId}/quotations/{id}
EigenschapWaarde
MethodPATCH
Scope IDBranch UUID
AuthenticatieAuthorization: Bearer <access_token>
Vereiste scoperoutix:quotations:write
Content-Typeapplication/json
Request bodyJSON object

Update-regels

  • De API controleert server-side of het record binnen de toegestane organization en branch valt.
  • Alleen expliciet toegestane velden mogen worden bijgewerkt.
  • Onbekende of niet-toegestane velden geven 400 invalid_update.

Toegestane updatevelden

Veld
account_id
quotation_date
valid_until
status
total_weight_kg
total_volume_m3
total_packages

Voorbeeldrequest

curl -X PATCH "https://api.routix.com/v1/550e8400-e29b-41d4-a716-446655440000/quotations/fc7c1a2b-e56a-4551-bbf3-41f4e17698e6" \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \ -H "Content-Type: application/json" \ -d '{ "status": "accepted", "valid_until": "2026-12-31" }'

Voorbeeldresponse

{ "data": { "id": "fc7c1a2b-e56a-4551-bbf3-41f4e17698e6", "account_id": "7ecf4b8d-8d1f-4a0f-8e57-6d8f14c6a221", "quotation_date": "2026-07-05", "valid_until": "2026-12-31", "status": "accepted", "total_weight_kg": 860, "total_volume_m3": 3.1, "total_packages": 12 }, "version": "v1" }

Foutresponse

{ "error": "invalid_update", "error_description": "One or more fields are not allowed for updates on quotations" }

Mogelijke foutcodes

  • 400 invalid_request
  • 400 invalid_update
  • 401 unauthorized
  • 401 invalid_token
  • 403 invalid_token_type
  • 403 insufficient_scope
  • 404 not_found
  • 405 method_not_allowed

Gerelateerde pagina’s

  • Quotations GET
  • API calls en voorbeelden
  • Setup guide
Last updated on