Create Coupon
Creates a new coupon.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path Parameters
tenant
Your Entra Tenant ID. More details.
environment
Your Business Central Environment. More details.
company
Your Business Central Company. More details.
Headers
x-api-version
Used for API versioning. More details.
Request
This endpoint expects an object.
couponType
The type of coupon, which links to a template defining its behavior.
customerNo
Optionally assign the coupon to a specific customer.
Response
This endpoint returns an object.
id
The unique system identifier for the coupon.
no
The internal coupon number from the number series.
couponType
The type of coupon, which carries the setup in NP Retail.
description
A short description of the coupon.
referenceNo
A unique, human-readable reference number, often used for barcodes.
status
The current status of the coupon.
Allowed values:
discountType
The type of discount the coupon provides.
Allowed values:
validFrom
The date and time from which the coupon is valid.
maxUsesPerSale
The maximum number of times this coupon can be used in a single sale.
issueDate
The date the coupon was first issued.
discountAmount
The fixed discount amount, if applicable.
discountPercent
The discount as a percentage, if applicable.
maxDiscountAmount
The maximum discount amount that can be applied.
validUntil
The date and time when the coupon expires.
customerNo
The customer number this coupon is assigned to, if any.
remainingQuantity
The remaining times the coupon can be used, if applicable.
