curl --request POST \
--url https://api.syntage.com/exports \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"format": "xlsx",
"fileTypes": [
"invoice.cfdi.xml"
],
"uri": "/taxpayers/PEIC211118IS0/invoices?usage=I01&type=I&issuedAt[after]=2020-01-01"
}'
{
"@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"
}
curl --request POST \
--url https://api.syntage.com/exports \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"format": "xlsx",
"fileTypes": [
"invoice.cfdi.xml"
],
"uri": "/taxpayers/PEIC211118IS0/invoices?usage=I01&type=I&issuedAt[after]=2020-01-01"
}'
{
"@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"
}
Your API key is available in the Production and Sandbox dashboards.
Export resource response
The response is of type object
.