CoworkerDiscountCodes
Search CoworkerDiscountCodes
Search and list CoworkerDiscountCode records with filtering, sorting, and pagination.
GET
Search CoworkerDiscountCodes
A CoworkerDiscountCode assigns aDocumentation Index
Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
Use this file to discover all available pages before exploring further.
DiscountCode to a specific customer, allowing the system to track per-customer redemption history and enforce individual validity windows.
Use ValidFrom and ExpiresOn to set customer-specific validity dates. These are distinct from the discount code’s own ValidFrom/ValidTo and ExpirationType/ExpiresIn fields — the system enforces whichever constraint is more restrictive.
When the discount is part of the referral programme, RefererGuid identifies the referring customer. BookingUniqueId links the assignment to the specific booking where the code was originally applied.
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 CoworkerDiscountCode-List role.Query Parameters
Pagination & Sorting
The page number to retrieve.
The number of records per page.
The property name to sort results by (e.g.
Name, CreatedOn).Sort direction.
0 for ascending, 1 for descending.Filters
Filter by iD of the customer this discount code is assigned to.
Filter by whether the customer is an individual or a company.
Filter by full name of the customer this discount code is assigned to.
Filter by billing name of the customer.
Filter by company name of the customer.
Filter by iD of the location this assignment belongs to.
Filter by name of the location this assignment belongs to.
Filter by iD of the discount code assigned to this customer.
Filter by the alphanumeric code customers enter to apply the discount.
Filter by whether the discount code is currently active and can be redeemed.
Filter by start date from which the discount code itself can be redeemed (set on the discount code).
Filter by end date after which the discount code itself can no longer be redeemed (set on the discount code).
Filter by optional notes about this discount code assignment.
Filter by number of times this customer has redeemed the discount code.
Filter by customer-specific date from which this discount code assignment becomes valid.
Filter by customer-specific date after which this discount code assignment expires.
Filter by unique identifier of the customer who referred this customer, when the discount is part of the referral programme.
Filter by unique identifier of the booking to which this discount code was applied.
Range Filters
Filter by start date from which the discount code itself can be redeemed (set on the discount code) greater than or equal to this value. Format:
YYYY-MM-DDTHH:mm.Filter by start date from which the discount code itself can be redeemed (set on the discount code) less than or equal to this value. Format:
YYYY-MM-DDTHH:mm.Filter by end date after which the discount code itself can no longer be redeemed (set on the discount code) greater than or equal to this value. Format:
YYYY-MM-DDTHH:mm.Filter by end date after which the discount code itself can no longer be redeemed (set on the discount code) less than or equal to this value. Format:
YYYY-MM-DDTHH:mm.Filter by number of times this customer has redeemed the discount code greater than or equal to this value.
Filter by number of times this customer has redeemed the discount code less than or equal to this value.
Filter by customer-specific date from which this discount code assignment becomes valid greater than or equal to this value. Format:
YYYY-MM-DDTHH:mm.Filter by customer-specific date from which this discount code assignment becomes valid less than or equal to this value. Format:
YYYY-MM-DDTHH:mm.Filter by customer-specific date after which this discount code assignment expires greater than or equal to this value. Format:
YYYY-MM-DDTHH:mm.Filter by customer-specific date after which this discount code assignment expires less than or equal to this value. Format:
YYYY-MM-DDTHH:mm.Filter records created on or after this date. Format:
YYYY-MM-DDTHH:mm.Filter records created on or before this date. Format:
YYYY-MM-DDTHH:mm.Filter records updated on or after this date. Format:
YYYY-MM-DDTHH:mm.Filter records updated on or before this date. Format:
YYYY-MM-DDTHH:mm.Code Examples
Simple listing
Filtering by CreatedOn
Range filters
Response
200
The list of CoworkerDiscountCode records matching the query. See the Get one CoworkerDiscountCode endpoint for the full list of properties returned for each record.
Current page number.
Number of records per page.
The field used for sorting.
The sort direction (
0 = 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.
Total number of pages.
Whether there is a next page of results.
Whether there is a previous page of results.
Example Response
Search CoworkerDiscountCodes