Get single clearing record for invoice

GET/invoices/{invoiceId}/clearingrecords/{recordId}

Returns the invoice clearing record with the given recordId that belongs to the invoice identified by invoiceId.

Audit event:

  • invoice.clearing.record.get

Privilege (one of):

  • finance-invoices.view
  • finance-invoices-own.view

Errors:

  • INVOICE_NOTFOUND - Invoice not found
  • COLLECTION_MEMBER_CLEARING_RECORD_NOT_ALLOWED - Invoice is collection member.Collection members ar not allowed to have clearing records
  • INVOICE_CLEARING_RECORD_NOTFOUND - Invoice clearing record not found
  • INVOICE_CLEARING_NOTFOUND - Invoice clearing not found
  • NOT_AUTHORIZED - Not authorized
  • NOT_AUTHENTICATED - Not authenticated
  • INT_APP_ERROR - Unexpected internal 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

invoiceIdintegerrequired

Invoice ID

recordIdintegerrequired

Invoice clearing record ID

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}/clearingrecords/{recordId}" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

Clearing record returned successfully

application/json
amountIncrementnumber (float)
bankAccountIbanstring
bankAccountIdinteger
bankAccountNamestring
bankAccountNumberstring
bankAccountSwiftBicstring
clearingIdinteger
clearingTypeCodeNamestring
clearingTypeIdinteger
commentstring
idinteger
paidAmountnumber (float)
paymentReferencestring
paymentTypeIdinteger
paymentTypeNamestring
recordDatestring (date)
revokeCommentstring
revokeUserIdstring
revokeUserNamestring
statusstring

active or canceled

statusDatestring | null (date-time)
Example response
{
  "amountIncrement": 0,
  "bankAccountIban": "CH9300762011623852957",
  "bankAccountId": 1,
  "bankAccountName": "Main account",
  "bankAccountNumber": "123456",
  "bankAccountSwiftBic": "CRESCHZZ",
  "clearingId": 100,
  "clearingTypeCodeName": "PAYMENT",
  "clearingTypeId": 2,
  "comment": "Bank transfer",
  "id": 1,
  "paidAmount": 100.5,
  "paymentReference": "REF-001",
  "paymentTypeId": 1,
  "paymentTypeName": "Bank transfer",
  "recordDate": "2026-01-15",
  "revokeComment": "",
  "revokeUserId": "",
  "revokeUserName": "",
  "status": "active",
  "statusDate": "2026-01-15T10:00:00.000Z"
}