Payhip integration (Finance). Imported from open-connector.
https://payhip.com/api/v2/coupons
| Param | Type | Required | Description |
|---|---|---|---|
| code | string | required | The coupon code customers enter at checkout. |
| couponType | string | required | How Payhip applies the coupon. |
| notes | string | optional | Administrative notes for the coupon. These notes are not visible to customers. |
| amountOff | integer | optional | The fixed discount amount in cents. |
| percentOff | number | optional | The percentage discount to apply. |
| productKey | string | optional | The unique Payhip product key for a single-product coupon. |
| collectionId | string | optional | The unique Payhip collection ID. |
| usageLimit | integer | optional | The maximum number of times the coupon can be redeemed. |
/coupons/{couponId}
| Param | Type | Required | Description |
|---|---|---|---|
| couponId | integer | required | The unique Payhip coupon ID. |
/coupons
| Param | Type | Required | Description |
|---|---|---|---|
| page | integer | optional | The Payhip results page to request. |
/coupons/{couponId}
| Param | Type | Required | Description |
|---|---|---|---|
| couponId | integer | required | The unique Payhip coupon ID. |
| code | string | required | The coupon code customers enter at checkout. |
| couponType | string | required | How Payhip applies the coupon. |
| notes | string | optional | Administrative notes for the coupon. These notes are not visible to customers. |
| amountOff | integer | optional | The fixed discount amount in cents. |
| percentOff | number | optional | The percentage discount to apply. |
| productKey | string | optional | The unique Payhip product key for a single-product coupon. |
| collectionId | string | optional | The unique Payhip collection ID. |
| usageLimit | integer | optional | The maximum number of times the coupon can be redeemed. |
/coupons/{couponId}
| Param | Type | Required | Description |
|---|---|---|---|
| couponId | integer | required | The unique Payhip coupon ID. |