Ozow Hub
GEThttps://one.ozow.com/v1/subscriptionsProduction

List subscriptions for a site. The siteCode query parameter is required.

Authentication

  • OAuth 2.0
    scopessubscriptions

Query parameters

  • siteCode string required

    The merchant 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..

  • status string

    Filter the results by subscription status.

    values"PendingAuthorization""Active""Canceled""Completed""Expired""Failed""Unknown"
  • limit integer

    The maximum number of items to return.

    min1max50default50
  • offset integer

    The number of items to discard in this paging operation.

    min length0min0default0

Header parameters

  • X-Correlation-ID string

    Optional correlation id for the request, if not supplied a new one will be generated and passed onto all underlying requests and returned as a header.

Responses

200 OK
  • X-Correlation-ID header

    The correlation id for the request that was processed.

  • links PaginationLinks required

    The links used in pagination.

    Fields of PaginationLinks
    • self string uri

      The current page of data.

    • first string uri

      The first page of data.

    • last string uri nullable

      The last page of data. Null when the whole collection fits on one page.

    • prev string uri nullable

      The previous page of data. Null on the first page.

    • next string uri nullable

      The next page of data. Null on the last page.

    Open PaginationLinks on its own page
  • Fields of SubscriptionResponse
    • subscriptionId string required

      The unique identifier of the subscription.

    • status SubscriptionStatus required

      The lifecycle status of a subscription:

      • PendingAuthorization - created, awaiting customer authorisation via redirectUrl.
      • 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"
    • siteCode string required

      The 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.

    • amount Amount required

      The recurring charge amount.

      Fields of Amount
      • currency string required

        The ISO 4217ISO 4217 The three-letter currency codes, such as ZAR for the South African rand. Always uppercase.Wikipedia current code.

        min length3max length3
      • value number float required

        The amount in the currency specified.

        min0.01
      Open Amount on its own page
    • amountConstraints AmountConstraints

      The authorised per-payment band. Returned on create and get.

      Fields of AmountConstraints
      • min Amount required

        The 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.00 is one hundred rand., greater than 0.

        Fields of Amount
        • currency string required

          The ISO 4217ISO 4217 The three-letter currency codes, such as ZAR for the South African rand. Always uppercase.Wikipedia current code.

          min length3max length3
        • value number float required

          The amount in the currency specified.

          min0.01
        Open Amount on its own page
      • max Amount required

        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.00 is one hundred rand., greater than min, and not exceeding 100000.

        Fields of Amount
        • currency string required

          The ISO 4217ISO 4217 The three-letter currency codes, such as ZAR for the South African rand. Always uppercase.Wikipedia current code.

          min length3max length3
        • value number float required

          The amount in the currency specified.

          min0.01
        Open Amount on its own page
      Open AmountConstraints on its own page
    • payableNow PayableNow

      The once-off sign-up charge. Returned on create only.

      Fields of PayableNow
      • amount Amount required

        The once-off charge amount. Must be ZAR.

        Fields of Amount
        • currency string required

          The ISO 4217ISO 4217 The three-letter currency codes, such as ZAR for the South African rand. Always uppercase.Wikipedia current code.

          min length3max length3
        • value number float required

          The amount in the currency specified.

          min0.01
        Open Amount on its own page
      • date string date required

        The date the once-off charge is taken. Must be today or a future date.

      Open PayableNow on its own page
    • description string

      The subscription description.

    • merchantReference string required

      Your reference for the subscription.

    • bankReference string

      The reference that appears on the merchant's bank statement for each payment in the subscription.

    • The billing cadence of a subscription.

      values"Daily""Weekly""Fortnightly""Monthly""Biannually""Annually"
    • firstPaymentDate string date required

      The date of the first scheduled charge.

    • occurrences integer required

      The total number of scheduled charges.

    • redirectUrl string uri

      The hosted authorisation page the customer must be redirected to in order to approve the subscription. Present while authorisation is pending.

    • authorization object

      The customer's authorisation (consent) status. Populated once the customer has authorised via redirectUrl.

      • status string

        The provider-mirrored authorisation status.

    • links object required

      Related resource links for the subscription.

      • self string uri

        The URI of this subscription.

      • cancel string uri

        The URI to cancel this subscription.

      • transactions string uri

        The URI to create an ad-hoc charge against this subscription.

    Open SubscriptionResponse on its own page
  • Fields of PaginationMeta
    • totalPages integer required

      The total number of pages available.

    • totalItems integer required

      The total number of items available.

    Open PaginationMeta on its own page