v2
latestOpenAPI 3.0.02026-07-3139594346.4 KBTransactions
Refund a Transaction
This refunds a captured transaction. Refunds can be done for any partial amount or for the total authorized amount. These refunds are processed synchronously and return information about the refunded transaction in the standard transaction_view object.
post/v1/merchant/transactions/credit
Headers
Idempotency-Keystring
A key created by merchants that ensures POST and PATCH requests are only performed once. Read more about Idempotent Requests here.
Request body
Example request
{
"amount": 754,
"currency": "USD",
"merchant_event_id": "dbe0cd5d-3261-41d9-ba61-49e5b9d07567",
"transaction_reference": "LBLJ-TWW7-R9VC"
}Response
Refund Successful
Example response
{
"amount": {
"amount": 754,
"currency": "USD",
"currency_symbol": "$"
},
"authorization": {
"merchant_event_id": "dbe0cd5d-3261-41d9-ba61-49e5b9d07567",
"status": "succeeded"
},
"capture": {
"amount": {
"amount": 754,
"currency": "USD",
"currency_symbol": "$"
},
"id": "BcDE4fafd2a4",
"merchant_event_id": "dbe0cd5d-3261-41d9-ba61-49e5b9d07567",
"splits": [
{
"amount": {
"amount": 754,
"currency": "USD",
"currency_symbol": "$"
},
"type": "processing_fee"
}
],
"status": "succeeded"
},
"captures": [
{
"amount": {
"amount": 754,
"currency": "USD",
"currency_symbol": "$"
},
"id": "BcDE4fafd2a4",
"merchant_event_id": "dbe0cd5d-3261-41d9-ba61-49e5b9d07567",
"splits": {
"amount": {
"amount": 754,
"currency": "USD",
"currency_symbol": "$"
}
},
"status": "succeeded"
}
],
"credit": {
"status": "succeeded",
"merchant_event_id": "dbe0cd5d-3261-41d9-ba61-49e5b9d07567"
},
"date": 1615407159447,
"from_consumer": {
"first_name": "Alan",
"last_name": "Watts",
"emails": [
{
"priority": "primary"
}
],
"phones": [
{
"country_code": "US"
}
]
},
"from_credit_card": {
"billing_address": {
"company": "Bolt",
"country": "United States",
"country_code": "US",
"door_code": "123456",
"email_address": "alan.watts@example.com",
"first_name": "Alan",
"last_name": "Watts",
"locality": "Brooklyn",
"name": "Alan Watts",
"phone_number": "+12125550199",
"postal_code": "10044",
"priority": "primary",
"region": "NY",
"region_code": "NY",
"street_address1": "888 main street",
"street_address2": "apt 3021",
"street_address3": "c/o Alicia Watts",
"street_address4": "Bridge Street Apartment Building B"
},
"bin": "402201",
"display_network": "Visa",
"expiration": 1654041600000,
"icon_asset_path": "img/issuer-logos/visa.png",
"id": "AB3rJKam5DhYE",
"last4": "4021",
"network": "visa",
"priority": "primary",
"status": "active",
"token": "a1B2c3D4e5F6G7H8i9J0k1L2m3N4o5P6Q7r8S9t0",
"token_type": "bolt"
},
"id": "T1c3p4yBuVYJ9",
"indemnification_decision": "indemnified",
"indemnification_reason": "merchant_force_approved",
"last4": "4021",
"merchant_division": {
"merchant_password_login_url": "https://www.example.com/login"
},
"processor": "adyen_gateway",
"reference": "LBLJ-TWW7-R9VC",
"risk_review_status": "reviewed",
"splits": [
{
"amount": {
"amount": 754,
"currency": "USD",
"currency_symbol": "$"
}
}
],
"status": "cancelled",
"to_consumer": {
"first_name": "Alan",
"last_name": "Watts",
"emails": [
{
"priority": "primary"
}
],
"phones": [
{
"country_code": "US"
}
]
},
"to_credit_card": {
"billing_address": {
"company": "Bolt",
"country": "United States",
"country_code": "US",
"door_code": "123456",
"email_address": "alan.watts@example.com",
"first_name": "Alan",
"last_name": "Watts",
"locality": "Brooklyn",
"name": "Alan Watts",
"phone_number": "+12125550199",
"postal_code": "10044",
"priority": "primary",
"region": "NY",
"region_code": "NY",
"street_address1": "888 main street",
"street_address2": "apt 3021",
"street_address3": "c/o Alicia Watts",
"street_address4": "Bridge Street Apartment Building B"
},
"bin": "402201",
"display_network": "Visa",
"expiration": 1654041600000,
"icon_asset_path": "img/issuer-logos/visa.png",
"id": "AB3rJKam5DhYE",
"last4": "4021",
"network": "visa",
"priority": "primary",
"status": "active",
"token": "a1B2c3D4e5F6G7H8i9J0k1L2m3N4o5P6Q7r8S9t0",
"token_type": "bolt"
},
"type": "cc_payment",
"void": {
"merchant_event_id": "dbe0cd5d-3261-41d9-ba61-49e5b9d07567",
"status": "succeeded",
"void": "123456"
}
}