Skip to main content

Attach invoice PDF

Attach an invoice PDF to the invoice.

Request​

URL​

The invoice id is a string e.g. I.111225694.

/documents/invoice

Method​

POST

Headers​

Content-Type: application/json
Authorization: Bearer eyy...

Body​

Form data

Form data

| Field      | Type   | Required | Description              |
|------------|--------|----------|--------------------------|
| clientId | string | Yes | Client id C.123123213 |
| invoiceId | string | Yes | Invoice Id I.123123123 |
| file | string | Yes | File binary |

Response​

  • Status code 200
  • Body a JSON representation of the invoice object
Response Body

{
"id": "DO.123123123",
"fileName": "mockname",
"fileNameRaw": "123213file.pdf",
"erpId": null,
"clientHandlerId": null,
"clientId": "C.123123",
"invoiceId": "I.12312321312",
"voucherId": null,
"instanceProviderId": null,
"topic": "INVOICE",
"type": "INVOICE_ATTACHMENT",
"createdDate": "2021-04-08T13:15:48",
"createdBy": "[email protected]",
"updatedDate": "2021-04-08T13:15:48",
"updatedBy": "[email protected]"
}