SubscriptionResponse
A subscription resource, returned by create, get and list.
Fields
subscriptionIdstring requiredThe unique identifier of the subscription.
The lifecycle status of a subscription:
PendingAuthorization- created, awaiting customer authorisation viaredirectUrl.Active- authorised; scheduled charges are being taken.Canceled- cancelled; no further charges.Completed- all scheduled occurrences have been taken.Expired- the authorisation lapsed before activation.Failed- the subscription could not be established or sustained.Unknown- the status could not be determined.
values"PendingAuthorization""Active""Canceled""Completed""Expired""Failed""Unknown"siteCodestring requiredThe site codeSite code The unique code for a site registered under a merchant. A site is a place to transact: a website, or a branch of a store. A merchant can have several, and each transaction names the one it belongs to, so sending the wrong code files the payment against the wrong place. the subscription belongs to.
The recurring charge amount.
Fields of
Amountcurrencystring requiredThe ISO 4217ISO 4217 The three-letter currency codes, such as
ZARfor the South African rand. Always uppercase.Wikipedia current code.min length3max length3valuenumber float requiredThe amount in the currency specified.
min0.01
amountConstraintsAmountConstraintsThe authorised per-payment band. Returned on create and get.
Fields of
AmountConstraintsThe minimum authorised per-payment amount. Whole RandZAR The ISO 4217 code for the South African rand, and the currency every amount on this site is in unless a page says otherwise. Amounts are decimal rand rather than cents, so
100.00is one hundred rand., greater than 0.Fields of
Amountcurrencystring requiredThe ISO 4217ISO 4217 The three-letter currency codes, such as
ZARfor the South African rand. Always uppercase.Wikipedia current code.min length3max length3valuenumber float requiredThe amount in the currency specified.
min0.01
The maximum authorised per-payment amount. Whole RandZAR The ISO 4217 code for the South African rand, and the currency every amount on this site is in unless a page says otherwise. Amounts are decimal rand rather than cents, so
100.00is one hundred rand., greater thanmin, and not exceeding 100000.Fields of
Amountcurrencystring requiredThe ISO 4217ISO 4217 The three-letter currency codes, such as
ZARfor the South African rand. Always uppercase.Wikipedia current code.min length3max length3valuenumber float requiredThe amount in the currency specified.
min0.01
payableNowPayableNowThe once-off sign-up charge. Returned on create only.
Fields of
PayableNowThe once-off charge amount. Must be
ZAR.Fields of
Amountcurrencystring requiredThe ISO 4217ISO 4217 The three-letter currency codes, such as
ZARfor the South African rand. Always uppercase.Wikipedia current code.min length3max length3valuenumber float requiredThe amount in the currency specified.
min0.01
datestring date requiredThe date the once-off charge is taken. Must be today or a future date.
descriptionstringThe subscription description.
merchantReferencestring requiredYour reference for the subscription.
bankReferencestringThe reference that appears on the merchant's bank statement for each payment in the subscription.
frequencySubscriptionFrequencyThe billing cadence of a subscription.
values"Daily""Weekly""Fortnightly""Monthly""Biannually""Annually"firstPaymentDatestring date requiredThe date of the first scheduled charge.
occurrencesinteger requiredThe total number of scheduled charges.
redirectUrlstring uriThe hosted authorisation page the customer must be redirected to in order to approve the subscription. Present while authorisation is pending.
authorizationobjectThe customer's authorisation (consent) status. Populated once the customer has authorised via
redirectUrl.statusstringThe provider-mirrored authorisation status.
linksobject requiredRelated resource links for the subscription.
selfstring uriThe URI of this subscription.
cancelstring uriThe URI to cancel this subscription.
transactionsstring uriThe URI to create an ad-hoc charge against this subscription.