List of payment types

GET/payment-types

Returns the list of payment types for given sorting, filtering and pagination parameters.

Audit event:

  • payment.type.list

Privilege (one of):

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

Sortable fields:

  • id
  • name
  • status
  • statusDt

Filter fields:

  • id
  • name
  • status
  • statusDt

Searchable attributes:

  • name
  • status

Errors:

  • PAYMENT_TYPE_NOTFOUND - Payment type 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

Query parameters

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
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
qstring
  • Quick-search term matched against the operation Searchable attributes
  • q=term or eq(q)=term
  • Searchable field names use camelCase (listed per operation)
sortstring

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

Example: -insertDt,filename

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/finance/sit/v1/payment-types" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

List of Payment Types

application/json
dataobject[]required
Show child attributes
bankAccountstring

Indicates if bank account is required for this payment type

Possible values: yes, no
idinteger

Payment type id

instanceIdinteger

Instance id

namestring

Payment type name

statusstring

Payment type status

Possible values: active, inactive
statusDtstring (date-time)

Status change date

typestring

Payment type category (system types cannot be modified or deleted)

Possible values: system, custom
metaobjectrequired
Show child attributes
paginationobjectrequired
Show child attributes
countintegerrequired
currentPageintegerrequired
perPageintegerrequired
totalintegerrequired
totalPagesintegerrequired
Example response
{
  "data": [
    {
      "id": 1,
      "name": "Payment Type 1",
      "status": "active",
      "statusDt": "2021-01-01T00:00:00Z"
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "currentPage": 1,
      "perPage": 1,
      "total": 1,
      "totalPages": 1
    }
  }
}