List balance sheets for a customer (per document)

GET/balances/biz-partners/customers/{bizPartnerId}/sheets

Returns 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
Base URL
https://api-cpaas.sms.es/finance/sit/v1
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Path parameters

bizPartnerIdintegerrequired

Business partner ID

Query parameters

startDatestring (date)

Start date for the period filter (YYYY-MM-DD). Must be sent together with endDate

Example: 2026-01-01
endDatestring (date)

End date for the period filter (YYYY-MM-DD). Must be sent together with startDate

Example: 2026-02-01
page_numberinteger

Page number for pagination

Default: 1
page_sizeinteger

Page size for pagination

Default: 10
pagingstring

Paging options as page_num,page_size (value only; e.g. 1,10). Use with page_number and page_size or alone.

Example: 1,10
sortstring

Sort options as comma-separated attributes; prefix with - for DESC (value only; e.g. -insertDt,filename).

Example: -insertDt,filename
qstring
  • Quick-search term matched against the operation Searchable attributes
  • q=term or eq(q)=term
  • Searchable field names use camelCase (listed per operation)
operator(fieldName)string

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:

  1. For operators [isnull, isnotnull, isempty, isnotempty]: field value can be omitted.
  2. For operators [in, notin]: field value must be a comma-separated list. Example: in(status)=active,pending,deleted
  3. 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

cURL · cURL
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>"

Responses

List of balance sheets (per document) for the customer

application/json
dataobject[]required
Show child attributes
amountNoVatnumber (float)
amountVatnumber (float)
bizPartnerBriefNamestring
bizPartnerIdinteger
bizPartnerNamestring
bizPartnerTypestring
currencyinteger
currencyCodestring
dataSourceCodeNamestring
dataSourceIdinteger
docClassAreastring
docClassCodeNamestring
docClassDomainstring
docClassIdinteger
documentDatestring (date)
documentDueDatestring (date)
documentIdinteger
documentIssuingDatestring (date)
documentNumberstring
documentTypeDtsSelectorCodeNamestring
documentTypeDtsSelectorIdinteger
documentTypeIdinteger
documentTypeNamestring
documentTypeSelfBillingstring
Possible values: no, yes
documentUuidstring (uuid)
domainCodeNamestring
domainIdinteger
instanceIdinteger
ownerBpBriefNamestring
ownerBpNamestring
ownerIdinteger
paymentStatusstring
roundingnumber (float)
totalnumber (float)
totalPaidnumber (float)
totalUnpaidnumber (float)
vatnumber (float)
vatPercentnumber (float)
metaobjectrequired
Show child attributes
paginationobjectrequired
Show child attributes
countintegerrequired
currentPageintegerrequired
perPageintegerrequired
totalintegerrequired
totalPagesintegerrequired
Example response
{
  "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
    }
  }
}