B2Brouter

Automate E-Invoicing with B2Brouter API

Invoice → Add Attachments (ZIP)

AI-generated

Summary

Upload a ZIP file containing multiple attachments to a specified invoice in B2Brouter.

Inputs

  • Environment — Selects the B2Brouter API environment to use (Test or Live).
  • Invoice ID (required) — The ID of the invoice to which the attachments will be added.
  • Binary Property (ZIP) (required) — The name of the binary property containing the ZIP file with multiple attachments.

Output shape

An array with a single item containing the API response indicating the result of the upload request.

The operation requires the input data item to contain the specified binary property with a valid ZIP file. If the binary data is missing, the node will throw an error. The API call uses a multipart/form-data POST request to the endpoint /invoices/{invoiceId}/add_attachments. The response is returned as an array with the API's response JSON object.

Examples

Example 1: Add multiple attachments to an invoice by uploading a ZIP file containing all desired attachments via the specified binary property.

Set Environment to 'Test (Staging)' or 'Live (Production)', set the 'Invoice ID' to the target invoice's ID, and specify the binary property name that contains the ZIP archive holding the attachments.

Links

Discussion