Refund Order

This is used to request a refund. All refunds will be handled by the Payment Provider.

Request Refund

POST https://api.qa.optty.com/orders/[ORDERID]/refund

Request Refund

POST https://api.qa.optty.com/orders/[ORDERID]/refund

For live environment, please update the endpoint to https://api.optty.com

Path Parameters

NameTypeDescription

orderId*

string

The order Id that need to refund /orders/[ORDERID]/refund

Headers

NameTypeDescription

Authentication*

string

Authorization: Bearer <token>

{
    "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"
}

Path Parameters

NameTypeDescription

orderId*

string

hZDPuaSr7qWt

Headers

NameTypeDescription

Authentication*

string

2EO4Do1ZUy3x

Parameters

Content Type: application/json

Field

Type

Description

refundReference

required

string

Unique refund reference for tracking purpose in Optty

(Use unique id for every refund)

refundDescription

required

string

Brief description of the refund

refundAmount

required

object

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

refundAmount.amount

required

Number

Order amount to be refunded to the customer

Full Example

{
    "refundReference": "TgEHcPtpN2HSrTMK-0",
    "refundAmount": {
        "amount": 100,
        "currency": "AUD"
    },
    "refundDescription": "Please refund this order"
}

Last updated