Skip to main content
New to Corsair? See API access, authentication, and error handling.

Coupons

create

coupons.create Create a discount coupon for one product, all products or a collection Risk: write
Input Exactly one of percent_off (0-100) or amount_off (cents) is required; coupon_type single needs product_key, collection needs collection_id. Subscriptions priced with a recurring amount cannot be discounted through the API yet. Output

get

coupons.get Read one coupon by id Risk: read
Input Output

list

coupons.list List the coupons of the account, paged by limit and offset Risk: read
Input Paged with limit and offset. Output

License

decreaseUsage

license.decreaseUsage Decrease the usage count of a license key (a deactivation) Risk: write
Input Decrements the uses counter (a deactivation). The docs’ endpoint list names /license/decrease while the example reuses /license/usage; see the overview note. Output

disable

license.disable Disable a license key so it stops validating Risk: write
Input Payhip disables a license key automatically when a purchase is refunded. Output

enable

license.enable Enable a license key that was disabled Risk: write
Input Output

increaseUsage

license.increaseUsage Increase the usage count of a license key (an activation) Risk: write
Input Increments the uses counter (an activation). Output

verify

license.verify Verify a license key against a product secret; read-only check Risk: read
Input Answers the license key with enabled, uses, buyer_email and product fields. Output