banking - Remove an own bank account
curl --request DELETE \
--url https://api.ripio.com/wallet/banking/accounts/{rail_type}/{id}/ \
--header 'authorization: <authorization>' \
--header 'signature: <signature>' \
--header 'timestamp: <timestamp>'import requests
url = "https://api.ripio.com/wallet/banking/accounts/{rail_type}/{id}/"
headers = {
"authorization": "<authorization>",
"signature": "<signature>",
"timestamp": "<timestamp>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {
authorization: '<authorization>',
signature: '<signature>',
timestamp: '<timestamp>'
}
};
fetch('https://api.ripio.com/wallet/banking/accounts/{rail_type}/{id}/', 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.ripio.com/wallet/banking/accounts/{rail_type}/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"authorization: <authorization>",
"signature: <signature>",
"timestamp: <timestamp>"
],
]);
$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.ripio.com/wallet/banking/accounts/{rail_type}/{id}/"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("signature", "<signature>")
req.Header.Add("timestamp", "<timestamp>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.ripio.com/wallet/banking/accounts/{rail_type}/{id}/")
.header("authorization", "<authorization>")
.header("signature", "<signature>")
.header("timestamp", "<timestamp>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ripio.com/wallet/banking/accounts/{rail_type}/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["authorization"] = '<authorization>'
request["signature"] = '<signature>'
request["timestamp"] = '<timestamp>'
response = http.request(request)
puts response.read_body{
"error_code": null,
"message": null,
"data": {
"id": 123,
"deleted": true
}
}Banking
Remove An Own Bank Account
Removes a bank account owned by the authenticated user.
- AR (
bankrail): performs a soft delete. Returns409(BANK_0002) if the account has pending movements. - BR (
pixrail): disables the Pix key (soft delete). Always succeeds if the key exists.
Domain error codes (returned inside data.detail[] on error):
BANK_0002— the account has pending movements and cannot be removed.
Authorization
- Requires a valid API key.
DELETE
/
wallet
/
banking
/
accounts
/
{rail_type}
/
{id}
/
banking - Remove an own bank account
curl --request DELETE \
--url https://api.ripio.com/wallet/banking/accounts/{rail_type}/{id}/ \
--header 'authorization: <authorization>' \
--header 'signature: <signature>' \
--header 'timestamp: <timestamp>'import requests
url = "https://api.ripio.com/wallet/banking/accounts/{rail_type}/{id}/"
headers = {
"authorization": "<authorization>",
"signature": "<signature>",
"timestamp": "<timestamp>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {
authorization: '<authorization>',
signature: '<signature>',
timestamp: '<timestamp>'
}
};
fetch('https://api.ripio.com/wallet/banking/accounts/{rail_type}/{id}/', 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.ripio.com/wallet/banking/accounts/{rail_type}/{id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"authorization: <authorization>",
"signature: <signature>",
"timestamp: <timestamp>"
],
]);
$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.ripio.com/wallet/banking/accounts/{rail_type}/{id}/"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("signature", "<signature>")
req.Header.Add("timestamp", "<timestamp>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.ripio.com/wallet/banking/accounts/{rail_type}/{id}/")
.header("authorization", "<authorization>")
.header("signature", "<signature>")
.header("timestamp", "<timestamp>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ripio.com/wallet/banking/accounts/{rail_type}/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["authorization"] = '<authorization>'
request["signature"] = '<signature>'
request["timestamp"] = '<timestamp>'
response = http.request(request)
puts response.read_body{
"error_code": null,
"message": null,
"data": {
"id": 123,
"deleted": true
}
}Headers
The API key as a string.
See the Generating Signature section for more details.
A timestamp in milliseconds. See the Timestamp Security section for more details.
An additional, non-required parameter, that you can send to specify the number of milliseconds after the timestamp for the request to be valid. See the Timestamp Security section for more details.
Path Parameters
Rail type of the account to remove. Use bank for Argentine accounts, pix for Brazilian Pix keys.
Example:
"bank"
Unique identifier of the bank account.
Example:
42