This method selects vouchers that are suitable for publication, adds a publish entry and returns the publication.
A voucher is suitable for publication when it's active and hasn't been published yet.
> ❗️ Limited access
>
> Access to this endpoint is limited. This endpoint is designed for specific integrations and the API keys need to be configured to access this endpoint. Navigate to the **Dashboard** → **Project Settings** → **General** → **Integration Keys** to set up a pair of API keys and use them to send the request.
<!-- theme: warning -->
> 🚧 Clearly define the source of the voucher
>
> You must clearly define which source you want to publish the voucher code from. It can either be a code from a campaign or a specific voucher identified by a code.
<!-- theme: warning -->
> 🚧 Publish multiple vouchers
> This endpoint does not support the publishing of multiple vouchers from a single campaign. In case you want to publish multiple vouchers within a single publication, you need to use a [dedicated endpoint](ref:create-publication).
<!-- theme: info -->
> 📘 Auto-update campaign
>
> In case you want to ensure the number of publishable codes increases automatically with the number of customers, you should use an **auto-update** campaign.
## Example Request
```markdown Publication Query
/publications/create?campaign[name]=BlackFriday&customer[source_id]=Customer_Source_ID
```
<!-- theme: danger -->
> ❗️ Required
>
> Query param `voucher` OR `campaign` MUST be filled out. If you provide both, `campaign` param will be skipped.