Coupons
Delete a coupon
Changed onDelete a coupon. Requires the coupons:write scope. The coupon is deactivated and kept for the payments that used it, but it no longer appears in the list, GET returns 404, and its code can be used by a new coupon. A payment that already holds the coupon keeps its discount.
delete/v1/coupons/{couponId}
Request
- Base URLhttps://api.yuvexpay.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
couponIdstring uuid required
The coupon ID.
Response
Coupon deleted.
Changes
- info
endpoint added
- info