Company administration service methods: Difference between revisions
Tags: Mobile edit Mobile web edit |
Tags: Mobile edit Mobile web edit |
||
| Line 970: | Line 970: | ||
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 [[Custom_Features#Rewards_and_Referrals|Rewards and Referrals Custom Feature]] | 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 [[Custom_Features#Rewards_and_Referrals|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 | ||
response contains a list of services for wich promotion discount can be applied (<code>service_ids</code> key). | response contains a list of services for wich promotion discount can be applied (<code>service_ids</code> key). | ||