younifyd
Menu

Update Vouchers Metadata In Bulk

Update Vouchers' Metadata in Bulk

POST/v1/vouchers/metadata/async

Use it in a workflow

  1. Add a step and choose the Voucherify connector.
  2. Pick the Update Vouchers Metadata In Bulk action (under Vouchers).
  3. Fill in the fields below, then reference the result from later steps as {{updateVouchersMetadataInBulk.response.data}}.

Request

Request body

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

codesarray<string>

An array of voucher codes.

metadataobject

The metadata object stores all custom attributes assigned to the code. A set of key/value pairs that you can attach to a voucher object. It can be useful for storing additional information about the voucher in a structured format.

json
{
  "codes": [
    "string"
  ],
  "metadata": {
    "lang": "en",
    "authorized_internally": true
  }
}

Response

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

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

Was this page helpful?