cURL
curl --request DELETE \
--url https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid} \
--header 'Authorization: Bearer <token>'const url = 'https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}"
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))
}using RestSharp;
var options = new RestClientOptions("https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.delete("https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}",
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;
}$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$response = Invoke-WebRequest -Uri 'https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}' -Method DELETE -Headers $headersrequire 'uri'
require 'net/http'
url = URI("https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}")
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_body{
"code": 403,
"error": "forbidden",
"description": "Invalid auth token."
}{
"code": 404,
"error": "not_found",
"description": "Failed to find the requested account."
}{
"code": 500,
"error": "internal_server_error",
"description": "Internal server error"
}Partnership API
Delete billing account
Removes an account from the partnership domain.
DELETE
/
api
/
v1
/
partners
/
accounts
/
{customer_account_uid}
cURL
curl --request DELETE \
--url https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid} \
--header 'Authorization: Bearer <token>'const url = 'https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}"
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))
}using RestSharp;
var options = new RestClientOptions("https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.delete("https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}")
.header("Authorization", "Bearer <token>")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}",
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;
}$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$response = Invoke-WebRequest -Uri 'https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}' -Method DELETE -Headers $headersrequire 'uri'
require 'net/http'
url = URI("https://billing.b5test.eu/api/v1/partners/accounts/{customer_account_uid}")
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_body{
"code": 403,
"error": "forbidden",
"description": "Invalid auth token."
}{
"code": 404,
"error": "not_found",
"description": "Failed to find the requested account."
}{
"code": 500,
"error": "internal_server_error",
"description": "Internal server error"
}Was this page helpful?