Replace the tenant-fixed attachments this invoice omits
PUT
/v1/invoices/{id}/omitted-fixed-attachments
const url = 'https://api.emite.cr/v1/invoices/example/omitted-fixed-attachments';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"omittedFixedAttachmentIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.emite.cr/v1/invoices/example/omitted-fixed-attachments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "omittedFixedAttachmentIds": [ "example" ] }'Sets which non-mandatory tenant-fixed attachments to drop from this invoice's email. Allowed only while the invoice is draft/error. Mandatory and unknown ids are ignored; the cleaned list actually stored is returned.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Invoice UUID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
omittedFixedAttachmentIds
required
IDs of the tenant-fixed attachments to omit from this invoice. Non-mandatory only; unknown/mandatory ids are ignored.
Array<string>
Examplegenerated
{ "omittedFixedAttachmentIds": [ "example" ]}Responses
Section titled “Responses”Media typeapplication/json
object
omittedFixedAttachmentIds
required
IDs of the tenant-fixed attachments to omit from this invoice. Non-mandatory only; unknown/mandatory ids are ignored.
Array<string>
Examplegenerated
{ "omittedFixedAttachmentIds": [ "example" ]}Invoice not found.
Invoice already submitted/accepted (INVOICE_NOT_ATTACHABLE).