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

Work with Swan tools

Consider this example that uses several tools to create a new Sandbox user, validate their identity, then receive and return a SEPA Credit Transfer.

Step 1: Dashboard → Add Sandbox user

This tutorial is for demonstrative purposes; you can also call the createSandboxUser mutation in the Testing API to add a Sandbox user.

  1. Go to Dashboard > Developers > Sandbox users.
  2. Click + New to add a new Sandbox user.

Image of Event Simulator SEPA Credit Transfers section

  1. Choose whether to activate auto consent for your new Sandbox user.
  2. Enter your Sandbox user's information.
  3. Click Save.

Image of Event Simulator SEPA Credit Transfers section

Step 2: Event Simulator → Validate Sandbox user's identity

Your new Sandbox user is created with the identification status Uninitiated. You need to validate their identity before they can perform operations.

  1. Click to copy the Sandbox user ID.

Image of Sandbox users with user ID called out

  1. Go to Dashboard > Developers > Event Simulator
  2. Open Sandbox users.

Image of Event Simulator SEPA Credit Transfers section

  1. Enter the Sandbox user ID, choose an identification process, and choose a status for each level you see.
  2. Click Simulate.
  3. The status changes to Success and a new identification ID appears for the Sandbox user.

You can now perform operations with this Sandbox user.

Image of Event Simulator SEPA Credit Transfers section

Step 3: Testing API → Simulate receiving a transfer

  1. Call the simulateIncomingSepaCreditTransferReception mutation to simulate receiving an incoming SEPA Credit Transfer.
  2. Make sure the creditor IBAN belongs to one of your Swan accounts.
  3. Copy the transaction ID provided in the payload.
Mutation
mutation SimulateReceivingTransfer {
simulateIncomingSepaCreditTransferReception(
input: {
amount: { value: "100", currency: "EUR" }
creditorIban: "$SWAN_ACCOUNT_IBAN"
creditorName: "Malika Ngoma"
debtorIban: "FR2730003000706315734174B93"
debtorName: "Jules Fleury"
creditorAddress: {
addressLine1: "123 avenue de Paris"
city: "Paris"
postalCode: "75000"
country: "FRA"
}
debtorAddress: {
addressLine1: "876 avenue de Toulouse"
city: "Paris"
country: "FRA"
postalCode: "75000"
}
endToEndId: "End-to-end reference"
label: "Label to display"
}
) {
... on SimulateIncomingSepaCreditTransferReceptionSuccessPayload {
transactionId
}
... on ForbiddenRejection {
message
__typename
}
}
}

Payload
{
"data": {
"simulateIncomingSepaCreditTransferReception": {
"transactionId": "$YOUR_TRANSACTION_ID"
}
}
}

Step 4: Event Simulator → Simulate returning the transfer

  1. Go to Developers > Event Simulator > SEPA Credit Transfers.

Image of Dashboard Event Simulator page

  1. Open the Return an Incoming Transfer tab.
  2. Enter the transaction ID collected in step 3.3.
  3. Click Simulate.
  4. The status changes to Success and a new transaction ID appears for the return transaction.

Image of Event Simulator SEPA Credit Transfers section