Exchange For Coupon
Exchanges a ticket for a coupon, which can be used for discounts on future purchases. This endpoint is used when a customer opts to convert their ticket into a coupon, providing multiple value retention options. The ticket is validated, and a coupon is issued, providing value retention for the customer.
Path parameters
tenant
Your Entra Tenant ID. More details.
environment
Your Business Central Environment. More details.
company
Your Business Central Company. More details.
ticketId
The unique identifier of a ticket
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
x-api-version
Used for API versioning. More details.
Request
This endpoint expects an object.
couponType
The type of coupon
Response
This endpoint returns an object.
couponId
The unique identifier of a coupon
couponNumber
The external reference number of the coupon.
couponType
The type of coupon