downloadScheduledExport
Download Scheduled Exports. To ensure the highest stability and data integrity for your API integration, we strongly recommend using a sequential or "low-parallelism" pattern when downloading scheduled exports from the Crunchtime API. Because these exports often involve large datasets, initiating multiple concurrent downloads can lead to resource contention, resulting in throttled throughput or connection timeouts. By limiting your process to a single active download at a time, you allow the platform to provide a steady, high-speed data stream without the overhead of managing competing requests. This "one-at-a-time" approach is the most reliable way to ensure your files are delivered completely and efficiently, preventing the need for complex error handling or manual restarts.
Query parameters
Batch Number of the export file to download. Obtained from ‘getAllScheduledExports’.
Export file type of the export file to download. Obtained from ‘getAllScheduledExports’.
Unique file identifier of the export file to download. Obtained from ‘getAllScheduledExports’.
Output includes Vendor Order and Purchase by Invoice file attachments (invoices, images) when true, for Accounts Payable files only (exportType = MAPPABLE_AP_TRANS_TYPE). File attachments are downloaded in base64 format. Note that file attachments will not be available for files after “Undo” in Outbound Integrations.
Specify 'true' to output null data elements.
Headers
Secure token for API authentication.
Password for the Crunchtime Application User.
Crunchtime site identifier. (test or production)
User ID for the Crunchtime Application User.
Optional trace identifier for troubleshooting.
Response
Success
Example response
[
{
"exportType": "MAPPABLE_AP_TRANS_TYPE",
"extractHistoryId": 1122349,
"fileContent": "Ww0KICAgIHs",
"fileName": "NSAPSUPERSET,06302023,052420.txt",
"vendorOrderAttachments": {
"extractHistoryId": 123,
"vendorOrderAttachmentList": [
{
"fileName": "IMG_6717.JPG",
"vendorCode": "KATSIR",
"locationExportCode": "0409",
"vendorExportCode": "VREIN15"
}
]
}
}
]