Create Coupon
Changed onCreate a coupon code customers can use at checkout. Amounts are sent in major currency units and returned in minor units (cents).
post/v1/coupons
Request
- Base URLhttps://api.hit-pay.com
- URLhttps://api.hit-pay.com/v1/coupons
- Authnone declared. Required headers: X-BUSINESS-API-KEY
Headers
X-BUSINESS-API-KEYstring required
Example:b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d
Request body
Example request
{
"name": "Year End Sale",
"code": "YEAREND10",
"fixed_amount": 5,
"coupons_left": 100,
"coupon_type": 2,
"applies_to_ids": [
"9bd48afd-ed47-4bdb-aac0-388d6b25d199"
],
"minimum_cart_amount": 20,
"starts_at": "2026-11-01",
"ends_at": "2026-12-31"
}Response
201
Changes
- info
endpoint added
- info