Entities

Activate, deactivate or advance a series

PATCH
/v1/ec/entities/{id}/series/{series_id}

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.

Authorization

AuthorizationBearer <token>

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

id*string
Formatuuid
series_id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

active?boolean
next_number?integer

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.

Range1 <= value <= 999999999

Response 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"}