Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/paytrail:paytrail-settlements-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
version: 2.0.0
title: Payment Settlements API
description: Paytrail Payment API
contact:
name: Paytrail
url: https://github.com/paytrail/api-documentation/issues
servers:
- url: https://services.paytrail.com
tags:
- name: settlements
description: List settlement IDs
paths:
/settlements:
get:
tags:
- settlements
summary: List settlement IDs
description: Returns settlement IDs
operationId: listSettlementIds
parameters:
- name: startDate
in: query
description: Filter out settlements created before given date.
example: '2019-01-01'
required: false
style: form
schema:
type: string
format: date
- name: endDate
in: query
description: Filter out settlements created after given date.
example: '2019-01-01'
required: false
style: form
schema:
type: string
format: date
- name: bankReference
in: query
description: Only include settlements with the given bank reference
example: 1234567890-1111
required: false
style: form
schema:
type: string
maxLength: 20
- name: limit
in: query
description: Limit the number of settlement IDs returned
example: '1'
required: false
style: form
schema:
type: string
format: integer
- name: submerchant
in: header
description: Get submerchant's payment report
example: '695874'
required: false
style: simple
schema:
type: string
format: integer
- name: checkout-account
in: header
description: Merchant ID
example: 375917
schema:
type: integer
format: int32
- name: checkout-algorithm
in: header
description: HMAC algorithm
example: sha512
schema:
type: string
enum:
- sha256
- sha512
- name: checkout-method
in: header
description: HTTP method of the request
example: POST
schema:
type: string
enum:
- GET
- POST
- name: checkout-timestamp
in: header
description: Current timestamp in ISO 8601 format
example: '2018-08-08T10:10:59Z'
schema:
type: string
format: date-time
- name: checkout-nonce
in: header
description: Unique random identifier
example: 39da40b8-5fb0-499c-869d-35e575b9a6cd
schema:
type: string
- name: signature
in: header
description: HMAC signature calculated over the request headers and payload
schema:
type: string
responses:
'200':
description: List of settlement IDs
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/SettlementIdItem'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Error'
components:
responses:
Unauthorized:
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Request did not pass input validation
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: The specified resource was not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Error:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
required:
- status
- message
properties:
status:
type: string
enum:
- error
message:
type: string
description: Error description
meta:
type: array
items:
type: string
description: Possible detailed error descriptions
SettlementIdItem:
type: object
description: Settlement ID
required:
- id
- createdAt
- settledAt
properties:
id:
type: integer
format: int64
example: 123456
description: ID of a settlement
createdAt:
type: string
format: datetime
example: '2019-01-01T00:00:00+02:00'
description: When the settlement was formed
settledAt:
type: string
format: datetime
example: '2019-01-02T04:00:00+02:00'
description: When the settlement was paid