Delete a money account
curl --request DELETE \
--url https://api.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId}', 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.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId}",
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: Bearer <token>"
],
]);
$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.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyMoney accounts and payment methods
Delete a money account
Deletes a money account and unlinks its companies. Refused when payments, settlements, cheque operations or bank statements already reference it; deactivate it instead.
DELETE
/
team
/
organization
/
money-accounts
/
{moneyAccountId}
Delete a money account
curl --request DELETE \
--url https://api.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId}', 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.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId}",
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: Bearer <token>"
],
]);
$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.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/team/organization/money-accounts/{moneyAccountId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyOrganization space
User accounts only
Cannot be undone
For: Administrator, Accountant · Permission:
money_accounts.delete
Conditions
- The call is refused when the organization’s pricing plan does not include the accounting module.
- The call is refused when the account is already referenced by order payments, customer credit repayments, purchase payments, supplier credit payments, settlements, cheque operations or bank statements; the account is not deleted and must be deactivated instead.
- Removes all links between the account and its companies, then deletes the money account; the deletion cannot be undone.
- Nothing in the accounting books is changed by this call.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Identifier of the money account (27-character KSUID string).
Query Parameters
Response mode. Default none; none answers 204 No Content.
Available options:
none Response
204
No Content (response mode none).