Open a series
In your key's environment. Outside sandbox, the establishment must be listed as open for the RUC in the SRI registry; its address comes from there.
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
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Value in
- "invoice"
- "credit_note"
- "debit_note"
- "withholding"
- "delivery_note"
- "purchase_settlement"
^\d{3}$^\d{3}$1 <= length <= 300A name for the establishment, which is not printed on documents. All the establishment's series share it: it is stored on each one.
1 <= length <= 80A name for the emission point, which is not printed.
1 <= length <= 80The first number to hand out, if another system already used the earlier ones. 1 by default.
1 <= value <= 999999999Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/v1/ec/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/series" \ -H "Content-Type: application/json" \ -d '{ "document_type": "invoice", "establishment": "string", "emission_point": "string" }'{ "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"}Update an entity PATCH
Only the fields you send change. On a `live` business, the legal name, the regime and whether it keeps accounting come from the SRI registry and cannot be edited (`422`). Documents already issued keep the data they were signed with.
List an entity's series GET
Each series with its environment, its last number handed out and how many documents it issued today.