Browse Documentation
POST Add attachment

Add Attachment

GET /invoices/:id/attachments

You can either upload a new attachment by providing a base64 encoded file or move an existing attachment from the inbox to the invoice by providing the id of the attachment.

Upload an attachment

Upload a new attachment to an invoice

Request

      
{
    "attachment": {
        "file": "bit64encodedfile",
        "file_name":"filename.jpg"
    }
}
      

Response

The API will return a 200 OK status including the complete invoice object as a response when the attachment has been successfully uploaded.

Add attachment from inbox

Move an existing attachment from the inbox to an invoice.

Request

     
{
    "attachment": {
        "id": "cf23451473211a22eb5ac759073a87148e85cb89"
    }
}
   

Response

The API will return a 200 OK status including the complete invoice object as a response when the attachment has been successfully moved.