Skip to main content

Sandbox for International Credit Transfers

Simulate an incoming International Credit Transfer​

Use the Testing API to simulate receiving an International Credit Transfer.

Refer to the standard flow for an incoming International Credit Transfer if needed.

Step 1: Call the mutation​

  1. Call the simulateIncomingInternationalCreditTransferReception mutation.
  2. Enter the amount, including your value and currency=EUR.
  3. Enter a Swan IBAN for the creditorIban.
  4. Enter a placeholder, non-euro based IBAN for debtorIban.
  5. Enter any placeholder information for the rest of the fields.
  6. Click Run.

Step 2: Swan API adds information​

After you click Run, the Swan API adds the following information to your simulation automatically:

  1. Adds a fee from intermediary bank A between €1-5.
  2. Randomly chooses a currency for the instructed amount.
  3. Applies a 1.1234 exchange rate.
  4. Adds a fee from intermediary bank B of 10 in the target currency chosen in #2.

Mutation​

🔎 Open the mutation in Testing API Explorer

mutation SimulateIncomingInternational {
simulateIncomingInternationalCreditTransferReception(
input: {
amount: { value: "100", currency: "EUR" }
creditorIban: "FR7699999001001383752268961"
creditorName: "Malika Ngoma"
debtorIban: "MA57394661954866265944494413"
debtorName: "Leila Tazi"
reference: "Reference"
label: "Custom label"
}
) {
... on AccountNotFoundRejection {
id
message
}
... on SimulateIncomingInternationalCreditTransferSuccessPayload {
__typename
transactionId
}
}
}

Payload​

If successful, the response contains the simulated transactionId.

{
"data": {
"simulateIncomingInternationalCreditTransferReception": {
"__typename": "SimulateIncomingInternationalCreditTransferSuccessPayload",
"transactionId": "bofci_bda2f35f262fe5ef6daed99ae6ed21c2"
}
}
}