/balances/biz-partners/customers/{bizPartnerId}/sheetsReturns balance per document for the given business partner (customer).
Audit event:
- invoice.biz-partners.customers.balance.sheetlist.get
Privilege (one of):
- finance-balance-view
- finance-balance-own-view
Filter fields:
- instanceId
- documentId
- bizPartnerId
- bizPartnerType
- bizPartnerName
- bizPartnerBriefName
- vat
- docClassDomain
- docClassArea
- documentNumber
- documentDate
- documentDueDate
- documentIssuingDate
- currency
- paymentStatus
- docClassId
- dataSourceId
- domainId
- ownerId
- ownerBpName
- ownerBpBriefName
- documentTypeId
- documentTypeName
- documentTypeSelfBilling
- documentTypeDtsSelectorId
- invDate
- vatPercent
- documentUuid
- currencyCode
- dataSourceCodeName
- docClassCodeName
- domainCodeName
- documentTypeDtsSelectorCodeName
- amountNoVat
- amountVat
- total
- totalUnpaid
- totalPaid
- rounding
Sortable fields:
- documentId
- documentUuid
- bizPartnerId
- bizPartnerType
- bizPartnerName
- bizPartnerBriefName
- vat
- docClassDomain
- docClassArea
- documentNumber
- documentDate
- documentDueDate
- documentIssuingDate
- currency
- currencyCode
- paymentStatus
- docClassId
- docClassCodeName
- dataSourceId
- dataSourceCodeName
- domainId
- domainCodeName
- ownerId
- ownerBpName
- ownerBpBriefName
- documentTypeId
- documentTypeName
- documentTypeSelfBilling
- documentTypeDtsSelectorId
- documentTypeDtsSelectorCodeName
- amountNoVat
- amountVat
- total
- totalUnpaid
- totalPaid
- rounding
- invDate
- vatPercent
Searchable attributes:
- documentDate
- invDate
- documentId
- documentUuid
- bizPartnerName
- bizPartnerBriefName
- bizPartnerType
- amountNoVat
- amountVat
- vat
- vatPercent
- total
- totalUnpaid
- totalPaid
- rounding
- documentNumber
- paymentStatus
- documentDueDate
- documentIssuingDate
- currency
- currencyCode
- ownerId
- ownerBpName
- ownerBpBriefName
- docClassId
- docClassCodeName
- docClassDomain
- docClassArea
- dataSourceId
- dataSourceCodeName
- domainId
- domainCodeName
- documentTypeId
- documentTypeName
- documentTypeSelfBilling
- documentTypeDtsSelectorId
- documentTypeDtsSelectorCodeName
Errors:
- START_DATE_AND_END_DATE_MUST_BE_SENT - Start date and end date must be sent
- START_DATE_IS_LESS_THAN_END_DATE - Start date is less than end date
- NOT_AUTHORIZED - Not Authorized
- NOT_AUTHENTICATED - Not Authenticated
- INT_APP_ERROR - Internal server error
Request
Path parameters
Business partner ID
Query parameters
Start date for the period filter (YYYY-MM-DD). Must be sent together with endDate
2026-01-01End date for the period filter (YYYY-MM-DD). Must be sent together with startDate
2026-02-01Page number for pagination
1Page size for pagination
10Paging options as page_num,page_size (value only; e.g. 1,10). Use with page_number and page_size or alone.
1,10Sort options as comma-separated attributes; prefix with - for DESC (value only; e.g. -insertDt,filename).
-insertDt,filename- Quick-search term matched against the operation Searchable attributes
q=termoreq(q)=term- Searchable field names use camelCase (listed per operation)
This endpoint accepts query parameters for search as described in the URL Filtering Guidelines.
Search criteria can be specified using the following operators and attributes:
Available Operators:
- isnull, isnotnull
- isempty, isnotempty
- eq, neq
- startswith, endswith, contains, doesnotcontain
- lt, lte, gt, gte
- in, notin
- between, notbetween
Special Cases:
- For operators [isnull, isnotnull, isempty, isnotempty]: field value can be omitted.
- For operators [in, notin]: field value must be a comma-separated list. Example:
in(status)=active,pending,deleted - For operators [between, notbetween]: field value must be two comma-separated values. Example:
between(statusDt)=2024-01-01,2024-12-31
Default Behavior:
- If operator is omitted, 'eq' is assumed
- Example: fieldName=fieldValue is equivalent to eq(fieldName)=fieldValue
Example Usage:
- eq(status)=active
- startswith(filename)=invoice
Request example
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <access_token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());var options = new RestClientOptions("")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets", Method.Get);
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer <access_token>");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);curl -L -X GET "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets" \
-H "Accept: application/json" \
-H "Authorization: Bearer <access_token>"var headers = {
'Accept': 'application/json',
'Authorization': 'Bearer <access_token>'
};
var dio = Dio();
var response = await dio.request(
'https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets',
options: Options(
method: 'GET',
headers: headers,
),
);
if (response.statusCode == 200) {
print(json.encode(response.data));
}
else {
print(response.statusMessage);
}var headers = {
'Accept': 'application/json',
'Authorization': 'Bearer <access_token>'
};
var request = http.Request('GET', Uri.parse('https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets'));
request.headers.addAll(headers);
http.StreamedResponse response = await request.send();
if (response.statusCode == 200) {
print(await response.stream.bytesToString());
}
else {
print(response.reasonPhrase);
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets"
method := "GET"
client := &http.Client{}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Bearer <access_token>")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}GET /finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets HTTP/1.1
Host: api-cpaas.sms.es
Accept: application/json
Authorization: Bearer <access_token>OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets")
.method("GET", null)
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Bearer <access_token>")
.build();
Response response = client.newCall(request).execute();Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.get("https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets")
.header("Accept", "application/json")
.header("Authorization", "Bearer <access_token>")
.asString();const myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Authorization", "Bearer <access_token>");
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch("https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));var settings = {
"url": "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets",
"method": "GET",
"timeout": 0,
"headers": {
"Accept": "application/json",
"Authorization": "Bearer <access_token>"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets");
xhr.setRequestHeader("Accept", "application/json");
xhr.setRequestHeader("Authorization", "Bearer <access_token>");
xhr.send();val client = OkHttpClient()
val request = Request.Builder()
.url("https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets")
.get()
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Bearer <access_token>")
.build()
val response = client.newCall(request).execute()#include <stdio.h>
#include <curl/curl.h>
int main(void) {
CURL *curl = curl_easy_init();
if (curl) {
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(curl, CURLOPT_URL, "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "Authorization: Bearer <access_token>");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
CURLcode res = curl_easy_perform(curl);
curl_slist_free_all(headers);
curl_easy_cleanup(curl);
}
return 0;
}const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <access_token>'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});const https = require('follow-redirects').https;
const fs = require('fs');
let options = {
'method': 'GET',
'hostname': 'api-cpaas.sms.es',
'path': '/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets',
'headers': {
'Accept': 'application/json',
'Authorization': 'Bearer <access_token>'
},
'maxRedirects': 20
};
const req = https.request(options, function (res) {
let chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
let body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();#import <Foundation/Foundation.h>
dispatch_semaphore_t sema = dispatch_semaphore_create(0);
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
NSDictionary *headers = @{
@"Accept": @"application/json",
@"Authorization": @"Bearer <access_token>"
};
[request setAllHTTPHeaderFields:headers];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
dispatch_semaphore_signal(sema);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSError *parseError = nil;
NSDictionary *responseDictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:&parseError];
NSLog(@"%@",responseDictionary);
dispatch_semaphore_signal(sema);
}
}];
[dataTask resume];
dispatch_semaphore_wait(sema, DISPATCH_TIME_FOREVER);open Lwt
open Cohttp
open Cohttp_lwt_unix
let reqBody =
let uri = Uri.of_string "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets" in
let headers = Header.init ()
|> fun h -> Header.add h "Accept" "application/json"
|> fun h -> Header.add h "Authorization" "Bearer <access_token>"
in
Client.call ~headers `GET uri >>= fun (_resp, body) ->
body |> Cohttp_lwt.Body.to_string >|= fun body -> body
let () =
let respBody = Lwt_main.run reqBody in
print_endline (respBody)<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Accept: application/json',
'Authorization: Bearer <access_token>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
<?php
$client = new Client();
$headers = [
'Accept' => 'application/json',
'Authorization' => 'Bearer <access_token>'
];
$request = new Request('GET', 'https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Accept", "application/json")
$headers.Add("Authorization", "Bearer <access_token>")
$response = Invoke-RestMethod "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets" -Method 'GET' -Headers $headers
$response | ConvertTo-Jsonimport requests
import json
url = "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets"
payload = {}
headers = {
"Accept": "application/json",
"Authorization": "Bearer <access_token>"
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)import http.client
import json
conn = http.client.HTTPSConnection("api-cpaas.sms.es")
payload = ''
headers = {
"Accept": "application/json",
"Authorization": "Bearer <access_token>"
}
conn.request("GET", "/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))library(httr)
headers = c(
'Accept' = 'application/json',
'Authorization' = 'Bearer <access_token>'
)
res <- VERB("GET", url = "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets", add_headers(headers))
cat(content(res, 'text'))require "uri"
require "json"
require "net/http"
url = URI("https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
request["Authorization"] = "Bearer <access_token>"
response = https.request(request)
puts response.read_body
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = reqwest::Client::builder()
.build()?;
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("Accept", "application/json".parse()?);
headers.insert("Authorization", "Bearer <access_token>".parse()?);
let request = client.request(reqwest::Method::from_bytes(b"GET")?, "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets")
.headers(headers);
let response = request.send().await?;
let body = response.text().await?;
println!("{}", body);
Ok(())
}http --follow --timeout 3600 GET "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets" \
'Accept':'application/json' \
'Authorization':'Bearer <access_token>'wget --no-check-certificate --quiet \
--method GET \
--timeout=0 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <access_token>' \
'https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets'var request = URLRequest(url: URL(string: "https://api-cpaas.sms.es/finance/sit/v1/balances/biz-partners/customers/{bizPartnerId}/sheets")!,timeoutInterval: Double.infinity)
request.addValue("application/json", forHTTPHeaderField: "Accept")
request.addValue("Bearer <access_token>", forHTTPHeaderField: "Authorization")
request.httpMethod = "GET"
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}
task.resume()Responses
- 200
- 400
- 401
- 500
List of balance sheets (per document) for the customer
Show child attributes
no, yesShow child attributes
Show child attributes
{
"data": [
{
"amountNoVat": 100.5,
"amountVat": 0,
"bizPartnerBriefName": "Customer",
"bizPartnerId": 1061,
"bizPartnerName": "Customer Ltd",
"bizPartnerType": "CUSTOMER",
"currency": 756,
"currencyCode": "CHF",
"dataSourceCodeName": "POSTPAID",
"dataSourceId": 1,
"docClassArea": "sales",
"docClassCodeName": "CUSTOMER_INVOICE",
"docClassDomain": "sales",
"docClassId": 1,
"documentDate": "2026-01-15",
"documentDueDate": "2026-02-15",
"documentId": 6065,
"documentIssuingDate": "2026-01-15",
"documentNumber": "INV-2026-001",
"documentTypeDtsSelectorCodeName": "",
"documentTypeDtsSelectorId": 0,
"documentTypeId": 1,
"documentTypeName": "Invoice",
"documentTypeSelfBilling": "no",
"documentUuid": "a5d6baa8-4027-fab2-80a4-42005a7a4767",
"domainCodeName": "DOM1",
"domainId": 1,
"instanceId": 3000003,
"ownerBpBriefName": "Owner",
"ownerBpName": "Owner BP",
"ownerId": 3000001,
"paymentStatus": "open",
"rounding": 0,
"total": 100.5,
"totalPaid": 0,
"totalUnpaid": 100.5,
"vat": 0,
"vatPercent": 0
}
],
"meta": {
"pagination": {
"count": 1,
"currentPage": 1,
"perPage": 10,
"total": 1,
"totalPages": 1
}
}
}Bad Request
Show child attributes
Machine-readable error code
Optional structured error details (e.g. validation errors)
Show child attributes
Human-readable item error description
Machine-readable item error code
Value that failed validation (if applicable)
{}Human-readable error message
{
"error": {
"code": "START_DATE_AND_END_DATE_MUST_BE_SENT",
"message": "Start date and end date must be sent"
}
}Not Authorized, Not Authenticated
Show child attributes
Machine-readable error code
Optional structured error details (e.g. validation errors)
Show child attributes
Human-readable item error description
Machine-readable item error code
Value that failed validation (if applicable)
{}Human-readable error message
{
"error": {
"code": "NOT_AUTHORIZED",
"message": "Not authorized"
}
}Internal Server Error
Show child attributes
Machine-readable error code
Optional structured error details (e.g. validation errors)
Show child attributes
Human-readable item error description
Machine-readable item error code
Value that failed validation (if applicable)
{}Human-readable error message
{
"error": {
"code": "INT_APP_ERROR",
"message": "Unexpected internal error"
}
}