Skip to main content

Invoice Messages

Admin permissions required.

List all messages for an invoice

Returns a list of messages associated with a given invoice. The invoice messages are returned sorted by creation date, with the most recently created messages appearing first.

The response contains an object with an invoice_messages property that contains an array of up to per_page messages. Each entry in the array is a separate message object. If no more messages are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your messages.

Link to Documentation

hrvst invoices messages list-by-invoice
OptionDescriptionRequired
--invoice_idThe ID of the invoice that contains the messages you are listing.true
--updated_sinceOnly return invoice messages that have been updated since the given date and time.false
--pageThe page number to use in pagination. Use all to retrieve all pages.false
--per_pageThe number of records to return per page. Can range between 1 and 2000.false
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Create an invoice message

Creates a new invoice message object. Returns an invoice message object and a 201 Created response code if the call succeeded.

Link to Documentation

hrvst invoices messages create
OptionDescriptionRequired
--invoice_idThe ID of the invoice that you're creating the message for.true
--recipients[0]emailEmail of the message recipient.true
--recipients[0]nameName of the message recipient.true
--subjectThe message subject.false
--bodyThe message body.false
--include_link_to_client_invoiceWhether to include a link to the client invoice in the message body. Not used when thank_you is true.false
--attach_pdfWhether to attach the invoice PDF to the message email.false
--send_me_a_copyWhether to email a copy of the message to the current user.false
--thank_youWhether this is a thank you message.false
--event_typeThe type of invoice event that occurred with the message: send, close, draft, re-open, or view.false
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Mark a draft invoice as sent

Creates a new invoice message object and marks the invoice as sent. Returns an invoice message object and a 201 Created response code if the call succeeded.

Link to Documentation

hrvst invoices messages mark-draft-invoice-as-sent
OptionDescriptionRequired
--invoice_idThe ID of the invoice you're sending.true
--event_typePass “send” to mark the invoice as sent.true
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Mark an open invoice as closed

Creates a new invoice message object and marks the invoice as closed. Returns an invoice message object and a 201 Created response code if the call succeeded.

Link to Documentation

hrvst invoices messages mark-open-invoice-as-closed
OptionDescriptionRequired
--invoice_idThe ID of the invoice you're closing.true
--event_typePass “close” to mark the invoice as closed.true
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Re-open a closed invoice

Creates a new invoice message object and re-opens a closed invoice. Returns an invoice message object and a 201 Created response code if the call succeeded.

Link to Documentation

hrvst invoices messages re-open-closed-invoice
OptionDescriptionRequired
--invoice_idThe ID of the invoice you're closing.true
--event_typePass "re-open" to re-open the invoicetrue
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Mark an open invoice as a draft

Creates a new invoice message object and marks an open invoice as a draft. Returns an invoice message object and a 201 Created response code if the call succeeded.

Link to Documentation

hrvst invoices messages mark-open-invoice-as-draft
OptionDescriptionRequired
--invoice_idThe ID of the invoice you're marking as a draft.true
--event_typePass “draft” to mark the invoice as a draft.true
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse

Delete an invoice message

Delete an invoice message. Returns a 200 OK response code if the call succeeded.

Link to Documentation

hrvst invoices messages delete
OptionDescriptionRequired
--invoice_idThe ID of the invoice that contains the message you are deleting.true
--message_idThe ID of the message you are deleting.true
--fieldsComma separated list of fields to display in the output.false
--outputThe output format: json, tablefalse