B2Brouter

Automate E-Invoicing with B2Brouter API

Ledger → Download

AI-generated

Summary

Downloads a ledger file from B2Brouter and returns it as XML binary data.

Inputs

  • Environment — The B2Brouter API environment to use. Test (Staging) points to https://api-staging.b2brouter.net, Live (Production) points to https://api.b2brouter.net.
  • Ledger ID (required) — The ID of the ledger whose file should be downloaded. Required. Can be set from an incoming item, e.g. {{ $json.id }}.
  • Output Binary Property — The name of the binary property on the output item where the downloaded file will be stored. Defaults to "data".

Output shape

json: {}, binary: { [outputBinaryPropertyName]: binaryData }

For each input item, the node returns one output item with an empty JSON body and the downloaded file attached as binary data.

Examples

Example 1: After retrieving ledger IDs from a previous node, you can download each ledger file and save it locally or process it downstream.

Download a ledger file by ID and store it as binary data.

Links

Discussion