Skip to main content
POST
Create CoworkerInvoiceHistory
A CoworkerInvoiceHistory records a history entry for a customer invoice. Each entry captures an activity or event that occurred on that invoice, such as the invoice being sent, an e-invoicing action, a payment receipt, or a payment error. Use IsProblem to flag entries that represent errors or issues (e.g. a failed payment attempt). Set Notify to trigger a notification when the history entry is created.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the CoworkerInvoiceHistory-Create role.

Request Body

Required Fields

integer
required
ID of the coworker invoice linked to this record.
string
required
Short title of the history entry (e.g. ‘Invoice sent’, ‘Payment received’).
string
required
Detailed description of the activity or event recorded by this history entry.

Optional Fields

boolean
Flags this history entry as an error or issue (e.g. a failed payment attempt or e-invoicing error).
boolean
Whether to send a notification when this history entry is created.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the creation.
object
Contains the Id of the newly created record.
boolean
true if the coworkerinvoicehistory was created successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response