Reverse a single-leg transaction (SLT). You can reverse transactions that have a SETTLED or CLEARED status. This API is available for some RocketKOR solutions, such as ACH.
You can reverse a single-leg transaction for the following reasons:
When you reverse a single-leg transaction, the following operations are performed:
The reversal transaction is identical to the original transaction, with the following exceptions:
For INCORRECT_RECIPIENT and INCORRECT_AMOUNT reversals, a new correction transaction is posted after the original transaction is reversed.
POST /v1/transactions/{transactionId}/reverse
Authorization: Bearer <access_token>
Idempotency-Key: <key>
where <key> is a v4 UUID or any other unique string with a minimum length of 6 characters and a maximum length of 255 characters.
The idempotency key identifies the request. If a network error occurs, you can safely retry the request using the same idempotency key and the request will only be executed once. This ensures that calling the API multiple times will not result in duplicate requests. For more information, see Idempotent Calls.
transactionId REQUIRED
string (UUID)
ID of the single-leg transaction (SLT) in the RocketKOR system.
reversalReason REQUIRED
string enum, values: DUPLICATE_PAYMENT, INCORRECT_RECIPIENT, INCORRECT_AMOUNT
Reason to reverse the transaction. The following values are supported:
correctionAmount CONDITIONAL
string (currency)
Required for INCORRECT_AMOUNT reversals only. Leave blank for other reversal types.
Provide the correct transaction amount. This amount will be used in the correction transaction.
correctionFinancialAccountId CONDITIONAL
string (UUID)
Required for INCORRECT_RECIPIENT reversals only. Leave blank for other reversal types.
This Financial Account ID will be used in the correction transaction. Provide only one of the following:
SAMPLE REQUEST
{
"reversalReason": "INCORRECT_AMOUNT",
"correctionAmount": "1200.00"
}
SAMPLE RESPONSE
{
"reversalTransaction": {
"businessAccountId": "de30132c-e67a-4af7-89ec-f2109863b7f7",
"metadata": {
"myPaymentId": "100000333",
"invoiceNumber": "123232333",
"authorizedBy": "user@email.com"
},
"debitFinancialAccountId": "6a017f06-83a3-44b7-be6f-5e5cae4a9ed7",
"creditFinancialAccountId": "4py56a34-4686-1539-c2ga-1a723g55dlq3",
"transactionType": "REVERSAL",
"solution": "ach",
"paymentReasonId": "bill-payment",
"paymentReason": "Bill payment",
"amount": "900.00",
"currency": "USD",
"settlementPriority": "SAME_DAY",
"createdAt": "2022-12-02T03:06:08.901Z",
"createdBy": {
"id": "b6333b53-3222-4227-a71e-718b25ca3ea4",
"type": "service-account"
},
"description": "",
"memo": "",
"initiatorAccountHolderId": "ebfa3e16-63c4-48e3-ae59-a3194a867269",
"externalTransactionInitiatorId": "c62d1e6b-39ce-496e-bf6d-8a019d2f534e",
"originatingChannel": "EXTERNAL",
"id": "e4e10775-1dd1-4001-a797-2de429637f1c",
"latestStatus": {
"status": "REVERSED",
"message": "Transaction reversed",
"createdBy": {
"id": "b6333b53-3222-4227-a71e-718b25ca3ea4",
"type": "service-account"
},
"createdAt": "2022-12-02T03:06:08.901Z"
},
"reversalReason": "INCORRECT_AMOUNT"
},
"correctionTransaction": {
"businessAccountId": "de30132c-e67a-4af7-89ec-f2109863b7f7",
"metadata": {
"myPaymentId": "100000333",
"invoiceNumber": "123232333",
"authorizedBy": "user@email.com"
},
"debitFinancialAccountId": "6a017f06-83a3-44b7-be6f-5e5cae4a9ed7",
"creditFinancialAccountId": "4py56a34-4686-1539-c2ga-1a723g55dlq3",
"transactionType": "SEND",
"solution": "ach",
"paymentReasonId": "bill-payment",
"paymentReason": "Bill payment",
"amount": "1200.00",
"currency": "USD",
"settlementPriority": "SAME_DAY",
"createdAt": "2022-12-13T03:06:08.901Z",
"createdBy": {
"id": "b6333b53-3222-4227-a71e-718b25ca3ea4",
"type": "service-account"
},
"description": "",
"memo": "",
"initiatorAccountHolderId": "ebfa3e16-63c4-48e3-ae59-a3194a867269",
"externalTransactionInitiatorId": "c62d1e6b-39ce-496e-bf6d-8a019d2f534e",
"originatingChannel": "EXTERNAL",
"id": "2av81w47-9367-1295-h4ng-1q520p28wfn1",
"latestStatus": {
"status": "NEW",
"message": "Transaction creation successful",
"createdBy": {
"id": "b6333b53-3222-4227-a71e-718b25ca3ea4",
"type": "service-account"
},
"createdAt": "2022-12-13T03:06:08.901Z"
},
"reversalReason": ""
}
}
Step into the future of Finance with RocketKOR! Simplify payments, banking, lending, and data analytics using our versatile KOR Platform.
A Rocket Financial Inc. company
@ 2024 RocketKOR, Inc. All rights reserved.