DiscountCodes
Get one DiscountCode
Retrieve a single DiscountCode record by its Id.
GET
Get one DiscountCode
A DiscountCode represents a discount registered in the system. Each discount code belongs to 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.
Business (location) and defines a percentage or fixed-amount discount that can be applied to different item types: price plans (tariffs), bookings, products, and/or events.
Use the boolean flags (DiscountPricePlans, DiscountBookings, DiscountProducts, DiscountEvents) to control which item categories the discount applies to. For each enabled category, associate the specific eligible items via the corresponding ID list (e.g. Tariffs, ResourceTypes, Products, EventCategories). Use the Added* and Removed* list variants for incremental updates without replacing the full list.
A discount can specify either DiscountPercentage (e.g. 10 for 10% off) or DiscountAmount (a fixed monetary amount off), but not both.
Discount codes can be assigned to individual customers via CoworkerDiscountCode. Availability can be further restricted by validity dates (ValidFrom/ValidTo), publish window (PublishFrom/PublishTo), usage caps (MaxUses, MaxUsesPerUser), audience (OnlyForContacts, OnlyForMembers), and expiration rules (ExpirationType, ExpiresIn).
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 DiscountCode-Read role.Path Parameters
The Id of the DiscountCode record to retrieve.
Code Examples
Response
200
ID of the business linked to this record.
Name of the business (location) this discount code belongs to.
Currency code of the business (e.g. USD, EUR).
The unique alphanumeric code customers enter to apply the discount.
Human-readable description of what this discount code is for.
Whether this discount code is currently active and can be redeemed.
Date from which this discount code is visible/published to customers.
Date until which this discount code is visible/published to customers.
Percentage discount to apply (e.g. 10 for 10% off). Mutually exclusive with DiscountAmount.
Fixed monetary amount to discount. Mutually exclusive with DiscountPercentage.
Whether this discount code is used as part of the referral program.
Whether this discount can be applied to price plans (tariffs). When true, use Tariffs to restrict to specific plans.
List of tariffs linked to this record.
Whether this discount can be applied to resource bookings. When true, use ResourceTypes to restrict to specific resource types.
List of resource types linked to this record.
Whether this discount can be applied to products. When true, use Products to restrict to specific products.
List of products linked to this record.
Whether this discount can be applied to events. When true, use EventCategories to restrict to specific event categories.
List of event categories linked to this record.
Maximum number of times a single customer can redeem this discount code.
Maximum total number of times this discount code can be redeemed across all customers.
When true, only contacts (non-member customers) can use this discount code.
When true, only members (customers with an active plan) can use this discount code.
Start date from which this discount code can be redeemed.
End date after which this discount code can no longer be redeemed.
Unit of the expiration period (Day, Week, Month, Year). Used with ExpiresIn to determine when the discount expires after being assigned to a customer.
Number of ExpirationType periods after assignment until the discount expires for a customer.
Unique record identifier.
UUID of the record.
Date and time the record was created (ISO 8601).
Date and time the record was last updated (ISO 8601).
Email of the user who last updated this record.
Whether the record was recently created.
External system identifier.
Example Response
Get one DiscountCode