Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Query Parameters
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.
Code of voucher being published.
"2CpRCE2c"
Create publication with campaign.
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.
Contains information about the customer to whom the publication was directed.
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 a publication object.
- Publications Create Voucher Response Body
- Publications Create Vouchers Response Body
Response body schema for POST v1/publication
and GET v1/publications/create
.
Unique publication ID, assigned by Voucherify.
"pub_BbjAXnmm8e0SIm3zG8qvvFCP0KuLywtp"
The type of the object represented by the JSON. This object stores information about the publication
.
publication
Timestamp representing the date and time when the publication was created. The value is shown in the ISO 8601 format.
"2022-09-23T09:57:00.434Z"
Unique customer ID of the customer receiving the publication.
"cust_eWgXlBBiY6THFRJwX45Iakv4"
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.
How the publication was originated. It can be your own custom channel or an example value provided here.
API
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.
Status of the publication attempt.
SUCCESS
Contains the unique internal voucher ID that was assigned by Voucherify.
This is an object representing a voucher with categories and validation rules assignments. This is an object representing a voucher.
Customer's source_id
.