younifyd
Menu

Create Publication 1

Create Publication with GET

GET/v1/publications/create

Use it in a workflow

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

Request

Query parameters

join_onceboolean

Through this flag, you can control if a particular person gets only one and always the same code even if the app sends multiple publication requests. It means that if you have a referral program, a referrer is assigned only to one code if an integration sends publication requests more than once for the same customer.

voucherstring

Code of voucher being published.

campaignobject

Create publication with campaign.

namestring

Name of voucher's parent campaign or unique campaign ID that was assigned by Voucherify.

countinteger

Number of vouchers to be published to customer.

source_idstring

The merchant's publication ID if it is different from the Voucherify publication ID. It's an optional tracking identifier of a publication. It is really useful in case of an integration between multiple systems. It can be a publication ID from a CRM system, database or 3rd-party service. If `source_id` is provided only 1 voucher can be published per request.

customeranyrequired

Contains information about the customer to whom the publication was directed. Use `customer.id`, `customer.source_id`, or both to identify the customer; at least one of them is required.

metadataobject

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

Response

Returns 200 with an object. Read it in later steps with {{createPublication1.response.data.<field>}}.

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

Create Publication 1 — Voucherify — Documentation