Close an invoice

This API closes the specified invoice. You can only close an invoice after the total invoice amount has been paid in full (which means that the balance amount of the invoice is zero).

You must provide appropriate data for the invoice_id parameter.

Request Body Details

NameTypeDescription
is_invoice_closedbooleanIf true, it indicates that the invoice was successfully closed.
errorobjectObject that contains error message and error code details. For more information, refer to the error table below.
statusenumIndicates the status of the appointment: NoShow = -2, Cancelled = -1, New = 0, Closed = 1, Checkin = 2, Confirm = 4, Break = 10, NotSpecified = 11, Available = 20, and Voided = 21.
closed_by_idguidUnique 32 character ID indicating the employee who last closed the invoice.

error

NameTypeDescription
StatusCodeintStatus code that represents the type of the error.
MessagestringMessage that describes the error.
InternalMessagestringInternal message that describes about the error in more detail.

Response Details

NameTypeDescription
is_invoice_closedbooleanIf true, it indicates that the invoice was successfully closed.

Error Message Details

NameTypeDescription
This invoice has a future appointment and will not be closed.1113If the invoice contains an appointment for a future date, and it cannot be closed on the current date.
Group Invoice Not Supported.492If the invoice is a Group invoice. You currently cannot close group invoices.
Full Payment of invoice is not made.419If the full payment for the invoice has not been completed, you cannot close the invoice.
Payment is made in excess.459If more payment than the required amount has been paid for the invoice.
There are some unassigned tips. You must assign all tips to close the invoice.1112If some tips have not been assigned as part of the invoice.
The loyalty points payments in this invoice exceed the maximum amount you can pay using points.459If the loyalty points payment that has been added in the invoice exceeds the maximum amount that you can pay by using points.
SSG not paid fully.419If the service charge amount has not been fully paid for the invoice.
Invoice could not be closed.719If it was not possible to close the invoice.
Invoice not found.428If the invoice details could not be found.
Language
Credentials
Header
Click Try It! to start a request and see the response here!