# Promotions

This API provides various methods for managing promotions. 

Clients can retrieve available promotions id or phone number, redeem promotions, and view redeemed ones. 


## Get promotions

 - [GET /promotions/customerId/{customerId}](https://dev.triggloyalty.com/openapi/promotions/getcouponsbymemberid.md): Returns a list of all available promotions for a member.

## Get promotions by phone number

 - [GET /promotions/mobilePhone](https://dev.triggloyalty.com/openapi/promotions/getcouponsbymobilephone.md): Returns a list of all available promotions for a member by using the mobile phone number

## Redeem promotion

 - [POST /promotions/redeem](https://dev.triggloyalty.com/openapi/promotions/redeempromotion.md): Method that redeems a promotion for a customer.

## Get Redeemed Promotions

 - [GET /promotions/redeem/history/customerId/{customerId}](https://dev.triggloyalty.com/openapi/promotions/getcouponhistory.md): Method that returns a list of redeemed promotions for a customer. 

Example of usage; ??

## Get promotions by cart

 - [POST /promotions/cart](https://dev.triggloyalty.com/openapi/promotions/postpromotioncart.md): Return promotions based on shopping cart

## Get campaigns

 - [GET /promotions/campaigns](https://dev.triggloyalty.com/openapi/promotions/getpromotionscampaigns.md): This method allows the client to get a list of all active promotions.

## Get definitions

 - [GET /promotions/definitions](https://dev.triggloyalty.com/openapi/promotions/getpromotionsdefinitions.md): This method allows the client to list all promotion definitions

## Dynamic method

 - [POST /promotions/dynamic/{function}](https://dev.triggloyalty.com/openapi/promotions/postpromotiondynamic.md): This method is fully dynamic both in request/response and is available for specific client customizations on the promotions endpoint.

## Enable promotion use

 - [POST /promotions/{promotionId}/enableUse/{customerId}](https://dev.triggloyalty.com/openapi/promotions/enablecustomerpromotionuse.md): This method allows a specific promotion to be used (redeemed) by a specific customer again, if it previously has been disabled using the  disableUse  method.

As default, promotions are set to available/enabled for use when assigned to a customer.

## Disable promotion use

 - [POST /promotions/{promotionId}/disableUse/{customerId}](https://dev.triggloyalty.com/openapi/promotions/disablecustomerpromotionuse.md): Disable the possiblity for a specific promotion to be used (redeemed) by a specific customer.

