younifyd
Menu

Rollback Redemption

Rollback Redemption

POST/v1/redemptions/{redemptionId}/rollback

Use it in a workflow

  1. Add a step and choose the Voucherify connector.
  2. Pick the Rollback Redemption action (under Redemptions).
  3. Fill in the fields below, then reference the result from later steps as {{rollbackRedemption.response.data}}.

Request

Path parameters

redemptionIdstringrequired

The original redemption ID to be rolled back (undone).

Query parameters

reasonstring

Reason for the rollback.

tracking_idstring

Customer's `source_id`.

Request body

Enter the body as JSON in the step's Body field.

reasonstring

Reason for the rollback.

tracking_idstring

Customer's `source_id`.

customerany
orderobject

Order information.

metadataobject

A set of key/value pairs that you can send in the request body to update **redemption** metadata.

json
{
  "reason": "string",
  "tracking_id": "string",
  "customer": null,
  "order": {},
  "metadata": {}
}

Response

Returns 200 with a any. Read it in later steps with {{rollbackRedemption.response.data.<field>}}.

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

Rollback Redemption — Voucherify — Documentation