Check Coupon
Checks coupon availability.
Authentication
x-np-api-keystring
API Key authentication via header
Path parameters
tenant
Your Entra Tenant ID. More details.
environment
Your Business Central Environment. More details.
company
Your Business Central Company. More details.
couponId
The unique system identifier for the coupon.
Headers
x-api-version
Used for API versioning. More details.
Response
This endpoint returns an object.
couponId
The unique identifier of the coupon..
documentNo
The external document number that originally issued the coupon. Empty for coupons issued via the API.
referenceNo
A unique, human-readable reference number, often used for barcodes.
couponType
The type of coupon, which carries the setup in NP Retail.
description
A short description of the coupon and its intended use..
open
Indicates whether the coupon is currently active and available for use.
maxUsePerSale
The maximum number of times this coupon can be applied in a single sale or transaction.
remainingQuantity
The number of uses left for this coupon.
inUseQuantity
The number of times the coupon is currently being used in active transactions.
state
The runtime state of the coupon as evaluated against current reservations and validity windows.
reservedByDocumentNos
The external document numbers that currently hold a reservation on this coupon. Empty when no reservations exist.
startingDate
The date and time when the coupon becomes valid. Absent when no starting date is set.
endingDate
The date and time when the coupon expires. Absent when no ending date is set.
