Create unreferenced refund
Changed onUse this method to create an unreferenced refund. An unreferenced refund is a refund that isn't linked to a payment.
Note: If you have the paymentId of the payment you want to refund, use our Refund Payment method. If you use our Refund Payment method, our gateway sends the refund amount to the customer's original payment method and links the refund to the payment.
In the request, you must provide the customer's payment details and the refund amount.
In the response, our gateway returns information about the refund and a refundId, which you need for the following methods:
- Retrieve refund - View the details of the refund.
- Adjust refund - Update the details of the refund.
- Reverse refund - Cancel the refund if it's in an open batch.
Request
- Base URLhttps://api.payroc.com/v1
- URLhttps://api.payroc.com/v1/refunds
- AuthHTTP bearer
Headers
Unique identifier that you generate for each request. You must use the UUID v4 format for the identifier. For more information about the idempotency key, go to Idempotency.
Request body
Response
Successful request. We processed the refund.
Changes
- breaking
the
//response property's maxLength was increased from100to255for the response status - info
the
//request property's maxLength was increased from100to255
- breaking
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
Bearerwas added to the API
- warning