Coupons
Update a coupon
Changed onUpdate one or more fields of a coupon. Requires the coupons:write scope. The change applies from the next time the coupon is applied; a payment that already holds the coupon keeps it.
patch/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.
Request body
Response
Coupon updated.
Example response
{
"coupon": {
"code": "BLACK10"
}
}Changes
- info
endpoint added
- info