GET
/
exports
/
{id}
Retrieve an export
curl --request GET \
  --url https://api.syntage.com/exports/{id} \
  --header 'X-API-Key: <api-key>'
{
  "@context": "/contexts/Export",
  "@id": "/exports/91106968-1abd-4d64-85c1-4e73d96fb997",
  "@type": "Export",
  "id": "91106968-1abd-4d64-85c1-4e73d96fb997",
  "file": {
    "type": "Export",
    "resource": "/exports/91106968-1abd-4d64-85c1-4e73d96fb997",
    "mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
    "extension": "xlsx",
    "filename": "9137b53f-1abd-4d64-85c1-4e73d96fb997.xlsx"
  },
  "format": "xlsx",
  "fileTypes": [
    "invoice.cfdi.xml"
  ],
  "status": "pending",
  "uri": "/taxpayers/PEIC211118IS0/invoices?usage=I01&type=I&issuedAt[after]=2020-01-01",
  "createdAt": "2020-01-01T12:15:00.000Z",
  "updatedAt": "2020-01-01T12:15:00.000Z"
}

Authorizations

X-API-Key
string
header
required

Your API key is available in the Production and Sandbox dashboards.

Path Parameters

id
string<uuid>
required

Response

Export resource response

@context
string
default:/contexts/Export
@id
string<iri-reference>

Export IRI reference

Example:

"/exports/91106968-1abd-4d64-85c1-4e73d96fb997"

@type
string
default:Export
id
string<uuid>
Example:

"91106968-1abd-4d64-85c1-4e73d96fb997"

file
object
Example:
{
"type": "Export",
"resource": "/exports/91106968-1abd-4d64-85c1-4e73d96fb997",
"mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"extension": "xlsx",
"filename": "9137b53f-1abd-4d64-85c1-4e73d96fb997.xlsx"
}
format
string
Example:

"xlsx"

fileTypes
enum<string>[]
Minimum length: 1
status
enum<string>
Available options:
pending,
running,
finished,
failed
Example:

"pending"

uri
string
Example:

"/taxpayers/PEIC211118IS0/invoices?usage=I01&type=I&issuedAt[after]=2020-01-01"

createdAt
string

Date and time the resource was created

Example:

"2020-01-01T12:15:00.000Z"

updatedAt
string

Date and time the resource was last updated

Example:

"2020-01-01T12:15:00.000Z"