History

How a business usually issues

GET
/v1/ec/issuing-habits

A profile of your key's business's recent documents in its environment, by type: how many, from which emission points, paid how, with which IVA rates and additional information, to what kind of buyer, with which extras, and the latest documents to copy. Failed documents (returned, not_authorized) do not count. Use it before drafting a document to write it the way the business usually does.

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

Query Parameters

days?integer

How many days back to read, today included, from 1 to 365.

Range1 <= value <= 365
Default90

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/ec/issuing-habits"
{  "object": "issuing_habits",  "entity_id": "8161163a-f227-466f-bc01-090a01e80165",  "from": "2019-08-24",  "to": "2019-08-24",  "types": [    {      "type": "invoice",      "count": 0,      "last_issue_date": "2019-08-24",      "recent_document_ids": [        "ea7b6681-712b-40aa-b50d-b7a688524df0"      ],      "emission_points": [        {          "value": "string",          "count": 0        }      ],      "payment_methods": [        {          "value": "string",          "count": 0        }      ],      "iva_rates": [        {          "value": "string",          "count": 0        }      ],      "additional_info": [        {          "value": "string",          "count": 0        }      ],      "buyers": [        {          "value": "string",          "count": 0        }      ],      "extras": [        {          "value": "string",          "count": 0        }      ]    }  ]}