Recharge Apply Discount on Charge

Applies a discount either by code or id to a charge

Uses this endpoint: https://developer.rechargepayments.com/2021-11/charges/apply_discount

Inputs

InputTypeDescription
Recharge Access TokenSensitiveStringRecharge Access/API Token that allows us to make calls to the api.
Charge IdStringThe id of the charge
DiscountStringEither Discount Code or Discount Id
ModeStringChoose 'code' or 'id' depending on what you want to use

Outputs

OutputTypeDescription
SuccessBooleanWhether the discount was successfully applied.
Updated ChargeObjectThe updated charge (with discount applied).