Reject a return request for a wire V2
curl --request POST \
--url https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"details": "<string>"
}
'import requests
url = "https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request"
payload = { "details": "<string>" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({details: '<string>'})
};
fetch('https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'details' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request"
payload := strings.NewReader("{\n \"details\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"details\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"details\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "wire_xyz123",
"account_number_id": "account_number_xyz123",
"core_transaction_id": "core_transaction_xyz123",
"created_at": "2024-06-27T11:22:33Z",
"updated_at": "2024-06-27T11:22:33Z",
"settlement_date": "2024-06-27",
"direction": "outgoing",
"type": "transfer",
"corridor_type": "domestic",
"status": "created",
"amounts": {
"settlement_amount": 5000,
"settlement_currency_code": "USD",
"instructed_amount": 5000,
"instructed_currency_code": "<string>",
"instructed_to_settlement_exchange_rate": 1
},
"debtor": {
"name": "Alan Scott",
"account_identifier": {
"type": "other",
"value": 1234567890
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"debtor_agent": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"instructing_agent": {
"name": "Bank of America",
"business_identifier_code": "CHASUS33",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
}
},
"instructed_agent": {
"name": "Bank of America",
"business_identifier_code": "CHASUS33",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
}
},
"creditor_agent": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"creditor": {
"name": "Alan Scott",
"account_identifier": {
"type": "other",
"value": 1234567890
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"initiating_party": {
"name": "Alan Scott",
"account_identifier": {
"type": "other",
"value": 1234567890
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"ultimate_debtor": {
"name": "Alan Scott",
"account_identifier": {
"type": "other",
"value": 1234567890
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"ultimate_creditor": {
"name": "Alan Scott",
"account_identifier": {
"type": "other",
"value": 1234567890
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"other_agents": {
"previous_instructing_agent_1": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"previous_instructing_agent_2": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"previous_instructing_agent_3": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"intermediary_agent_1": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"intermediary_agent_2": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"intermediary_agent_3": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
}
},
"payment_identifiers": {
"message_identification": "20241215MMQFMP2L017736",
"end_to_end_identification": "EndtoEnd12345",
"uetr": "dae7d83c-1624-4a79-a8ef-3794de115c13",
"instruction_identification": "Instruction12345",
"return_identification": "ReturnInstruction12345"
},
"remittance_details": {
"payment_notification": "ba77ae30-efb8-4139-8e51-37e3fd905b2b",
"message_to_creditor": "Payment for invoice 12345",
"message_to_receiving_fi": "message for receiving financial institution",
"fi_to_fi_message": "message from financial institution to financial institution",
"transfer_purpose": {
"type": "invoice_payment",
"other_details": "Payment for consulting services"
}
},
"charges": {
"charge_bearer": "shared",
"breakdown": [
{
"amount": 1250,
"currency_code": "USD",
"charging_agent": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
}
}
]
},
"related_wires": {
"original_wire_id": "wire_xyz001",
"return_wire_ids": [
"wire_xyz002"
]
},
"return_requests": [
{
"created_at": "2024-06-27T12:15:00Z",
"status": "response_needed",
"reason": "creditor_account_number_invalid",
"details": "suspected unauthorized activity",
"deadline": "2024-07-08T23:30:00Z",
"resolution": {
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "lead",
"rejection_reason": "account_closed",
"rejection_details": "<string>"
}
}
],
"return": {
"reason": "honor_return_request",
"details": "<string>"
},
"rejection": {
"reason": "honor_return_request",
"details": "<string>",
"message_identification": "20241215MMQFMP2L017736"
},
"metadata": {}
}{
"code": "authentication_missing",
"message": "The request has no authentication credentials. Send your API token in the Authorization header.",
"errors": [
{
"code": "authentication_missing",
"message": "The Authorization header is missing. Send your API token as a bearer token.",
"parameters": [
"Authorization"
]
}
]
}{
"code": "internal_server_error",
"message": "Internal server error. Retry with exponential backoff. For a POST, PATCH or DELETE, reuse the same Idempotency-Key so the request isn't processed twice. If it keeps failing, contact Lead with the Lead-Request-ID."
}Wire V2
Reject a Return Request for a Wire
Reject the currently active incoming return request associated with the wire.
POST
/
v2
/
wires
/
{id}
/
reject_return_request
Reject a return request for a wire V2
curl --request POST \
--url https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"details": "<string>"
}
'import requests
url = "https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request"
payload = { "details": "<string>" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({details: '<string>'})
};
fetch('https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'details' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request"
payload := strings.NewReader("{\n \"details\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"details\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.lead.bank/v2/wires/{id}/reject_return_request")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"details\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "wire_xyz123",
"account_number_id": "account_number_xyz123",
"core_transaction_id": "core_transaction_xyz123",
"created_at": "2024-06-27T11:22:33Z",
"updated_at": "2024-06-27T11:22:33Z",
"settlement_date": "2024-06-27",
"direction": "outgoing",
"type": "transfer",
"corridor_type": "domestic",
"status": "created",
"amounts": {
"settlement_amount": 5000,
"settlement_currency_code": "USD",
"instructed_amount": 5000,
"instructed_currency_code": "<string>",
"instructed_to_settlement_exchange_rate": 1
},
"debtor": {
"name": "Alan Scott",
"account_identifier": {
"type": "other",
"value": 1234567890
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"debtor_agent": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"instructing_agent": {
"name": "Bank of America",
"business_identifier_code": "CHASUS33",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
}
},
"instructed_agent": {
"name": "Bank of America",
"business_identifier_code": "CHASUS33",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
}
},
"creditor_agent": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"creditor": {
"name": "Alan Scott",
"account_identifier": {
"type": "other",
"value": 1234567890
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"initiating_party": {
"name": "Alan Scott",
"account_identifier": {
"type": "other",
"value": 1234567890
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"ultimate_debtor": {
"name": "Alan Scott",
"account_identifier": {
"type": "other",
"value": 1234567890
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"ultimate_creditor": {
"name": "Alan Scott",
"account_identifier": {
"type": "other",
"value": 1234567890
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"other_agents": {
"previous_instructing_agent_1": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"previous_instructing_agent_2": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"previous_instructing_agent_3": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"intermediary_agent_1": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"intermediary_agent_2": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
},
"intermediary_agent_3": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
}
},
"payment_identifiers": {
"message_identification": "20241215MMQFMP2L017736",
"end_to_end_identification": "EndtoEnd12345",
"uetr": "dae7d83c-1624-4a79-a8ef-3794de115c13",
"instruction_identification": "Instruction12345",
"return_identification": "ReturnInstruction12345"
},
"remittance_details": {
"payment_notification": "ba77ae30-efb8-4139-8e51-37e3fd905b2b",
"message_to_creditor": "Payment for invoice 12345",
"message_to_receiving_fi": "message for receiving financial institution",
"fi_to_fi_message": "message from financial institution to financial institution",
"transfer_purpose": {
"type": "invoice_payment",
"other_details": "Payment for consulting services"
}
},
"charges": {
"charge_bearer": "shared",
"breakdown": [
{
"amount": 1250,
"currency_code": "USD",
"charging_agent": {
"business_identifier_code": "BOFAUS3NXXX",
"name": "Bank of America",
"local_routing_identifier": {
"scheme": "GBDSC",
"value": "123456"
},
"address": {
"department": "Procurement Department",
"sub_department": "IT Procurement",
"street_name": "Main Street",
"building_number": "100",
"building_name": "City Hall",
"floor": "4th Floor",
"post_box": "PO Box 12345",
"room": "600",
"post_code": "64105",
"town_name": "Kansas City",
"town_location_name": "Westside North",
"district_name": "Manhattan",
"country_sub_division": "MO",
"country": "US",
"line_1": "123 Main St",
"line_2": "Suite 100",
"line_3": "Kansas City, MO 64105"
}
}
}
]
},
"related_wires": {
"original_wire_id": "wire_xyz001",
"return_wire_ids": [
"wire_xyz002"
]
},
"return_requests": [
{
"created_at": "2024-06-27T12:15:00Z",
"status": "response_needed",
"reason": "creditor_account_number_invalid",
"details": "suspected unauthorized activity",
"deadline": "2024-07-08T23:30:00Z",
"resolution": {
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": "lead",
"rejection_reason": "account_closed",
"rejection_details": "<string>"
}
}
],
"return": {
"reason": "honor_return_request",
"details": "<string>"
},
"rejection": {
"reason": "honor_return_request",
"details": "<string>",
"message_identification": "20241215MMQFMP2L017736"
},
"metadata": {}
}{
"code": "authentication_missing",
"message": "The request has no authentication credentials. Send your API token in the Authorization header.",
"errors": [
{
"code": "authentication_missing",
"message": "The Authorization header is missing. Send your API token as a bearer token.",
"parameters": [
"Authorization"
]
}
]
}{
"code": "internal_server_error",
"message": "Internal server error. Retry with exponential backoff. For a POST, PATCH or DELETE, reuse the same Idempotency-Key so the request isn't processed twice. If it keeps failing, contact Lead with the Lead-Request-ID."
}See Errors for the common errors every v2 endpoint can return.
Authorizations
Headers
Path Parameters
Body
application/json
Reason the return request was rejected.
account_closed— ISOAC04.non_sufficient_funds— ISOAM04.customer_requested— ISOCUST. Customer declined the return.legal_decision— ISOLEGL.customer_no_response— ISONOAS. Customer did not respond by the deadline.returned_previously— ISOARDT. Wire already fully returned. Auto-set by Lead when applicable.narrative— ISONARR. Catch-all; details field carries the explanation.per_agent_request— ISOAGNT. Incoming only.other— Incoming only. Catch-all for unmapped ISO codes received from the counterparty.
Available options:
account_closed, non_sufficient_funds, customer_requested, legal_decision, customer_no_response, returned_previously, narrative, per_agent_request, other Accompanying free-text explanation for the reason. Required when reason is narrative.
Required string length:
1 - 105Pattern:
^[0-9a-zA-Z/\-\?:\(\)\.,'\+ !@#$%^&\*=_`\{\|\}~";<>\[\\\]]*[0-9a-zA-Z/\-\?:\(\)\.,'\+!@#$%^&\*=_`\{\|\}~";<>\[\\\]][0-9a-zA-Z/\-\?:\(\)\.,'\+ !@#$%^&\*=_`\{\|\}~";<>\[\\\]]*$Response
The updated wire object, with the active return request now in rejected status.
A wire object.
Indicates whether the wire is domestic or international based on the banks included in the wire message. A wire is international if any bank in the payment chain is located outside the U.S.; otherwise, it is classified as domestic.
Available options:
domestic, international Example:
"domestic"
Was this page helpful?

