Refund
Create a Refund
Create new refund - this request is idempotent, so if exactly same data will be provided, response will return data of already previously created refund instead of creating new refund.
post/api/v2_1/orders/{orderId}/refunds
Request
- Base URLhttps://secure.payu.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
orderIdstring required
Order ID generated by the PayU system
Headers
Content-Typestring required
Content type
Authorizationstring required
Auth token
Request body
Example request
{
"refund": {
"description": "Test refund",
"amount": "10000",
"extRefundId": "3e5cac39-7e38-4139-8fd6-30adc06a61bd",
"currencyCode": "PLN",
"bankDescription": "Bank transfer refund",
"type": "REFUND_PAYMENT_STANDARD"
}
}Response
Example response
{
"orderId": "WZGF5FFDRJ140731GUEST000P01",
"refund": {
"refundId": "5000000142",
"description": "Test refund",
"amount": "10000",
"extRefundId": "3e5cac39-7e38-4139-8fd6-30adc06a61bd",
"currencyCode": "PLN",
"bankDescription": "Bank transfer refund",
"creationDateTime": "2020-07-02T09:19:03.896+02:00",
"status": "PENDING",
"statusDatetime": "2020-07-02T09:19:04.013+02:00"
},
"status": {
"statusCode": "SUCCESS",
"statusDesc": "Refund queued for processing"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.