Audience:
Developers
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
- Call the
simulateIncomingInternationalCreditTransferReceptionmutation. - Enter the amount, including your
valueandcurrency=EUR. - Enter a Swan IBAN for the
creditorIban. - Enter a placeholder, non-euro based IBAN for
debtorIban. - Enter any placeholder information for the rest of the fields.
- Click Run.
Step 2: Swan API adds information
After you click Run, the Swan API adds the following information to your simulation automatically:
- Adds a fee from intermediary bank A between €1-5.
- Randomly chooses a currency for the instructed amount.
- Applies a 1.1234 exchange rate.
- Adds a fee from intermediary bank B of 10 in the target currency chosen in #2.
Mutation
Open in API Explorermutation 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"
}
}
}