API allows caller to download the previously requested receipt package that has been produced.
As packages can be quite large in size, the API supports resume of the download, i.e., after download package is still available and can be accessed until scheduled deletion date that can be viewed by retrieving package status information.
Package returned is in one of the three formats requested -
CSV (only for summaries),
JSON. The actual file served back is ZIP compressed to reduce the time of transfer and save bandwidth.
API is REST based API that takes unique ID of the request/package as URL parameter and returns ZIPed resulting receipt content.
This API accepts standard eInvoicing API header parameters for authenticated call.
|Unique ID of the package/request that was returned back to caller when package request was submitted.
API returns HTTP status code
200 when the package is ready to download,
204 when package is not yet ready.
When package is ready to download, the resulting body is a ZIP compressed file that contains JSON or CSV content based on initial request.
Additional header parameters are returned as a result of this call.
|Defines that binary downloadable data is provided.
|Size of the file in KB
The data included in the file depends on query criteria and also type requested - summary or full:
full- returns full receipt objects as they were submitted by the submitter with additional added metadata and validation information serialized as part of the resulting JSON or CSV object. The structure of the data retrieved for each receipt when
fulldata set requested is the same as defined in Get Receipt API definition.
summary- returns summary receipt information only similar to the data structure returned by the Get Recent Receipts API in a row like structure (flat single row records).
Error situations are reported back by this API through the standard error response.