Ozow Hub
GEThttps://one.ozow.com/v1/refunds/{id}Production
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

Retrieve a refund by its unique identifier.

Authentication

  • OAuth 2.0
    scopesrefunds

Path parameters

  • id string required

    The refund identifier.

    example497f6eca-6276-4993-bfeb-53cbbbba6f08

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

Guides