Banking as a Service
Cancel Transfer
Cancel a pending BaaS transfer
POST
/
v1
/
baas
/
transfers
/
{transfer_id}
/
cancel
Cancel Transfer
curl --request POST \
--url https://api-sandbox.y.uno/v1/baas/transfers/{transfer_id}/cancelimport requests
url = "https://api-sandbox.y.uno/v1/baas/transfers/{transfer_id}/cancel"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api-sandbox.y.uno/v1/baas/transfers/{transfer_id}/cancel', 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.y.uno/v1/baas/transfers/{transfer_id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.y.uno/v1/baas/transfers/{transfer_id}/cancel"
req, _ := http.NewRequest("POST", url, nil)
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.y.uno/v1/baas/transfers/{transfer_id}/cancel")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.y.uno/v1/baas/transfers/{transfer_id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"id": "xfer_880e8400-e29b-41d4-a716-446655440000",
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"source_entity_id": "ent_660e8400-e29b-41d4-a716-446655440000",
"destination_entity_id": "ent_770e8400-e29b-41d4-a716-446655440001",
"amount": 250.00,
"currency": "USD",
"status": "CANCELLED",
"payment_rail": "ACH_SAME_DAY",
"reference": "invoice_2026_001",
"created_at": "2026-02-01T16:00:00Z",
"updated_at": "2026-02-01T16:05:00Z"
}
{
"code": "INVALID_STATUS",
"messages": ["Cannot cancel transfer with status PROCESSING"],
"http_code": 400
}
Path parameters
string
required
The transfer identifier to cancel.
Response
Returns the transfer object with statusCANCELLED.
Only transfers in
PENDING status can be cancelled. Transfers that are already PROCESSING or in a terminal state cannot be cancelled.{
"id": "xfer_880e8400-e29b-41d4-a716-446655440000",
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"source_entity_id": "ent_660e8400-e29b-41d4-a716-446655440000",
"destination_entity_id": "ent_770e8400-e29b-41d4-a716-446655440001",
"amount": 250.00,
"currency": "USD",
"status": "CANCELLED",
"payment_rail": "ACH_SAME_DAY",
"reference": "invoice_2026_001",
"created_at": "2026-02-01T16:00:00Z",
"updated_at": "2026-02-01T16:05:00Z"
}
{
"code": "INVALID_STATUS",
"messages": ["Cannot cancel transfer with status PROCESSING"],
"http_code": 400
}
⌘I
Cancel Transfer
curl --request POST \
--url https://api-sandbox.y.uno/v1/baas/transfers/{transfer_id}/cancelimport requests
url = "https://api-sandbox.y.uno/v1/baas/transfers/{transfer_id}/cancel"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api-sandbox.y.uno/v1/baas/transfers/{transfer_id}/cancel', 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.y.uno/v1/baas/transfers/{transfer_id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.y.uno/v1/baas/transfers/{transfer_id}/cancel"
req, _ := http.NewRequest("POST", url, nil)
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.y.uno/v1/baas/transfers/{transfer_id}/cancel")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.y.uno/v1/baas/transfers/{transfer_id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"id": "xfer_880e8400-e29b-41d4-a716-446655440000",
"account_id": "550e8400-e29b-41d4-a716-446655440000",
"source_entity_id": "ent_660e8400-e29b-41d4-a716-446655440000",
"destination_entity_id": "ent_770e8400-e29b-41d4-a716-446655440001",
"amount": 250.00,
"currency": "USD",
"status": "CANCELLED",
"payment_rail": "ACH_SAME_DAY",
"reference": "invoice_2026_001",
"created_at": "2026-02-01T16:00:00Z",
"updated_at": "2026-02-01T16:05:00Z"
}
{
"code": "INVALID_STATUS",
"messages": ["Cannot cancel transfer with status PROCESSING"],
"http_code": 400
}