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-List role.
Query Parameters
The page number to retrieve.
The number of records per page.
The property name to sort results by (e.g. Name, CreatedOn).
Sort direction. 1 for ascending, -1 for descending.
Filters
CoworkerInvoiceHistory_CoworkerInvoice
Filter by Coworker Invoice Id.
CoworkerInvoiceHistory_CoworkerInvoice_Coworker_Id
Filter by Coworker Invoice Coworker Id.
CoworkerInvoiceHistory_CoworkerInvoice_Business_Id
Filter by Coworker Invoice Business Id.
CoworkerInvoiceHistory_CoworkerInvoice_Business_Currency_Code
Filter by Coworker Invoice Business Currency Code.
CoworkerInvoiceHistory_CoworkerInvoice_Coworker_FullName
Filter by full name of the customer who owns the invoice.
CoworkerInvoiceHistory_CoworkerInvoice_TotalAmount
Filter by total amount of the related customer invoice.
CoworkerInvoiceHistory_CoworkerInvoice_InvoiceNumber
Filter by invoice number of the related customer invoice.
CoworkerInvoiceHistory_CoworkerInvoice_BillToName
Filter by Coworker Invoice Bill To Name.
CoworkerInvoiceHistory_CoworkerInvoice_Paid
Filter by whether the related customer invoice has been fully paid.
CoworkerInvoiceHistory_CoworkerInvoice_PaidOn
Filter by Coworker Invoice Paid On.
CoworkerInvoiceHistory_CoworkerInvoice_Refunded
Filter by Coworker Invoice Refunded.
CoworkerInvoiceHistory_CoworkerInvoice_RefundedOn
Filter by Coworker Invoice Refunded On.
CoworkerInvoiceHistory_CoworkerInvoice_DueDate
Filter by Coworker Invoice Due Date.
CoworkerInvoiceHistory_CoworkerInvoice_Draft
Filter by whether the related customer invoice is still in draft.
CoworkerInvoiceHistory_Name
Filter by short title of the history entry (e.g. ‘Invoice sent’, ‘Payment received’).
CoworkerInvoiceHistory_Description
Filter by detailed description of the activity or event recorded by this history entry.
CoworkerInvoiceHistory_IsProblem
Filter by flags this history entry as an error or issue (e.g. a failed payment attempt or e-invoicing error).
CoworkerInvoiceHistory_Notify
Filter by whether to send a notification when this history entry is created.
Range Filters
from_CoworkerInvoiceHistory_CoworkerInvoiceCoworkerId
Filter by coworker invoice coworker id greater than or equal to this value.
to_CoworkerInvoiceHistory_CoworkerInvoiceCoworkerId
Filter by coworker invoice coworker id less than or equal to this value.
from_CoworkerInvoiceHistory_CoworkerInvoiceBusinessId
Filter by coworker invoice business id greater than or equal to this value.
to_CoworkerInvoiceHistory_CoworkerInvoiceBusinessId
Filter by coworker invoice business id less than or equal to this value.
from_CoworkerInvoiceHistory_CoworkerInvoicePaidOn
Filter by coworker invoice paid on greater than or equal to this value. Format: YYYY-MM-DDTHH:mm.
to_CoworkerInvoiceHistory_CoworkerInvoicePaidOn
Filter by coworker invoice paid on less than or equal to this value. Format: YYYY-MM-DDTHH:mm.
from_CoworkerInvoiceHistory_CoworkerInvoiceRefundedOn
Filter by coworker invoice refunded on greater than or equal to this value. Format: YYYY-MM-DDTHH:mm.
to_CoworkerInvoiceHistory_CoworkerInvoiceRefundedOn
Filter by coworker invoice refunded on less than or equal to this value. Format: YYYY-MM-DDTHH:mm.
from_CoworkerInvoiceHistory_CoworkerInvoiceDueDate
Filter by coworker invoice due date greater than or equal to this value. Format: YYYY-MM-DDTHH:mm.
to_CoworkerInvoiceHistory_CoworkerInvoiceDueDate
Filter by coworker invoice due date less than or equal to this value. Format: YYYY-MM-DDTHH:mm.
from_CoworkerInvoiceHistory_CreatedOn
Filter records created on or after this date. Format: YYYY-MM-DDTHH:mm.
to_CoworkerInvoiceHistory_CreatedOn
Filter records created on or before this date. Format: YYYY-MM-DDTHH:mm.
from_CoworkerInvoiceHistory_UpdatedOn
Filter records updated on or after this date. Format: YYYY-MM-DDTHH:mm.
to_CoworkerInvoiceHistory_UpdatedOn
Filter records updated on or before this date. Format: YYYY-MM-DDTHH:mm.
Code Examples
Simple listing
curl -X GET \
"https://spaces.nexudus.com/api/billing/coworkerinvoicehistories?page=1&size=15&orderBy=Name&dir=1" \
-H "Authorization: Bearer YOUR_TOKEN"
Filtering by Name
curl -X GET \
"https://spaces.nexudus.com/api/billing/coworkerinvoicehistories?CoworkerInvoiceHistory_Name=example-value&orderBy=Name&dir=1" \
-H "Authorization: Bearer YOUR_TOKEN"
Range filters
curl -X GET \
"https://spaces.nexudus.com/api/billing/coworkerinvoicehistories?from_CoworkerInvoiceHistory_UpdatedOn=2025-01-01T00:00&to_CoworkerInvoiceHistory_UpdatedOn=2025-12-31T23:59&orderBy=UpdatedOn&dir=-1" \
-H "Authorization: Bearer YOUR_TOKEN"
Response
200
The list of CoworkerInvoiceHistory records matching the query. See the Get one CoworkerInvoiceHistory endpoint for the full list of properties returned for each record.
Number of records per page.
The field used for sorting.
The sort direction (1 = ascending, -1 = descending).
Index of the first item on the current page.
Index of the last item on the current page.
Total number of matching records across all pages.
Whether there is a next page of results.
Whether there is a previous page of results.
{
"Records": [
{
"CoworkerInvoiceId": 0,
"CoworkerInvoiceCoworkerId": null,
"CoworkerInvoiceBusinessId": null,
"CoworkerInvoiceBusinessCurrencyCode": null,
"CoworkerInvoiceCoworkerFullName": null,
"CoworkerInvoiceTotalAmount": null,
"CoworkerInvoiceInvoiceNumber": null,
"CoworkerInvoiceBillToName": null,
"CoworkerInvoicePaid": null,
"CoworkerInvoicePaidOn": null,
"CoworkerInvoiceRefunded": null,
"CoworkerInvoiceRefundedOn": null,
"CoworkerInvoiceDueDate": null,
"CoworkerInvoiceDraft": null,
"Name": "",
"Description": "",
"IsProblem": false,
"Notify": false,
"Id": 87654321,
"UpdatedOn": "2025-01-15T10:30:00Z",
"CreatedOn": "2025-01-10T08:00:00Z",
"UniqueId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"UpdatedBy": "admin@example.com",
"IsNew": false,
"SystemId": null,
"ToStringText": "CoworkerInvoiceHistory Example",
"LocalizationDetails": null,
"CustomFields": null
}
],
"CurrentPageSize": 15,
"CurrentPage": 1,
"CurrentOrderField": "Name",
"CurrentSortDirection": 1,
"FirstItem": 1,
"HasNextPage": false,
"HasPreviousPage": false,
"LastItem": 1,
"PageNumber": 1,
"PageSize": 15,
"TotalItems": 1,
"TotalPages": 1
}