Ozow Hub
GEThttps://one.ozow.com/v1/transactions/{id}/refundsProduction
Build with AI 2 packages

A build package is every page for one task, with the API operations they use. Copy the prompt into a coding assistant, or hand it the package itself: slim links to each page, full inlines all of them in one document.

  • Refund a paymentEverything needed to refund a completed payment through One API, in full or in part, and to handle the statuses a refund moves through.
    View package
  • Migrate refunds from the Payments API to One APIEverything needed to move an existing refunds integration onto One API, with the legacy guide and its One API counterpart side by side.
    View package

Get the refunds requested against this payment.

Authentication

  • OAuth 2.0
    scopesrefunds

Path parameters

  • id string required

    The unique identifier of the transaction.

    example497f6eca-6276-4993-bfeb-53cbbbba6f08

Query parameters

  • 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 used for 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
  • The list of refunds.

    Fields of Refund
    • links object required

      Links related to this resource.

      • self string uri required

        The unique URI to this resource.

      • cancel string
    • id string uuid required

      The unique identifier for this refund.

    • transactionId string uuid required

      The transactions identifier of the payment that is being refunded.

    • amount Amount required

      The refund 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
    • requested string date-time required

      The date and time the refund was requested.

    • completed string date-time

      The date and time the refund was completed.

    • status string required

      The refund status. Possible values are:

      • Pending - The refund request has been submitted and accepted.
      • Complete - The refund has been paid successfully.
      • Submitted - The refund has been assigned to a batch and is being processed.
      • Failed - The refund payment has failed.
      • Cancelled - The refund has been cancelled before it was submitted.
      • Returned - The refund payment has been returned because the account that was being refunded no longer exists.
      values"Pending""Complete""Submitted""Failed""Cancelled""Returned"
    • reason string

      The reason for the status of the refund.

    • The bank details of where the refund was paid to.

      Fields of RefundPaidTo
      • accountNumber string required

        The bank account number the refund was paid into.

      • institution string required

        The display name of the institution holding the account.

      • branchCode string nullable

        The branch codeBranch code The six-digit number identifying a South African bank branch, the equivalent of a sort code or a routing number elsewhere. Each bank publishes one universal branch code that works for every account it holds, which is the one to use unless you have been given another. of the account.

        max length10
      Open RefundPaidTo on its own page
    • realTimePayment boolean required

      Whether or not this payment should happen in real time. Please refer to the Ozow Pricing page for more information.

      defaultfalse
    Open Refund on its own page
  • The pagination meta data available.

    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

Guides