# Order errors in /api/public carry code and type

- Date: 2026-10-21
- Type: New
- Surface: /api/public
- What you need to do: Nothing.
- Address: https://developers.rivr.io/changelog/2026-10-21-api-public-error-code-and-type

The error object of the order endpoints of /api/public (propertyName, message, errorCode) now also carries `code`, the same stable code as errorCode, and `type`, the address of the code's page in this portal (https://developers.rivr.io/errors/{code}). Both are null when the error has no code. errorCode stays for existing integrations, so nothing that works today changes; new integrations should read `code`. Every code has a page under Error codes with what it means and what your system should do. The /api/public spec now also names every operation (operationId), lists the scope each one needs, documents the 422 validation codes of order creation, and describes the callback as a webhook. In production since 2026-10-21 (platform release 2026.10.20.2531).

