Paytrail Providers API
The providers API from Paytrail — 2 operation(s) for providers.
The providers API from Paytrail — 2 operation(s) for providers.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/paytrail:paytrail-providers-api"
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.
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: 3.2.0
info:
version: 2.0.0
title: Payment Providers API
description: Paytrail Payment API
contact:
name: Paytrail
url: https://github.com/paytrail/api-documentation/issues
servers:
- url: https://services.paytrail.com
tags:
- name: Providers
paths:
/merchants/payment-providers:
get:
tags:
- Providers
summary: List merchant payment methods
description: 'Returns the payment methods available for merchant without creating
a new payment to the system. Useful for displaying payment provider
icons during different phases of checkout before finally actually
creating the payment request when customer decides to pay'
operationId: getPaymentProviders
parameters:
- 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: GET
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
- name: amount
in: query
description: 'Optional amount in minor unit (eg. EUR cents) for the payment providers. Some providers have minimum
or maximum amounts that can be purchased.
'
example: 500
required: false
style: form
schema:
type: integer
format: int32
- name: groups
in: query
description: Comma separated list of payment method groups to include in the reply.
schema:
type: array
items:
type: string
enum:
- mobile
- bank
- creditcard
- credit
- other
explode: false
style: form
responses:
'200':
description: Payment methods available
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/BasePaymentMethodProvider'
'401':
$ref: '#/components/responses/Unauthorized'
default:
$ref: '#/components/responses/Error'
/merchants/grouped-payment-providers:
get:
tags:
- Providers
summary: List grouped merchant payment methods
description: 'Similar to the /merchants/payment-providers, but in addition of a flat
list of providers, it returns payment group data containing localized
names, icon URLs and grouped providers, and a localized text
with a link to the terms of payment.'
operationId: getGroupedPaymentProviders
parameters:
- 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: GET
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
- name: amount
in: query
description: 'Optional amount in minor unit (eg. EUR cents) for the payment providers. Some providers have minimum
or maximum amounts that can be purchased.
'
example: 500
required: false
style: form
schema:
type: integer
format: int32
- name: groups
in: query
description: Comma separated list of payment method groups to include in the reply.
schema:
type: array
items:
type: string
enum:
- mobile
- bank
- creditcard
- credit
- other
explode: false
style: form
- name: language
in: query
description: 'Language code of the language the terms of payment and the payment group names will be localized in.
Defaults to FI if left undefined
'
required: false
schema:
type: string
enum:
- FI
- SV
- EN
style: form
responses:
'200':
description: Payment methods available
content:
application/json:
schema:
$ref: '#/components/schemas/GroupedPaymentProvidersResponse'
'401':
$ref: '#/components/responses/Unauthorized'
default:
$ref: '#/components/responses/Error'
components:
schemas:
BasePaymentMethodProvider:
type: object
required:
- id
- name
- icon
- group
- svg
properties:
id:
type: string
example: osuuspankki
description: ID of the provider
name:
type: string
example: OP
description: Display name of the payment method
svg:
type: string
format: url
example: https://static.paytrail.com/static/img/payment-methods/op-logo.svg
description: URL to payment method SVG icon (recommended to be used instead if PNG)
icon:
type: string
format: url
example: https://static.paytrail.com/static/img/op_140x75.png
description: URL to payment method PNG icon
group:
type: string
example: bank
enum:
- mobile
- bank
- creditcard
- credit
PaymentMethodGroupDataWithProviders:
allOf:
- $ref: '#/components/schemas/PaymentMethodGroupData'
- description: Localized name, icon and providers data for single payment method group
- required:
- id
- name
- icon
- svg
- providers
properties:
providers:
type: array
items:
$ref: '#/components/schemas/PaymentMethodProvider'
GroupedPaymentProvidersResponse:
description: List grouped providers response body
required:
- terms
- groups
- providers
properties:
terms:
type: string
description: Localized text with a link to payment terms
example: By continuing with your payment, you agree to our <a href="https://www.checkout.fi/ehdot-ja-sopimukset/maksuehdot" target="_blank">payment terms & conditions</a>
groups:
type: array
description: Payment method group data for all of groups that are included in the query
items:
$ref: '#/components/schemas/PaymentMethodGroupDataWithProviders'
providers:
type: array
description: A flat list of payment method providers
items:
$ref: '#/components/schemas/PaymentMethodProvider'
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
PaymentMethodProvider:
allOf:
- $ref: '#/components/schemas/BasePaymentMethodProvider'
- description: Each payment method provider object describes an HTML form. The payment method parameters need to be posted to defined url in application/x-www-form-urlencoded format.
- required:
- name
- icon
- url
- group
- svg
- parameters
properties:
url:
type: string
format: url
example: https://services.paytrail.com/payments/93ee8d18-10db-410b-92ac-7d6e49369ce3/osuuspankki/redirect
description: Form action url
parameters:
type: array
items:
type: object
required:
- name
- value
properties:
name:
type: string
example: VALUUTTALAJI
description: Name of the form input
value:
type: string
example: EUR
description: Value of the form input
PaymentMethodGroupData:
type: object
description: ID, name and icon URLs for a payment method group
required:
- id
- name
- icon
- svg
properties:
id:
type: string
example: bank
description: ID of the group
enum:
- mobile
- bank
- creditcard
- credit
name:
type: string
example: Bank payment methods
description: Localized name of the group
icon:
type: string
format: url
example: https://static.paytrail.com/static/img/payment-groups/bank.png
description: URL to the group PNG icon
svg:
type: string
format: url
example: https://static.paytrail.com/static/img/payment-groups/bank.svg
description: URL to the group SVG icon (recommended to be used instead if PNG)
responses:
Unauthorized:
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Error:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'