Skip to Content
SelloDeveloper docs

Changelog / Versions

Date-based versioning, how a request picks its version, and what is not built yet.

Sello is date-based versioned:

  • /v1 — the stable major in the path. It rarely changes.
  • Sello-Version — the dated minor, e.g. 2026-06-15. You send it as a request header to pick the contract, and every /v1 response names the date it was served under in a response header.

How a /v1 request picks its version

The server reads the Sello-Version request header on every /v1 request, before it checks your API key:

  • Omitted: the request is served under your account's pinned version, read after your API key is checked (see below).
  • A supported date: the request is served under that date. Today 2026-06-15 is the only supported date.
  • Not a date: 400 with type https://sello.cr/problems/invalid-version. The value must be exactly YYYY-MM-DD, a real calendar day (leap years included) with a year from 0001 to 9999. Spaces, signs, a timestamp, a list of dates and a repeated header are all refused this way.
  • A valid date that is not supported: 400 with type https://sello.cr/problems/unsupported-version. The detail names the supported dates and the default. An older date and a future date are refused alike.
  • The server could not resolve the version: 503 with type https://sello.cr/problems/version-resolution-unavailable. Retry later.

The per-IP rate limit and the database safety checks run first, so they can refuse a request before its version is read. A refusal of a header you sent is never authenticated and never reaches the operation.

Every /v1 response carries Sello-Version. After the version is resolved it is the resolved date. On a request refused before that point it is the date of the one contract the server serves, which does not mean the value you sent was honored. The server never repeats a value it refused.

A header you send always wins. A supported date you send is served as sent, whatever your account's pinned version is, and also when that pinned version is one the server no longer serves. To hold a contract in code, send the header on every request. The SDK sends it when you pass apiVersion (see Environments).

A /reference response from the reference routes themselves carries the same Sello-Version the server serves. A refusal from the checks in front of those routes carries none: the 401 for a missing or bad key, and the 429 from either rate limit, per IP or per account. On /v1 every response carries it, refusals included. /reference ignores the request header: you may send it there and it changes nothing. What /reference versions on its own is each dataset: every dataset carries its own version, separate from the API contract date.

Your account's pinned version

Every account stores a pinned version. It is the version a /v1 request without the header is served under.

  • Set when the account is created. Sello writes the deployment's global default in effect at that moment. Today that is 2026-06-15.
  • Never moved by the global default. A later change of the deployment's global default changes no pinned version already stored. Nothing rewrites a stored pin from the default.
  • Read after your API key is checked. For a request without the header, the server takes the pinned version from the account of the verified key. It is never read before the key is accepted.
  • A pinned version the server serves is used, and the response Sello-Version header names it.
  • A pinned version the server does not serve is 400 with type https://sello.cr/problems/unsupported-version. The detail lists the supported dates and asks you to send one; it does not name the stored value. The server never answers under another date instead, and the operation does not run.
  • The server could not resolve the pinned version: 503 with type https://sello.cr/problems/version-resolution-unavailable, and the operation does not run. Retry later.

For a request without the header, a refusal before the pinned version is resolved carries Sello-Version: 2026-06-15, the date of the one contract the server serves: the 401 for a missing or bad key, the 403 for a suspended account, and the pinned version's own 400 and 503. The per-account 429 comes after the pinned version is resolved and carries that date.

An owner or admin raises the pinned version on the dashboard's Settings page, to a later supported date only. Each raise is recorded in the account's activity log, and a pinned version never moves back. While the server supports one date, Settings shows the pinned version and says that no newer version exists.

Versions

VersionStatusNotes
2026-06-15Current, defaultThe only dated minor served by /v1.

New dated minors are added here as they ship, with what changed.

How the contract is kept stable

Every change to the published OpenAPI contract passes a compatibility check in CI against the contract it replaces. A breaking change (an operation, parameter or response field removed, an accepted input narrowed, a new required input, a response that can send a value it could not send before, other than the additions below) is refused, whether or not the version date moves: the server serves one contract, so a new date cannot keep the old one alive. A response that narrows (fewer types, fewer enum values, a guarantee added) is compatible: a client written against the old contract accepts every value the new one can send. Added response properties and added error problem types are compatible too (ADR-0144): a response may gain a property, and an error response may name a problem type it did not list before, within the same version date. Your client must ignore a response property it does not know, and must treat a problem type it does not know by the HTTP status: an RFC 9457 type is an identifier, not a closed list. Every change to the contract file also needs a new entry in the contract changelog (sdk/openapi/changelog.json) naming the version and the exact file it describes.

Contract changes inside 2026-06-15

These changes ship under the same served version. The Sello-Version header stays 2026-06-15, and no request header selects the old behavior.

Every /v1 problem names its type (#1455)

Every RFC 9457 problem now carries type, and the OpenAPI Problem schema lists it as required. On /v1, a refusal that used to answer about:blank now answers a https://sello.cr/problems/... type. Branch on type, never on title or detail. Each operation's responses list the types it sends for each status.

RefusalWasNow
Unhandled server error (500)about:blank.../internal-error
Body over the size limit (413)about:blank.../request-body-too-large
Issuing body not received in time (408)about:blank.../request-body-timeout
No or malformed bearer key (401)about:blank.../unauthenticated
Key failed verification (401)about:blank.../invalid-api-key
Per-IP, per-account and unavailable rate limit (429)about:blank.../ip-rate-limit-exceeded, .../account-rate-limit-exceeded, .../rate-limit-unavailable
Missing, invalid Idempotency-Key (400)about:blank.../missing-idempotency-key, .../invalid-idempotency-key
Invalid Sello-Replay-Only, invalid Sello-Emisor-Id, no emisor for an account-wide key (400)about:blank.../invalid-replay-only, .../invalid-emisor-id, .../missing-emisor
Body is not JSON (400)about:blank.../malformed-json
Unknown emisor, document, received document, webhook endpoint (404)about:blank.../emisor-not-found, .../document-not-found, .../received-document-not-found, .../webhook-endpoint-not-found
No PDF, no signed XML, no Hacienda response yet (409, 409, 404)about:blank.../pdf-not-available, .../xml-not-available, .../hacienda-response-not-available
Invalid list query, report filter, cursor, updatedSince (422)about:blank.../invalid-list-query, .../invalid-report-filter, .../invalid-cursor, .../invalid-updated-since
CABYS, IVA rate, totals not net, exoneración on an FEE (422 on the create and the calculation preview)about:blank.../cabys-not-in-catalog, .../iva-rate-divergence, .../totals-not-net, .../exoneracion-not-allowed-on-fee
Email delivery: invalid request, not enabled, no recipient (422), not deliverable (409)about:blank.../invalid-email-delivery-request, .../email-delivery-not-enabled, .../no-recipient, .../document-not-deliverable
Ingest: invalid envelope, invalid supplier XML (422), media type (415), empty body (400)about:blank.../invalid-reception-request, .../invalid-supplier-xml, .../unsupported-media-type, .../empty-body
Ingest: emisor changed mid-upload (409, #1403)about:blank.../emisor-world-changed
Respond: invalid request, message too long, credit over the document (422)about:blank.../invalid-mr-request, .../mr-message-too-long, .../credit-exceeds-document
Respond: not respondable, emisor changed mid-filing (409)about:blank.../received-document-not-respondable, .../emisor-world-changed
Webhook endpoint: invalid request, unsafe URL (422)about:blank.../invalid-webhook-endpoint-request, .../unsafe-webhook-url

... stands for https://sello.cr/problems. Statuses, headers, titles, details and extension members are unchanged. Types that were already explicit keep their values.

One /v1 refusal stays about:blank on purpose: the 403 Out of key scope. It identifies its rule through the policy and missingScope members (ADR-0135).

Outside /v1, /reference and /connect keep about:blank on every refusal that had no type, their 429 included.

A client that reads type as optional keeps working. A client that treated about:blank as "an untyped refusal" should branch on the new types instead.

Every field error names its code (#1455)

Every entry of a problem's errors[] now carries code beside path and message, and the OpenAPI Problem schema lists it as required. Branch on code, never on message: the message is prose and may change. path, message, the order of the entries and when they are sent are unchanged, and no refusal gained an errors[] it did not have.

codeSent for
requiredA field the body or query must carry is absent
invalid_typeA field has the wrong JSON type, null included
invalid_formatA string of the wrong format (a date, a UUID, an email)
out_of_rangeA value too small, too large, too long, too short or not a multiple
unknown_fieldA key the operation does not accept, one entry per key
invalid_valueAny other refusal of the value: an enum, a rule across fields, an unmatched union, a repeated query parameter
cabys_not_in_catalog, iva_rate_divergence, totals_not_net, line_total_divergence, resumen_divergence, exoneracion_not_allowed_on_fee, unsupported_scenario, unseeded_series, consecutivo_series_exhausted, issuer_identificacion_malformed, issuer_identity_mismatch, issuer_profile_mismatch, invalid_report_filterThe domain refusal of the same name; the problem type names it too

The control-plane routes use the same vocabulary, with a few codes of their own (plan_not_found, invalid_emisor_input, key_environment_mismatch, endpoint_environment_mismatch, client_validation, unsafe_url).

A response from a server older than this change carries no code. The SDK's SelloApiError.errors keeps any string code exactly as sent and leaves it out when the server sent none, so a client written for both reads code as optional and falls back to the HTTP status.

Not built yet

Recorded in ADR 0003 and deferred:

  • Retiring a version. There is no supported-version floor, no retirement schedule and no Deprecation, Sunset or retirement Link headers. No notice period has been set.
  • Serving more than one contract. A breaking change needs a second contract served beside the first. Until that exists, no breaking change ships.

Today the server serves one contract, 2026-06-15. Send Sello-Version: 2026-06-15 to pin it explicitly; omit it to take your account's pinned version, which is the same date today.

On this page