Menu
Refund a captured payment
Refund a captured payment
POST
/payments/{paymentPspReference}/refundsUse it in a workflow
- Add a step and choose the Adyen connector.
- Pick the Refund a captured payment action (under Modifications).
- Fill in the fields below, then reference the result from later steps as
{{refundACapturedPayment.response.data}}.
Request
Path parameters
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"amount": {
"currency": "string",
"value": 0
},
"merchantAccount": "string",
"applicationInfo": {
"adyenLibrary": {
"name": "string",
"version": "string"
},
"adyenPaymentSource": {
"name": "string",
"version": "string"
},
"externalPlatform": {
"integrator": "string",
"name": "string",
"version": "string"
},
"merchantApplication": {
"name": "string",
"version": "string"
},
"merchantDevice": {
"os": "string",
"osVersion": "string",
"reference": "string"
},
"shopperInteractionDevice": {
"locale": "string",
"os": "string",
"osVersion": "string"
}
},
"capturePspReference": "string",
"enhancedSchemeData": {
"airline": {
"passengerName": "string",
"agency": {
"invoiceNumber": "string",
"planName": "string"
},
"boardingFee": 0,
"code": "string",
"computerizedReservationSystem": "string",
"customerReferenceNumber": "string",
"designatorCode": "string",
"documentType": "string",
"flightDate": "2025-01-01T00:00:00Z",
"legs": [
{
"carrierCode": "string",
"classOfTravel": "string",
"dateOfTravel": "2025-01-01T00:00:00Z",
"departureAirportCode": "string",
"departureTax": 0,
"destinationAirportCode": "string",
"fareBasisCode": "string",
"flightNumber": "string",
"stopOverCode": "string"
}
],
"passengers": [
{
"dateOfBirth": "2025-01-01",
"firstName": "string",
"lastName": "string",
"phoneNumber": "string",
"travellerType": "string"
}
],
"ticket": {
"issueAddress": "string",
"issueDate": "2025-01-01",
"number": "string"
}
},
"carRental": {
"renterName": "string",
"customerServicePhoneNumber": "string",
"noShow": false,
"pickupInfo": {
"city": "string",
"countryCode": "string",
"date": "2025-01-01",
"stateOrProvince": "string"
},
"rateType": "daily",
"rentalAgreementNumber": "string",
"rentalClassId": "string",
"rentalDays": 0,
"rentalRate": 0,
"rentalSurcharges": {
"fuel": 0,
"insurance": 0,
"oneWayDropOff": 0
},
"returnInfo": {
"city": "string",
"countryCode": "string",
"date": "2025-01-01",
"locationId": "string",
"stateOrProvince": "string"
},
"taxExempt": false
},
"healthcare": {
"totalHealthcareValue": 0,
"dentalValue": 0,
"otherMedicalValue": 0,
"prescriptionValue": 0,
"visionPrescriptionValue": 0
},
"levelTwoThree": {
"customerReferenceNumber": "string",
"destination": {
"countryCode": "string",
"postalCode": "string",
"stateOrProvince": "string"
},
"dutyAmount": 0,
"freightAmount": 0,
"itemDetailLines": [
{
"commodityCode": "string",
"description": "string",
"discountAmount": 0,
"productCode": "string",
"quantity": 0,
"totalAmount": 0,
"unitOfMeasure": "string",
"unitPrice": 0
}
],
"orderDate": "2025-01-01",
"shipFromPostalCode": "string",
"totalTaxAmount": 0
},
"lodging": {
"checkInDate": "2025-01-01",
"checkOutDate": "2025-01-01",
"customerServicePhoneNumber": "string",
"fireSafetyCompliance": false,
"folio": {
"cashAdvances": 0,
"number": "string"
},
"foodBeverageCharges": 0,
"lodgingChargeType": "advanceDeposit",
"noShow": false,
"prepaidExpenses": 0,
"propertyPhoneNumber": "string",
"renterName": "string",
"rooms": [
{
"numberOfNights": 0,
"rate": 0
}
]
},
"temporaryServices": {
"employeeName": "string",
"endDate": "2025-01-01",
"hourRate": 0,
"hoursWorked": 0,
"jobDescription": "string",
"serviceRequestor": "string",
"startDate": "2025-01-01"
}
},
"lineItems": [
{
"amountExcludingTax": 0,
"amountIncludingTax": 0,
"brand": "string",
"color": "string",
"description": "string",
"id": "string",
"imageUrl": "string",
"itemCategory": "string",
"manufacturer": "string",
"marketplaceSellerId": "string",
"productUrl": "string",
"quantity": 0
}
],
"merchantRefundReason": "FRAUD",
"reference": "string",
"splits": [
{
"type": "AcquiringFees",
"account": "string",
"amount": {
"value": 0,
"currency": "string"
},
"description": "string",
"reference": "string"
}
],
"store": "string"
}
Response
Returns 201 with an object. Read it in later steps with {{refundACapturedPayment.response.data.<field>}}.
{
"amount": {
"currency": "string",
"value": 0
},
"merchantAccount": "string",
"paymentPspReference": "string",
"pspReference": "string",
"status": "received",
"capturePspReference": "string",
"lineItems": [
{
"amountExcludingTax": 0,
"amountIncludingTax": 0,
"brand": "string",
"color": "string",
"description": "string",
"id": "string",
"imageUrl": "string",
"itemCategory": "string",
"manufacturer": "string",
"marketplaceSellerId": "string",
"productUrl": "string",
"quantity": 0
}
],
"merchantRefundReason": "FRAUD",
"reference": "string",
"splits": [
{
"type": "AcquiringFees",
"account": "string",
"amount": {
"value": 0,
"currency": "string"
},
"description": "string",
"reference": "string"
}
],
"store": "string"
}
Need more? See the Adyen guide for connection setup and behaviour shared by every action.
Was this page helpful?