Tracking via API
Use the read-only tracking API to check uploads, documents, statuses, violations, and lineage. It covers SFTP and REST API uploads for every destination.
For worked examples from upload to the tax authority outcome, follow UBL JSON to KSeF or CSV to SdI. If your setup uses Transfer webhooks, keep this API as the source for processing status and error details.
Base URLs and token
| Environment | Base URL |
|---|---|
| Production | https://transfer.api.acubeapi.com |
| Sandbox | https://transfer-sandbox.api.acubeapi.com |
Use the same token as for REST uploads. Get it from POST https://common.api.acubeapi.com/login with your email, password, and environment. Send Authorization: Bearer <your-token> with each request. Tokens are valid for 24 hours.
You can read only your account's data. A 404 means the resource is not available in your account. If a request returns 403, ask A-Cube to enable tracking API access.
Resources
| Route | What it returns |
|---|---|
GET /uploads | Your uploads: one entry per file you sent. |
GET /uploads/{id} | One upload. For a REST API upload, use the id of the upload receipt. |
GET /uploads/{id}/transfer-documents | The documents of one upload. |
GET /transfer-documents | Your documents, all roles. |
GET /transfer-documents/{id} | One document, with its violations. |
GET /transfer-documents/{id}/lineage | The chain that links the document to your file. |
GET /transfer-documents/{id}/download | The file of one document. See Download a document file. |
GET /target-documents | Only the documents transmitted to the destination, with the transmission fields. |
GET /target-documents/download?e2e_id={e2e_id} | The file of the document with your End-to-end ID. See Find a document by End-to-end ID. |
An upload represents one file. Source documents are files that require conversion; target documents are sent to the destination. See Statuses and where to see them.
curl -s "https://transfer.api.acubeapi.com/uploads?itemsPerPage=10&page=1" \
-H "Authorization: Bearer <your-token>" \
-H 'Accept: application/json'
Pagination and sorting
| Parameter | Default | Maximum |
|---|---|---|
itemsPerPage | 30 | 100 |
page | 1 |
Uploads are sorted by ingestion time, newest first. For documents, use sortBy[created_at]=desc to sort by creation time, newest first.
Use Accept: application/json for a JSON array. Use Accept: application/ld+json to include the total item count:
curl -s "https://transfer.api.acubeapi.com/uploads" \
-H "Authorization: Bearer <your-token>" \
-H 'Accept: application/ld+json'
{
"hydra:member": [],
"hydra:totalItems": 0
}
Filters
| Filter | On | Example |
|---|---|---|
status | uploads, documents | ?status=failed |
destination_project | uploads | ?destination_project=it.api.acubeapi.com |
e2e_id | documents | ?e2e_id=erp-invoice-2026-0014 |
role | documents | ?role=source |
type | documents | ?type=invoice |
transmission_outcome | documents | ?transmission_outcome=error |
transmission_uuid | documents | ?transmission_uuid=847ba9e7-3a24-4abe-b2fd-9e0533ce74be |
exists[violations] | documents | ?exists[violations]=true |
created_at[gt], created_at[gte], created_at[lt], created_at[lte], created_at[ne] | uploads, documents | ?created_at[gte]=2026-05-01 |
Find a document by End-to-end ID
Give a document an End-to-end ID, then search with e2e_id. Transfer preserves the value exactly. Searches are case-sensitive exact matches within your account:
curl -s --get "https://transfer.api.acubeapi.com/target-documents" \
--data-urlencode 'e2e_id=erp-invoice-2026-0014' \
-H "Authorization: Bearer <your-token>" \
-H 'Accept: application/json'
GET /transfer-documents?e2e_id= returns the same document. A document is searchable once Transfer has created it from your file, not when the REST API returns the upload receipt. An empty array means no document has that End-to-end ID in your account yet: check the value, the environment and the upload status. Uploads have no e2e_id filter: GET /uploads?e2e_id= ignores it and lists all your uploads.
Download the document's file with its End-to-end ID:
curl -s -OJ --get "https://transfer.api.acubeapi.com/target-documents/download" \
--data-urlencode 'e2e_id=erp-invoice-2026-0014' \
-H "Authorization: Bearer <your-token>"
URL-encode the value, because an End-to-end ID can contain /, ? or #: --data-urlencode does it for you. The response is the same as Download a document file. A 400 means e2e_id is missing. A 404 means no document in your account has that End-to-end ID, or its file is no longer available.
List the failed documents
Query all failed documents to include both file processing failures and destination rejections:
curl -s "https://transfer.api.acubeapi.com/transfer-documents?status=failed" \
-H "Authorization: Bearer <your-token>" \
-H 'Accept: application/json'
CSV reading and conversion failures appear on the source document. They are absent from GET /target-documents because the failed invoice has no target document. See Where violations land.
Lineage
Lineage links a target document back to your uploaded file. Each entry includes id, role, file_name, file_format, status, and depth. Entries start with the requested document (depth 0) and follow its source, up to five steps.
CSV target documents link directly to the CSV source document. Individual rows are not tracked as documents.
curl -s "https://transfer.api.acubeapi.com/transfer-documents/<document-id>/lineage" \
-H "Authorization: Bearer <your-token>" \
-H 'Accept: application/json'
[
{"id": "<target-id>", "role": "target", "file_name": "invoices_2026_01-row2.xml", "file_format": "xml", "status": "transmitted", "depth": 0},
{"id": "<source-id>", "role": "source", "file_name": "invoices_2026_01.csv", "file_format": "csv", "status": "processed", "depth": 1}
]
Download a document file
Download the file of a document by its id:
- a source document returns the file you sent, such as your CSV;
- a target document returns the document Transfer sent to the destination, in the destination format. For native XML, it is the file you sent.
curl -s -OJ "https://transfer.api.acubeapi.com/transfer-documents/<document-id>/download" \
-H "Authorization: Bearer <your-token>"
The response is the file as application/octet-stream, with its name in the Content-Disposition header. -OJ saves it under that name. A 404 means the document is not in your account or its file is no longer available. See the API reference.
Transmission data
Target documents include these transmission fields:
| Field | Meaning |
|---|---|
transmission_node | The destination service that accepted the document. |
transmission_outcome | ok or error. The API also defines pending, which Transfer does not use today: treat it as in progress. |
transmission_uuid | The document's identifier in A-Cube's e-invoicing API for the destination, for example the invoice UUID. Use it to follow the document there: see From your ID to the destination API. |
transmitted_at | When the destination service answered. |
See Outcome after Transfer for what happens after transmitted.