importInvoice payload. With dryRun: true the mappeddryRun: falseinvoice.retrieve — onsuccess: true withalreadyImported: true; on 404 / not_found, call importInvoice.results array. Only top-level validation errors yield 400.curl --location 'https://api.storyous.com/invoices/synchroniseToChargebee' \
--header 'x-api-router-secret: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"dryRun": true,
"invoices": [
{
"_id": "string",
"merchantId": "string",
"issuedOn": "2019-08-24T14:15:22.123Z",
"total": 0,
"totalWithVat": 0
}
]
}'{
"results": [
{
"invoiceId": "string",
"success": true,
"dryRun": true,
"alreadyImported": true,
"response": {}
}
]
}