5️⃣Refund Order

This method is used to request a refund for an order paid via an Optty integrated APM. The request is passed through to and handled by the appropriate APM provider.

Refund Order

POST /orders/[ORDERID]/refund

Use this method to execute a refund for an order that has been paid via a payment method that has been integrated through Optty

Headers

NameTypeDescription

Authorization*

String

Bearer <token>

Request Body

NameTypeDescription

refundReference*

string

Unique refund reference for tracking purposes in Optty. Use a unique ID for every refund

refundAmount*

object

An object containing the currency and amount to be refunded to the customer

refundAmount.amount*

number

Amount to refund

eg: 100

refundAmount.currency

string

The currency in which the refund amount is in, using ISO 4217 format

eg: USD, AED, GBP

refundDescription

string

Brief description of the refund

Content-type application/json:

{
    "refundReference": "TgEHcPtpN2HSrTMK-0-00",
    "bnplProvider": "KLARNA_AU",
    "refundedAmount": 100,
    "refundStatus": "SUCCESSFUL",
    "description": {},
    "refundDate": "Fri, 08 Oct 2021 06:22:20 GMT",
    "bnplRefundId": "8ba78198-bc4c-48ae-9040-57c687bed51d"
}

Last updated