Add attachment

Adds an attachment to an existing invoice. Do not confuse with add_attachments method (note plural)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

An internal identifier that is unique to each Invoice within B2Brouter.

string
enum
required

Format

The format of the API response can be either JSON or XML.

Allowed:
Query Params
string
required

Name of the attachment.

boolean

Boolean to indicate that the uploaded PDF attachment should be used as the visual component
when generating a hybrid PDF (such as a ZUGFeRD document) or any legal PDF representation.
When set to true, this attachment will be considered the legal PDF to display or embed,
instead of regenerating one from the invoice data. It can be used both for PDF deliveries
and for embedding XML (e.g., ZUGFeRD) into the provided PDF.

NOTICE: If the invoice is modified after this PDF has been uploaded, the attachment will still be used as-is, unless explicitly replaced.
B2Brouter treats it as the legal representation provided by the account.

Body Params

The attachment to add to the invoice

Responses
204

Attachment successfully added

403

Forbidden

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!