Skip to content

Versions and changelog

https://api.fatureihoje.com/public/v1/me

The v1 is the version of the contract, not the version of the program. The program behind it changes; what v1 promises does not.

While the path says v1, what already exists keeps existing, with the same name, the same type and the same meaning.

These changes land in v1 at any time, with no notice:

  • A new field in a response. A response may gain fields you have never seen.
  • A new route. An area that did not answer starts answering.
  • A new event.
  • A new filter or a new query parameter, always optional.
  • A new enum value. A status field may start returning a value that did not exist.

None of them breaks an existing integration, as long as your client follows three rules.

The three rules of a client that does not break

Section titled “The three rules of a client that does not break”
  1. Ignore a field you do not know. Read the fields you use and let the rest through. Validation that rejects the whole response because of an unknown field breaks on the first new field.
  2. Tolerate an unknown enum value. Treat a value you do not recognize as “other” instead of throwing. A switch with no default case is the most common failure here.
  3. Do not depend on the text. The order of the JSON fields and the text of message are not contract. What is contract is described in Errors.

These changes do not happen in v1. They would only exist in a /public/v2:

  • removing or renaming a field of a response;
  • changing the type of a field;
  • making a field that was optional required in a request;
  • no longer accepting a value that was accepted;
  • changing the meaning of a field, even keeping name and type;
  • removing a route.

This is not only a written promise. The published v1 contract is kept in our repository, and an automatic check compares the contract of the code against that file. It lists, field by field, what disappeared, what changed type, what became required and what stopped being accepted, and it blocks the change before it reaches production. It runs in the commit hook for anyone touching the contract and, above all, inside the process that builds the published version of the API: no version reaches production without passing it.

A second check guarantees the other side: the v1 response schemas are not closed. That is what makes “a new field does not break” true rather than a writing style, because a closed schema would reject its own response as soon as it gained a field.

It does not exist yet, and no route is being deprecated.

When that changes, v1 does not go down along with the arrival of v2. The plan is to warn through two channels:

  • the Deprecation and Sunset headers on the responses of the route on its way out, with the date;
  • an e-mail to the owners of the active API keys.

Neither header shows up in any response today, precisely because nothing is being deprecated. The overlap period between v1 and v2 will be announced together with v2, here on this page.

  • This page. The changelog lives here, in the section below.
  • The Reference. It is generated from the API code, so it never lists a route that does not exist and never hides one that does. It is the most current source of what answers today.
  • E-mail, in the cases that require action from you, such as a deprecation.

If your integration matters to your business, it is worth checking the Reference from time to time. A new field breaks nothing, but it is often exactly what you were waiting for.

Each entry has the date, what changed, and whether it requires action from an existing integration. The field-by-field list of what the API answers is always the Reference.

v1 | Facilities team tasks, to be published

Section titled “v1 | Facilities team tasks, to be published”

A behavior change in /public/v1/tasks. The date goes here on the day it is published. No route, field or error code changed name or type. It only affects team tasks created by Facilities (the supervisors’ schedule); all other tasks work as before.

  • DELETE /public/v1/tasks/{id} on a recurring team task: only the requested task is removed. The later occurrences of the series are no longer deleted with it, which is already how the panel works. If the deleted task was the first of the series, the first remaining occurrence becomes the parent of the others, and each occurrence whose parent changes produces task.updated. Action is needed if you deleted the first task expecting the whole series to go: delete each occurrence you no longer want.
  • Facilities scope: the key acts as its person. If the company limited that person to branches or portfolios, GET, PATCH, POST /{id}/status and DELETE on a team task outside that reach answer 404, and the list does not return those tasks. Keys of people who see the whole company do not change.

v1 | Editing an entry no longer changes its status, to be published

Section titled “v1 | Editing an entry no longer changes its status, to be published”

A behavior fix. The date goes here on the day it is published. No action is needed from anyone already integrated: no route, field or error code changed.

  • PATCH /public/v1/financial_transactions/{id}: editing only the description (or other fields) of an entry no longer sets its status back to pending. Before, a paid entry edited without sending status went back to pending. Now the status only changes when you send status in the body.

v1 | Credit card bill payments and bank reconciliation, to be published

Section titled “v1 | Credit card bill payments and bank reconciliation, to be published”

The date goes here on the day it is published. No route or field changes; what some requests answer does:

  • Credit card bill payment in /public/v1/financial_transactions: editing the amount or the status, or deleting, updates the bill paid amount. A canceled one stays linked to the bill and stops counting; marking it paid again adds it back. An amount that would leave the bill paid above its total answers 422 validation_failed, and nothing changes.
  • Entry reconciled with the bank statement: changing amount, status or account, or deleting, answers 409 conflict. Undo the reconciliation in the dashboard first.
  • Field reconciliation on the entry, already present in responses, is now described in the Reference.
  • Webhook financial_transaction.updated: events produced outside the API (the WhatsApp assistant and routines) now also compare the entry reconciliation (bank_reconciliation_id, the reconciliation field of the object). A change only in the reconciliation also produces the event. The event body does not change: it is still { object, id } with object_truncated: true, and the full object comes from GET.

An additive change. The date goes here on the day it is published. No action is needed from anyone already integrated: no existing route, field or event changed name, type or meaning.

  • Pipelines: GET and POST /public/v1/pipelines and GET /{id}, with the stages of each pipeline.
  • Deals: GET and POST /public/v1/deals, GET, PATCH and DELETE /{id} and POST /{id}/stage to change stage, which is also how a deal is won or lost. Loss reasons are at GET /public/v1/deal_loss_reasons. See the Sales pipeline and deals guide.
  • New permissions: pipelines:read, pipelines:create, deals:read, deals:create, deals:update and deals:delete. An existing key does not get any of them on its own.
  • New events: deal.created, deal.updated, deal.stage_changed and deal.deleted, in the Event catalog.

An additive change. The date goes here on the day it is published. No action is needed from anyone already integrated: no existing route, field or event changed name, type or meaning.

  • Tickets: GET and POST /public/v1/client_requests, GET and DELETE /{id}, photos and audio at GET /{id}/attachments (the same link the dashboard shows) and the reject, convert_to_quote, convert_to_service_order, auto_convert_to_quote and auto_convert_to_service_order actions. Only tickets from clients are included. See the Overview.
  • New permissions: client_requests:read, client_requests:create, client_requests:update and client_requests:delete. An existing key does not get any of them on its own; to read tickets, create a new key with them.
  • New events: client_request.created, client_request.status_changed and client_request.deleted, in the Event catalog.
  • * subscription: it now means “everything the subscriber can read”. An event from a module the key or the member does not read is not delivered to that endpoint, with no closed delivery in the log and no access lost email. Creating, pinging, rotating and re-enabling your own * does not ask for the new module read. See Who receives what.
  • New delivery code: not_subscribed, in the delivery log. Treat an error code you do not know as a generic failure.

The first public version of the contract. The date goes here on the day v1 is published. No action required: there is no earlier version.

What v1 includes:

  • Account: GET /public/v1/me, with the company, the key’s permissions, the member it acts as, and the request limit.
  • Clients, with their addresses, and leads, with the contact task.
  • Team, tasks, and appointments.
  • Service orders, with service order types and the status, start, complete, and cancel actions, and quotes, with send, approve, reject, cancel, and conversion into a sale or a service order.
  • Sales, with versions, payments, payment reversals, installment rescheduling, and cancellation.
  • Finance: transactions (including transfers, recurring entries, and installments), accounts, and categories.
  • Products, with variations and categories, read-only stock (balance and ledger), and services, with categories.
  • Webhooks: endpoint registration, secret and rotation, ping, delivery log, redelivery, and the list of events from the last 30 days, with the Event catalog.
  • What applies to every area: cursor pagination, errors with stable codes, idempotency on every POST, and per-plan rate limits.
  • Errors: why code is stable and message is not.
  • Overview: what is live today and what arrives in the next phases.