Skip to main content
The redeemGiftCard method redeems a gift card represented by the input GiftCard object, and grants the resultant amount of credit to the Account. This method should be called after the statusInquiry() method is called on the GiftCard object that you provide as input to this method. If the statusInquiry() method indicates that status of the GiftCard object is Active, then call this method. For more information, see the Credit Subobject. For redemption of a gift card, Subscribe contacts a gift card processor (where supported). If the gift card is redeemable, the processor returns an SKU or a UPC number. This number is unique for each type of gift card and is decided by a prior agreement between you and the gift card processor. Subscribe uses the number to look up a Product object with the same merchantProductId. Subscribe then grants credit to the Account as defined in the creditGranted attribute of the Product object. For each type of gift card you wish to accept, create Product objects with the appropriate amount of credit specified in their creditGranted attributes. Subscribe currently supports only full redemption of the credit associated with a gift card. See Credit Grants and Gift Cards in the Subscribe Programming Guide for more information on gift card redemption.

Input

srd: sparse response description, a SOAP string (which must be a JSON object), in which you specify the elements you want returned.This parameter enables the calling system to constrain a method call to return only components you specify. This gives you greater control over returned content, and improves response time within the Vindicia platform by reducing the processing needed for the call. Some fields are required, either practically or in the WSDL, and will be returned regardless of the srd. A null srd returns the complete response. account: an Account object to which credit will be granted if redemption of the gift card is successful. Populate the merchantAccountId or VID in this object so that Subscribe can locate it in its database. giftcard: a GiftCard object encapsulating information about the gift card you wish to redeem. For more information, see The GiftCard Object. Call statusInquiry() before calling this method, to return the VID of the GiftCard object. Populate the VID in this object so that Subscribe can look it up in its database. credit: a Credit object specifying the amount and type of credit you wish to redeem. (This input parameter is currently unsupported.)

Output

return: an object of type Return that indicates the success or failure of the call. giftcard: the GiftCard object with updated credit as granted by the gift card redemption. account: the Account object to which credit was granted if redemption of the gift card was successful.

Returns

In addition to those listed in The Return Object, this call returns:

Example

Parent topic:Account Methods