Perform invoice action

View as Markdown

Performs an action on an invoice. See the request body for the available actions.

SEND emails the customer only the first time. On an invoice already emailed, the customer email is skipped and the response carries “customerEmailSkipped”: “ALREADY_EMAILED”; any requested ERP push still runs. Use SEND_REMINDER_EMAIL to send a payment reminder.

Authentication

Authorizationstring
API Key authentication via header

Path parameters

idstringRequired
Customer Id
invoiceIdstringRequired
Invoice Id

Request

Invoice actions for sending an invoice. Validation rules: 1. At least one of sendToErp or sendToCustomer must be true 2. sendToErp can be true while sendToCustomer is false (push to ERP only) 3. sendToCustomer can be true while sendToErp is false (email customer only; useful when no ERP is connected) 4. If sendToErp is true but the merchant has no ERP integration connected, the request is rejected 5. the field overrideInvoiceDate is optional
SendInvoiceDtoobjectRequired
OR
MarkInvoiceAsPendingDtoobjectRequired
OR
MarkInvoiceToSentOffTabsDtoobjectRequired
OR
MarkInvoiceAsScheduledDtoobjectRequired
OR
MarkInvoiceAsVoidDtoobjectRequired
OR
SendReminderEmailDtoobjectRequired

Response

Invoice marked as pending or sent off Tabs successfully
payloadobject
Response payload, will be empty when success is false
successboolean

Boolean with true=success, false=failure

messagestring

Plain-text description of the result

errorobjectOptional
json element with any error messages or warnings

Errors

400
Bad Request Error
500
Internal Server Error