How a business usually issues
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.
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
How many days back to read, today included, from 1 to 365.
1 <= value <= 36590Response 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 } ] } ]}Search what your business sells GET
The products and services your key's business has issued in its environment, from the lines of its own documents, most recently used first. Use it to draft the lines of a new document with the business's own descriptions, codes, prices and taxes. `used_count` says in how many documents each was issued.
Retrieve an invoice issued to you GET
Asks the SRI for an invoice's access key and, if it authorized it, reads it: who issued it, to whom, its amounts and taxes. It lets you issue a withholding on it without retyping it. A `test` key asks the SRI's testing service and a `live` key its real one; the access key must belong to the same environment. The SRI only answers for documents from the last 60 days, and `sandbox` never asks it. Nothing is stored.