Exchange For Coupon
Changed onExchanges 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.
Request
- Base URLhttps://api.npretail.app
- AuthAPI key in header x-np-api-key
Path parameters
Your Entra Tenant ID. More details.
Your Business Central Environment. More details.
Your Business Central Company. More details.
The unique identifier of a ticket
Headers
Used for API versioning. More details.
Request body
Response
Response with status 200
Changes
- breaking
the request's body type changed from no type to
object - breaking
the response's body type changed from no type to
objectfor status - warning
deleted the
headerrequest parameterx-np-api-key - info
the endpoint scheme security
NPApiKeyAuthSchemewas added to the API - info
added the new optional request property
- info
for the
pathrequest parameterticketId, the type was generalized from no type tostring, and format from no format touuid - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
api operation id
exchange-for-couponremoved and replaced withticketing_serviceTicket_exchangeForCoupon
- info