accepted, processing, pending) are checked against the SAT in real time before the response is returned, so you always get up-to-date statuses in a single call.| Status | Meaning |
|---|---|
pending | Request queued, being sent to SAT |
accepted | SAT accepted the request, processing started |
processing | SAT is generating the package |
completed | Done — invoice metadata is available in the response |
failed | SAT rejected the request (see statusMessage) |
expired | Package expired before it was downloaded |
curl --location --request GET 'https://api.gigstack.io/v2/invoices/download/schedule/history?team' \
--header 'Authorization: <api-key>'{
"success": true,
"data": {
"history": [
{
"id": "string",
"rfcType": "issued",
"startDate": "2019-08-24",
"endDate": "2019-08-24",
"status": "pending",
"invoiceCount": 0,
"processedCount": 0,
"statusMessage": "string",
"source": "manual",
"owner": "string",
"latestIssueDate": "string",
"earliestIssueDate": "string",
"createdAt": 0,
"completedAt": 0
}
]
}
}