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
orderId*
string
The order Id that need to refund /orders/[ORDERID]/refund
Headers
Authentication*
string
Authorization: Bearer <token>
Path Parameters
orderId*
string
hZDPuaSr7qWt
Headers
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
Last updated