Credit object encapsulates the different types of credit that can be stored on a Product, Account or AutoBill, and applied to one-time or recurring transactions.
-
Tokens: You can use tokens as both payment methods, and credit options. The
merchantTokenIdattribute of aTokenobject identifies its type. Use this data member to define yourTokentypes.For example, create anAutoBillwith a monthlyBillingPlanwhose price is defined in terms ofTokensof a certain type. Create aProductobject that grants credit for a number of Tokens of that type. Allow your customer to purchase the Product and acquire the allotted Tokens. Then, each time theAutoBillis due, Subscribe deducts the specified number ofTokensfrom the availableTokencredit. -
Credits (time): Grant time credit to an
AutoBillby including an array ofTimeIntervalobjects in theCreditobject associated with theAutoBill. TheTimeIntervalobject allows you to define a time extension to anAutoBillin terms of years, months, weeks, or days. When you grant time credit to anAutoBill, Subscribe delays the next billing for theAutoBillby the specified amount of time, similar to callingdelayBillingByDays()on theAutoBillobject. -
Credits (currency): Subscribe enables you to grant or revoke currency credits to
AccountsandAutoBills. All ISO 42171 currencies are supported. For more information, see the Credit Subobject in the Subscribe API Guide. -
Gift Cards: Add Token credits to an
AutoBillor anAccountby redeeming a gift card. Your customers may redeem gift cards, through Subscribe, to add credit to theirAccount. For more information, see Working with Gift Cards. - Redeeming Credit
- Using Credits with an Account
- Using Credits with an AutoBill

