status is completed, the response includes package_ids which can be used with GET /invoices/download/package/{package_id} to retrieve the XML files.curl --location --request GET 'https://api.gigstack.io/v2/invoices/download/status/?team' \
--header 'Authorization: <api-key>'{
"success": true,
"data": {
"status": "pending",
"invoiceCount": 0,
"package_ids": [
"string"
]
}
}