post

/v2/project/{project_id}/coupon/redeem

Redeems a coupon code. The user gets a bonus after a coupon is redeemed.

Authorization

apiKey - Authorization

Request Parameters

1 Path Parameter

Request Body

Schema
object
$schema: http://json-schema.org/draft-04/schema#
coupon_code
string

Unique coupon code. Contains letters and numbers.

4 validations
selected_unit_items
object

The reward that is selected by a user. Object key is an SKU of a unit, and value is an SKU of one of the items in a unit.

1 validation

Responses

Coupon was successfully redeemed.

1 Example
Schema
object
$schema: http://json-schema.org/draft-04/schema#
items
array[object]
1 validation

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
project_id
$$.env
Authorization