Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

Skip to main content

Testing API

Overview

Swan's testing, or simulation, API lets you trigger events that happen outside of Swan. Swan's API reacts as it would in real life, displaying the right information at the right time.

When using the Testing API and your Sandbox environment, you can perform end-to-end tests without the user's intervention and without connecting to the Dashboard.

Testing API mutations function in the same way as the Live API, except they don't trigger events in real life—only in Sandbox. You'll need a user access token to use most Testing API mutations, though sometimes a project access token is enough.

Go to API Explorer > Testing API to see all available mutations.

Image of Testing API

Testing API & Event Simulator

The Testing API and the Event Simulator are essentially the same tool with two access points.

Though you'll test some actions from the API and others with the simulator, both share the goal of triggering events that happen outside of Swan.

Example mutations

The following links lead to examples to personalize and test with the Testing API Explorer. As a reminder, this list isn't exhaustive.

  1. SEPA Credit Transfers
    1. Simulate receiving an incoming SEPA Credit Transfer
    2. Simulate an accepted recall of an Incoming SEPA Credit Transfer
    3. Simulate booking an outgoing SEPA Credit Transfer
  2. SEPA Direct Debit
    1. Simulate the reception of an outgoing SEPA Direct Debit
    2. Simulate reversing an outgoing SEPA Direct Debit
    3. Simulate releasing reserved balance from a SEPA Direct Debit
  3. Card payments
    1. Simulate creating an authorization request from a merchant
    2. Simulate reversing a card debit
    3. Simulate crediting a card
  4. Billing
    1. Simulate generating an invoice
    2. Simulate creating a FeesOut transaction