CustomerInvoiceImport

Import customer invoice

Import a customer invoice that was already sent to SDI. The invoice will not be sent to SDI, but it will be sent to the legal storage if necessary. You can disable webhook events by sending X-DisableEndpoints: true header.

SecurityBearer
Request
Request Body schema:

The new CustomerInvoiceImport resource

invoice
required
string

The base64 encoded invoice XML or P7M.

notifications
Array of strings

Notification type as key (RC, MC, NS, DT, NE, AT, EC), notification base64 as value. If at least one notification is not provided you must provide invoice_file_name and sdi_id.

invoice_file_name
string

The invoice filename, to be provided only when there is not any notification.

sdi_id
string

The invoice SDI ID, to be provided only when there is not any notification.

Responses
201

CustomerInvoiceImport resource created

400

Invalid input

404

Resource not found

post/customer-invoice-imports
Request samples
{
  • "invoice": "string",
  • "notifications": [
    ],
  • "invoice_file_name": "string",
  • "sdi_id": "string"
}
Response samples
{
  • "uuid": "string"
}