Activate, deactivate or advance a series
Documents already numbered keep their number. next_number only moves forward, like the initial sequence number of the SRI's Facturador: to continue after the last number another system used.
Your API key, which acts for the one business it was created for: fb_sandbox_… issues in sandbox, fb_test_… in test, the tax authority's testing service, and fb_live_… in live.
In: header
Path Parameters
uuiduuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Advances the next number, if another system already used the earlier ones. It never goes back: 422 if the series already handed out that number.
1 <= value <= 999999999Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PATCH "https://example.com/v1/ec/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/series/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "object": "series", "entity_id": "8161163a-f227-466f-bc01-090a01e80165", "country": "ec", "environment": "sandbox", "document_type": "invoice", "establishment": "string", "emission_point": "string", "establishment_address": "string", "establishment_name": "string", "emission_point_name": "string", "last_number": 0, "issued_today": 0, "active": true, "created_at": "2019-08-24T14:15:22Z"}List an entity's series GET
Each series with its environment, its last number handed out and how many documents it issued today.
Change an establishment PATCH
Its name, address or code, on all the series it has in your key's environment: the address and name are stored on each one. The code can only change while it has not numbered any document (`409`); outside `sandbox` the new code must be listed as open in the SRI registry. `409` also if a series with the new code already exists.