Using the addGift method in this way requires additional configuration.  It may not be available for all sites.
Please contact Support and reference this knowledgebase article.
Support staff can determine if your site is compatible with the enabling of this option.