
This node allows you to initiate import of promotions to Synerise. The imported promotions will be available <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/ai-hub-icon.svg" alt="Image presents the AI Hub icon" class="icon"> **AI Hub > Regular Promotions** in the draft status.  
The node doesn't require any further configuration - it contains a list of required parameters a file must contain to be imported. 

## Requirements
---
The file must contain the following columns:
- `code` - ID of the promotion - it must be a string
- `redeemType` - defines whether a promotion is redeemed fully or partially. Accepted values: `FULL`, `PARTIAL`
- `headerName` - the name of promotion that will be displayed on the list of promotions in Synerise UI (<img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/ai-hub-icon.svg" alt="Image presents the AI Hub icon" class="icon"> **AI Hub > Regular Promotions**)
- `name` - the name of the promotion visible to end-users
- `type` - the promotion type. Accepted values: `GENERAL`, `MEMBERS_ONLY`, `HANDBILL`, `CUSTOM`  
    
  <div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

  These types correspond to the types you can select in Synerise UI while creating a promotion. You can find more information about them [here](/docs/ai-hub/promotions/creating-promotions-for-entire-basket#type--limits)

  </div></div></div>


For more details about the required and optional columns you can go [here](https://developers.synerise.com/LoyaltyandEngagement/LoyaltyandEngagement.html#operation/CreateOrUpdateAPromotion). 

## Node configuration
---
No configuration is required. However, this node must be preceded by one of the following nodes:
- [Local File](/docs/automation/operation/local-file-node)
- [SFTP](/docs/automation/integration/sftp-integrations)
- [HTTP](/docs/automation/integration/http-integrations) 

## Example of use
---
You can launch an import of a promotion to Synerise which will be available for all your customers.


<details class="accordion"><summary>File used in this example</summary><div class="accordion-content"><pre><code class="language-plaintext">code,redeemType,headerName,name,type SPRING2023,FULL,20 percent ,DISCOUNT,GENERAL</code></pre></div></details>


1. Start the workflow with the **Scheduled Run** node.  
2. In the configuration of the node:  
    1. Set the **Run trigger** to **one time**.  
    2. Select the **Immediately** tab.  
    3. Click **Apply**.  
3. Add the **Local File** node.  
4. In the configuration of the node:  
    1. Upload a file with a promotion.
    2. Click **Apply**.  
5. Add the **Import Promotions** node.  
6. Add the **End** node.  
    <figure>
    <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/docs/automation/_gfx/import-promotions-example-of-use.png" alt="The final configuration of the import promotions workflow" class="full">
    <figcaption>The final configuration of the import promotions workflow</figcaption>
    </figure>
7. Click **Save & Run**.  
    **Result**: When the worfklow is completed, the promotion will be available in <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/ai-hub-icon.svg" alt="Image presents the AI Hub icon" class="icon"> **AI Hub > Regular Promotions**.  
    <figure>
    <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/docs/automation/_gfx/imported-promotion.png" alt="The imported promotion on the list of promotions" class="full">
    <figcaption>The imported promotion on the list of promotions</figcaption>
    </figure>