younifyd
Menu

Redeem Promotion

Mark a discount your assistant gave a shopper as used, once an order with its code is paid

Use it in a workflow

  1. Add a step and choose the Promotions connector.
  2. Pick the Redeem Promotion action (under database).
  3. Fill in the fields below, then reference the result from later steps as {{redeemPromotion.response.data}}.

Fields

codestring

The code on the paid order. Case does not matter.

grantIdstring

Optional. The grantId your issue workflow was sent, if you kept it. Used instead of the code when set.

orderIdstringrequired

The paid order. Reporting the same order twice changes nothing.

orderTotalstring

What the order paid, after the discount, as the store reports it — for example 49.99.

discountAmountstring

What the code took off, for example 5.00. Leave empty if unknown; the offer's maximum is assumed.

Examples

Paid order with a code

From an order-paid webhook workflow

json
{
  "code": "AGENT-7K2M9",
  "orderId": "1001",
  "orderTotal": "49.99",
  "discountAmount": "5.00"
}

Need more? See the Promotions guide for connection setup and behaviour shared by every action.

Was this page helpful?