Run an unreferenced refund for a card payment
A merchant can return a payment to a customer’s card without a paymentId by running an unreferenced refund.
Integration steps
Step 1. Refund the payment.
Before you begin
Authenticate your requests before making API calls. If your request fails, see Errors.
Step 1. Refund the payment
To refund a card transfer payment, send a POST request to the Refund endpoint.
Request parameters
To create the body of your request, use the following parameters:
Request
channel
Channel that the merchant used to request the refund.
processingTerminalId
Unique identifier that we assigned to the terminal.
order
Object that contains information about the refund.
refundMethod
Polymorphic object that contains information about the payment method that the merchant uses to refund the customer.
The value of the type parameter determines which variant you should use:
- `card` - Payment card details
- `secureToken` - Secure token details
operator
Operator who initiated the request.
customer
Object that contains the customer's contact details and address information.
Contains parameters required for [Level 2, Level 3, and CEDP transactions](https://docs.payroc.com/knowledge/card-payments/enhanced-data).
ipAddress
Object that contains the IP address of the device that sent the request.
customFields
Array of customField objects.
Example request
Response fields
If your request is successful, we refund the card transfer payment and return a response. The response contains the following fields:
Response
refundId
Unique identifier that our gateway assigned to the refund.
processingTerminalId
Unique identifier that we assigned to the terminal.
order
Object that contains information about the refund.
card
Object that contains the details of the payment card.
transactionResult
Object that contains information about the transaction response details.
operator
Operator who requested the refund.
customer
Object that contains the customer's contact details and address information.
payment
Object that contains information about the payment that the refund is linked to.
**Note:** We don't return this object for unreferenced refunds.
supportedOperations
Array of operations that you can perform on the transaction. Our gateway can return any of the following values:
- `capture` - [Capture the payment](https://docs.payroc.com/api/schema/card-payments/payments/capture).
- `refund` - [Refund the payment](https://docs.payroc.com/api/schema/card-payments/refunds/create-referenced-refund).
- `fullyReverse` - [Fully reverse the transaction](https://docs.payroc.com/api/schema/card-payments/refunds/reverse).
- `partiallyReverse` - [Partially reverse the payment](https://docs.payroc.com/api/schema/card-payments/refunds/reverse).
- `incrementAuthorization` - [Increase the amount of the authorization](https://docs.payroc.com/api/schema/card-payments/payments/adjust).
- `adjustTip` - [Adjust the tip post-payment](https://docs.payroc.com/api/schema/card-payments/payments/adjust).
- `addSignature` - [Add a signature to the payment](https://docs.payroc.com/api/schema/card-payments/payments/adjust).
- `setAsReady` - [Set the transaction’s status to `ready`](https://docs.payroc.com/api/schema/card-payments/payments/adjust).
- `setAsPending` - [Set the transaction’s status to `pending`](https://docs.payroc.com/api/schema/card-payments/payments/adjust).
customFields
Array of customField objects.
Example response
Response