Company public service methods: Difference between revisions
No edit summary |
No edit summary |
||
| Line 594: | Line 594: | ||
Returns an object with detailed information about Rewards and referrals promotion by promotion code. You can get promotion code | Returns an object with detailed information about Rewards and referrals promotion by promotion code. You can get promotion code | ||
using <code>[[Catalogue#getPromotionList|getPromotionList]]</code> API method. If promotion record with specified | using <code>[[Catalogue#getPromotionList|getPromotionList]]</code> API method. If promotion record with specified | ||
code not found then method returns an empty array (an empty object). If [[ | code not found then method returns an empty array (an empty object). If [[Rewards_and_Referrals_custom_feature|Rewards and Referrals Custom Feature]] | ||
not enabled then method returns an error with code -32001 (Custom Feature is not activated). Use | not enabled then method returns an error with code -32001 (Custom Feature is not activated). Use | ||
<code>[[#isPluginActivated|isPluginActivated('promo')]]</code> API method call to check if Custom Feature enabled.See [[#getPromotionList response|example]] of <code>getPromotionList</code> API method response. Please note that | <code>[[#isPluginActivated|isPluginActivated('promo')]]</code> API method call to check if Custom Feature enabled.See [[#getPromotionList response|example]] of <code>getPromotionList</code> API method response. Please note that | ||