curl --request POST \
--url https://api.nocotax.app/commissions \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"currency": "<string>",
"customer_id": "<string>",
"tax_inclusive": true
}
'import requests
url = "https://api.nocotax.app/commissions"
payload = {
"amount": 123,
"currency": "<string>",
"customer_id": "<string>",
"tax_inclusive": True
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 123,
currency: '<string>',
customer_id: '<string>',
tax_inclusive: true
})
};
fetch('https://api.nocotax.app/commissions', 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.nocotax.app/commissions",
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([
'amount' => 123,
'currency' => '<string>',
'customer_id' => '<string>',
'tax_inclusive' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$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.nocotax.app/commissions"
payload := strings.NewReader("{\n \"amount\": 123,\n \"currency\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"tax_inclusive\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.nocotax.app/commissions")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 123,\n \"currency\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"tax_inclusive\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nocotax.app/commissions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 123,\n \"currency\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"tax_inclusive\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "com_1792060733e5e53d1648c9",
"livemode": false,
"object": "commission",
"amount": 1000,
"billing_schedule_id": "bs_1792060732guj6aba8bec9",
"cancelled": false,
"customer_id": "org_1792060732fvcj0d6b9540",
"currency": "EUR",
"document_id": null,
"supplier_id": "org_1792060732f3x4f57be596",
"status": "pending",
"tax_inclusive": true,
"created_at": "2026-10-15T10:38:53.720Z",
"updated_at": "2026-10-15T10:38:53.720Z"
}{
"message": "<string>",
"status": 123,
"type": "INVALID_REQUEST_ERROR",
"params": [
{
"field": "<string>",
"errors": [
"<string>"
]
}
]
}Create commission
Creates a Commission.
curl --request POST \
--url https://api.nocotax.app/commissions \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"currency": "<string>",
"customer_id": "<string>",
"tax_inclusive": true
}
'import requests
url = "https://api.nocotax.app/commissions"
payload = {
"amount": 123,
"currency": "<string>",
"customer_id": "<string>",
"tax_inclusive": True
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 123,
currency: '<string>',
customer_id: '<string>',
tax_inclusive: true
})
};
fetch('https://api.nocotax.app/commissions', 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.nocotax.app/commissions",
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([
'amount' => 123,
'currency' => '<string>',
'customer_id' => '<string>',
'tax_inclusive' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$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.nocotax.app/commissions"
payload := strings.NewReader("{\n \"amount\": 123,\n \"currency\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"tax_inclusive\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.nocotax.app/commissions")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 123,\n \"currency\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"tax_inclusive\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nocotax.app/commissions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 123,\n \"currency\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"tax_inclusive\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "com_1792060733e5e53d1648c9",
"livemode": false,
"object": "commission",
"amount": 1000,
"billing_schedule_id": "bs_1792060732guj6aba8bec9",
"cancelled": false,
"customer_id": "org_1792060732fvcj0d6b9540",
"currency": "EUR",
"document_id": null,
"supplier_id": "org_1792060732f3x4f57be596",
"status": "pending",
"tax_inclusive": true,
"created_at": "2026-10-15T10:38:53.720Z",
"updated_at": "2026-10-15T10:38:53.720Z"
}{
"message": "<string>",
"status": 123,
"type": "INVALID_REQUEST_ERROR",
"params": [
{
"field": "<string>",
"errors": [
"<string>"
]
}
]
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
The amount of the commission, in the currency's smaller unit (eg. cents).
The currency ISO code of the commission
The ID of the organization for which this commission will be billed. It must have a billing schedule attached
Whether the amount is tax inclusive or not
Response
successful
A billing cycle defines how and when commissions or purchase orders are aggregated and invoices are generated. You can subscribe multiple suppliers and customers to a given billing cycle
commission The amount of the commission, in the currency's smaller unit (eg. cents).
The ID of the billing_schedule this commission is part of
The currency ISO code of the commission
The ID of the organization to which this commission is billed
The ID of the invoice or the credit note this commission is part of. Null if the commission has not been billed yet. See status for more information
The status of the commission
pending, billed The ID of the organization that bills this commission
Whether the amount is tax inclusive or not
