Importing invoices

You can import invoices that was already transited through SDI.nThese invoices will not be sent to SDI, but they will be sent to the legal storage whenever is required.

Customer invoices

To import customer invoices the API call is POST /customer-invoice-imports. You must provide as a payload the base64 encoded invoice plus the base64 encoded notifications. You must provide at least one of RC or MC notification.

Example:

Copy
Copied
{
    "invoice": "here the base64 encoded invoice XML",
    "notifications": {
        "RC": "here the base64 encoded RC notification",
        "NE": "here the base64 encoded NE notification"
    }
}

Supplier invoices

To import supplier invoices the API call is POST /supplier-invoice-imports. You must provide as a payload the base64 encoded invoice plus the base64 encoded metadata file received along with the invoice. It's important to provide the metadata file because it contains useful information like the SDI ID.

Example:

Copy
Copied
{
    "invoice": "here the base64 encoded invoice XML",
    "metadata": "here the base64 encoded metadata file"
}

Note The unit price per invoice is the same applied to normal invoices.