PayData API
Guide
This API allows PayData partners to set up webhooks.
Definition of terms
PayData API
PayData API is a cloud service with a suite of interfaces to various payment providers, such as Amazon, PayPal, Klarna etc. The interface portfolio of PayData offers a uniform access to detailed transactions data from all the connected providers without the need to implement a separate interface for each provider.
Partner
The developers of a software and/or the software development company that integrates this API.
Partner software
A software system that uses PayData API functionality to get transactions from connected payment providers.
Webhooks
Webhooks allow partners to subscribe to events in PayData. When an events occurs, PayData sends an HTTP POST notification to the callback URL configured for the webhook.
Changelog
Version 1.1.1 (preview) (05.02.2025)
- Breaking changes:
POST /webhooks/test-account-type-eventsendpoint removed, usePOST /testevents/accounttypeupdatedentpoint instead.POST /webhooks/test-account-eventsendpoint removed, usePOST /testevents/accountcreated,POST /testevents/accountupdatedandPOST /testevents/accountdeletedentpoints instead.POST /webhooks/test-import-eventsendpoint removed, usePOST /testevents/transactionsimportedentpoint instead.POST /webhooks/test-eventsendpoint removed, useTestEventscontroller instead.
- Add
TestEventscontroller with the following endpoints:POST /testevents/accounttypeupdated- to send a test AccountTypeUpdated notification to test theAccountTypeUpdatedeventPOST /testevents/accountcreated- to send a test AccountCreated notification to test theAccountCreatedeventPOST /testevents/accountupdated- to send a test AccountUpdated notification to test theAccountUpdatedeventPOST /testevents/accountdeleted- to send a test AccountDeleted notification to test theAccountDeletedeventPOST /testevents/transactionsimported- to send a test TransactionsImported notification to test theTransactionsImportedevent
Version 1.1.0 (preview) (11.12.2024)
- Add Notifications for these event types:
AccountTypeUpdated- account type updated (provides information about the current state of the corresponding PSP)
- Add Webhooks controller endpoints (preview):
- POST /webhooks/test-account-type-events - to send a test
AccountTypeUpdatednotification - POST /webhooks/test-account-events - to send a test
AccountCreated,AccountUpdatedorAccountDeletednotification - POST /webhooks/test-import-events - to send a test
TransactionsImportednotification
- POST /webhooks/test-account-type-events - to send a test
Version 1.0.4 (preview) (05.11.2024)
- Breaking change:
TransactionsImportErrorevent is not triggered any more,TransactionsImportedevent is trigered instead. - Breaking change:
AccountErrorevent is not triggered any more,AccountUpdatedevent is trigered instead. - Add Notifications for these event types:
AccountUpdated- account updatedAccountDeleted- account deleted
- Add
errorsandwarningsto the account, report and data import objects.
Version 1.0.3 (preview) (26.08.2024)
- Add Notifications for these event types:
TransactionsImportError- an error occurred while importing transactionsAccountError- a problem with the account is detected, i.e. credentials validation error
Version 1.0.2 (preview) (13.08.2024)
- Breaking change:
ReportImportedevent is not triggered any more,TransactionsImportedevent is trigered instead. - Add report info to notifications of the
TransactionsImportedevent type. This event is triggered when transactions are successfully imported with or without a report. - Add Notifications for these event types:
AccountCreated- account successfully created
Version 1.0.1 (preview) (26.07.2024)
- Add Notifications for these event types:
TransactionsImported- transactions successfully imported
- Add support for
TransactionsImportedevent to the test webhookCreateTestEventendpoint
Version 1.0.0 (preview) (01.07.2024)
- Add Webhooks controller with endpoints (preview):
- POST /webhooks - to create a webhook
- GET /webhooks - to get a list of webhooks
- GET /webhooks/{id} - to get a single webhook
- PUT /webhooks/{id} - to update a webhook
- PATCH /webhooks/{id} - to patch a webhook
- DELETE /webhooks/{id} - to delete a webhook
- POST /webhooks/test-events - to test a webhook
- Add Notifications for these event types:
ReportImported- a new report with transactions successfully received and imported
Rate limiting
The following global rate limiting policies apply to all requests, sent to the API from a partner or from a user:
| Period (seconds) | Maximum number of requests |
|---|---|
| 60 | 100 |
Additional rate limiting policies may apply to some methods and are described for each particular method.
Authentication
- HTTP: Bearer Auth
- HTTP: Bearer Auth
- HTTP: Bearer Auth
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |
Bearer format: | JWT |
Partners are authenticated by the PayData API with JWT bearer tokens. JWT tokens allow partners to change their settings, create and manage other "child" partners and manage users. Initially a partner gets a JWT token from the support. After that the partner can manage their tokens depending on permissions.
Partner tokens with a lifetime of more than one hour get an ID, that can be used later to revoke the tokens if necessary.
All calls to the PayData API from the partner should contain a JWT bearer token in the HTTP
header Authorization.
JWT tokens, used by partners, should not be shared with users.
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |
Bearer format: | JWT |
Users similar to partners are authenticated by the PayData API with JWT bearer tokens.
JWT tokens allow users to manage accounts and read transactions.
When a partner creates a user in with the CreateUser method,
the HTTP response contains a JWT bearer token generated for the user.
Subsequent calls from that user should contain that token in the HTTP header Authorization.
The value of the header should be Bearer plus whitespace character plus the token.
The validity time of the token in seconds is specified in the userTokenExpirySeconds setting of the partner.
After that time the partner should use the CreateUserToken method to obtain a new valid token for the user.
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |
Bearer format: | JWT |