latestSwagger 2.02026-08-2181213270.0 KB

0a9c1f8784f2

Testing

!!! The documentation website is not able to display the full response of this endpoint. The use of the curl command is recommended. !!!

Generate a fake invoice that will produce a given scenario on the sandbox, for example a rejected loan. The generation will not add the invoice to the list of your invoices. You must do this via API. To achieve this, you can copy the invoice_creation_payload into the payload of the invoice creation API. If you want to test another scenario on a given business, create another fake invoice. For more information on the scenarios of the sandbox, please refer to the <a href="https://developers.getdefacto.com/reference/testing-your-integration">Testing your integration</a> section. Warning: these invoices and their IBANs will not work in production.

post/sandbox/invoice-generator

Request body

country'BEL' | 'DEU' | 'ESP' | 'FRA' | 'GUF' | 'ISL' | 'MAF' | 'NLD' | 'REU'
scenario'CANCEL' | 'FAIL' | 'REJECT' | 'SUCCESS' | 'SUCCESS_ONE_DAY_LATER'

Response

Created