Browse Documentation
POST Send invoice

Send Invoice

POST /invoices/:id/send

Via this endpoint you can send a digital invoice to either existing contact persons or a custom contacts. To send an invoice provide an array of messages. Each message contains either a contact_person_id to reference an existing contact person, or a contact object to send to a custom contact person.

Request

In this example we'll send an invoice to one existing contact person and one custom contact.

{
    "messages": [
        {
            "contact_person_id":"feee2d1b24b4d5216f7ddb903ba5b6e3b4ae3c1a"
        }, {
            "first_name": "john",
            "last_name": "doe",
            "email": "[email protected]"
        }
    ]
}

Response

[{
    "contact_person_id":"feee2d1b24b4d5216f7ddb903ba5b6e3b4ae3c1a",
    "email":"[email protected]",
    "message_id":"df49311257f56696aeb9add71df523b6"
},{
    "email":"[email protected]",
    "message_id":"fe6e0214601d5ffc212d9f30b0674ecf"
}]