Deprecated API Reference
This API Reference is being deprecated. Please use the New API Reference.
Refund a Debit
A Transfer
representing the refund (i.e. reversal) of a previously created
transfer
(type DEBIT). The refunded amount may be any value up to the amount
of the original Transfer
. These specific Transfers
are distinguished by
their type which return REVERSAL.
A Reversal can have two subtypes
indicating how they were created:
- API: Transfer created via an end-user API request (e.g. POST)
-
SYSTEM:
Transfer created via the upstream processor (e.g. resulting from
an ACH return).
-
Please note that SYSTEM created
Transfers
are rare occurrences.
-
Please note that SYSTEM created
curl https://finix.sandbox-payments-api.com/transfers/TRacB6Q6GcW6yvFUKawSnMEP/reversals \
-H "Content-Type: application/vnd.json+api" \
-H 'Finix-Version:2022-02-01' \
-u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \
-d '
{
"refund_amount" : 100,
"tags" : {
"test" : "refund"
}
}'
Example Response:
{
"id" : "TR2fXt8wHuHxjVPZ1MvrnSU8",
"created_at" : "2022-10-10T03:55:09.70Z",
"updated_at" : "2022-10-10T03:55:09.79Z",
"additional_buyer_charges" : null,
"additional_healthcare_data" : null,
"address_verification" : null,
"amount" : 100,
"amount_requested" : 100,
"application" : "APgPDQrLD52TYvqazjHJJchM",
"currency" : "USD",
"destination" : "PIe2YvpcjvoVJ6PzoRPBK137",
"externally_funded" : "UNKNOWN",
"failure_code" : null,
"failure_message" : null,
"fee" : 0,
"idempotency_id" : null,
"merchant_identity" : "IDuqZpDw28f2KK6YuDk4jNLg",
"messages" : [ ],
"raw" : null,
"ready_to_settle_at" : null,
"security_code_verification" : null,
"source" : null,
"state" : "PENDING",
"statement_descriptor" : "FNX*DUNDER MIFFLIN",
"subtype" : "API",
"tags" : {
"test" : "refund"
},
"trace_id" : "7260b6d8-9974-49c8-aee5-ecbdacfaca3a",
"type" : "REVERSAL",
"_links" : {
"application" : {
"href" : "https://finix.sandbox-payments-api.com/applications/APgPDQrLD52TYvqazjHJJchM"
},
"self" : {
"href" : "https://finix.sandbox-payments-api.com/transfers/TR2fXt8wHuHxjVPZ1MvrnSU8"
},
"parent" : {
"href" : "https://finix.sandbox-payments-api.com/transfers/TRacB6Q6GcW6yvFUKawSnMEP"
},
"destination" : {
"href" : "https://finix.sandbox-payments-api.com/payment_instruments/PIe2YvpcjvoVJ6PzoRPBK137"
},
"merchant_identity" : {
"href" : "https://finix.sandbox-payments-api.com/identities/IDuqZpDw28f2KK6YuDk4jNLg"
},
"payment_instruments" : {
"href" : "https://finix.sandbox-payments-api.com/transfers/TR2fXt8wHuHxjVPZ1MvrnSU8/payment_instruments"
},
"fee_profile" : {
"href" : "https://finix.sandbox-payments-api.com/fee_profiles/FPvCQUcnsueN3Bc3zR1qCBG8"
}
}
}
HTTP Request
POST https://finix.sandbox-payments-api.com/transfers/:TRANSFER_ID/reversals
URL Parameters
Parameter |
Description |
---|---|
:TRANSFER_ID | ID of the original Transfer |
Request Arguments
Field | Type | Description |
---|---|---|
refund_amount |
integer, required | The amount of the refund in cents (Must be equal to or less than the amount of the original Transfer ) |
tags |
object, optional | Key value pair for annotating custom metadata (e.g. order numbers) |