Promo codes

Turn a promo code off or back on

patch/api/v1/admin/promo-codes/{promoId}

Request

  • Base URL: https://otprun.com
  • URL: https://otprun.com/api/v1/admin/promo-codes/{promoId}
  • Auth: HTTP bearer

Path parameters

promoIdinteger required

Request body

activeboolean required

Response

OK

activeboolean required
amount_offinteger required

Discount in US cents, 0 for a percent discount; tenge payments get the same share off

codestring required
created_atstring date-time required
expires_atstring date-time nullable required
idinteger required
kind'percent' | 'amount' required
max_redemptionsinteger nullable required

null means no limit

percentinteger required

Discount in percent, 0 for an amount discount

plansstring[] nullable required

Plans the code works for, empty for every paid plan

redemptionsinteger required

Paid orders that used the code

Changes

No recorded changes to this operation across all 1 revision of this API.