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
Input | Type | Description |
---|---|---|
Recharge Access Token | SensitiveString | Recharge Access/API Token that allows us to make calls to the api. |
Charge Id | String | The id of the charge |
Discount | String | Either Discount Code or Discount Id |
Mode | String | Choose 'code' or 'id' depending on what you want to use |
Outputs
Output | Type | Description |
---|---|---|
Success | Boolean | Whether the discount was successfully applied. |
Updated Charge | Object | The updated charge (with discount applied). |
Updated 7 months ago