This object stores a summary of publish events: an events counter and an endpoint which can be called to return details of each event. A publication is required for loyalty cards and referral codes. This object gets updated whenever a voucher has been published. Publication means assigning a code to a particular customer. Typically, a publication is made by distributing your codes to your customers, e.g. through Export to MailChimp or publish voucher API method. | Required | Optional | | -------- | :------: | | type
:LOYALTY_CARD
| type
:DISCOUNT_VOUCHER
| | is_referral_code
:true
| type
:GIFT_VOUCHER
|
Name | Type | Description |
---|---|---|
_object | String | The type of the object represented is by default `list`. To get this list, you need to make a call to the endpoint returned in the `url` attribute. |
count | Integer | Publication events counter. |
url | String | The endpoint where this list of publications can be accessed using a GET method. `/v1/vouchers/{voucher_code}/publications` |