Brindlemark Sandbox API · Explanation and how-to guide

Payments

Choose between SCT and SCT Inst, follow a payment through its four statuses, send it exactly once with an idempotency key, and check the IBAN first.

Fictional sandbox. An independent demonstration with fictional data. It isn’t affiliated with or endorsed by Swan or any bank, and it isn’t legal advice.

A payment in the sandbox is a SEPA credit transfer: euros sent from one of your account holders' payment accounts to a creditor's IBAN. This page explains the two schemes and the four statuses, then shows how to send a payment exactly once and how the sandbox checks what you send.

Choose a Scheme: SCT or SCT Inst#

Set scheme in the input: SCT, the default, or SCT_INST.

Aspect SCT: SEPA Credit Transfer SCT_INST: SEPA Instant Credit Transfer
When the money arrives The payer's payment service provider makes sure the amount is credited to the payee's provider's account by the end of the following business day (Directive (EU) 2015/2366, Article 83(1)). The payee's payment service provider makes the amount available on the payee's account within 10 seconds of the payer's provider receiving the order (Regulation (EU) No 260/2012, Article 5a(4)(c), as amended by Regulation (EU) 2024/886).
In the sandbox INITIATED until you call sandboxSettlePayment. The same: the sandbox keeps no time for either scheme.

Three more facts about SCT Inst shape what a product should tell its users:

  • It runs at any hour. The European Payments Council says the services based on the SCT Inst scheme are available 24 hours a day, on all calendar days of the year (EPC, SEPA Instant Credit Transfer).
  • The scheme sets no maximum amount. There is no longer a maximum amount at scheme level, and each payment service provider may set its own limits (EPC). A limit your users meet is your platform's or your provider's, so name it that way, never "the SEPA Instant limit".
  • It costs no more than a standard transfer. A payment service provider's charges for sending or receiving an instant credit transfer may not be higher than its charges for other credit transfers of the same type (Regulation (EU) No 260/2012, Article 5b(1), as amended).

Follow a Payment Through Its Statuses#

The payment lifecycleA payment starts INITIATED, with its amount reserved. When it is sent to the scheme it becomes PENDING. From PENDING it ends in one of two final statuses: BOOKED, when the scheme settles it and the amount is debited, or REJECTED, when it is refused and the amount is released. Each change records a webhook event.initiateCreditTransferINITIATEDAmount reservedsent to the schemePENDINGWaiting for the schemesettledrefusedBOOKEDAmount debitedREJECTEDAmount releasedDouble border: a final status.Each arrow records a webhook event.
Figure 1. The payment lifecycle. In the sandbox, sandboxSettlePayment makes both moves after INITIATED, one after the other.
Status What it means Available balance Booked balance Final
INITIATED Brindlemark accepted the payment. Lower by the amount: it is reserved. Unchanged No
PENDING The payment was sent to the scheme. Unchanged Unchanged No
BOOKED The scheme settled it, and it was debited. Unchanged Lower by the amount Yes
REJECTED It didn't go through. Back up by the amount: the reservation is released. Unchanged Yes

Each change records a payment.status_changed webhook event, and the payment's statusHistory lists every status with its time. A payment never leaves BOOKED or REJECTED.

Send a Transfer#

initiateCreditTransfer takes one input:

Field Rule
accountId A payment account of the sandbox.
amount.value Above zero, with at most two decimals, as a string: 1250, 1250.5 or 1250.50.
amount.currency EUR. SEPA credit transfers are in euros.
creditor.name 1 to 70 characters.
creditor.iban An IBAN of a country the sandbox sends to, with or without spaces. See Check the IBAN Before You Send.
scheme SCT or SCT_INST. SCT if you leave it out.
reference Optional, up to 140 characters: the text the creditor sees.
idempotencyKey 1 to 64 letters, digits, hyphens or underscores, made by you for this payment.

The Quickstart sends an SCT transfer. This one is instant:

Example: Send an instant transfer

mutation Transfer($input: InitiateCreditTransferInput!) {
  initiateCreditTransfer(input: $input) {
    __typename
    ... on InitiateCreditTransferSuccess {
      payment {
        id status scheme
        amount { value currency }
        creditor { name iban }
        account {
          availableBalance { value }
          bookedBalance { value }
        }
      }
    }
    ... on Problem { message }
  }
}

Variables:

{
  "input": {
    "accountId": "acc_0001",
    "scheme": "SCT_INST",
    "amount": {
      "value": "300.00",
      "currency": "EUR"
    },
    "creditor": {
      "name": "Example Packaging SARL",
      "iban": "FR76 3000 6000 0112 3456 7890 189"
    },
    "reference": "Order 7731",
    "idempotencyKey": "0c7f9a12-6e3b-4d58-8f21-b4a9e5d3c701"
  }
}

Response, HTTP 200:

{
  "data": {
    "initiateCreditTransfer": {
      "__typename": "InitiateCreditTransferSuccess",
      "payment": {
        "id": "pay_0002",
        "status": "INITIATED",
        "scheme": "SCT_INST",
        "amount": {
          "value": "300.00",
          "currency": "EUR"
        },
        "creditor": {
          "name": "Example Packaging SARL",
          "iban": "FR7630006000011234567890189"
        },
        "account": {
          "availableBalance": {
            "value": "3450.00"
          },
          "bookedBalance": {
            "value": "3750.00"
          }
        }
      }
    }
  }
}

When a request breaks more than one rule, the answer names the first problem in this order: the fields, then the idempotency key, then the account, the amount, the currency, the IBAN, and last the balance. Errors and Troubleshooting lists every problem.

Send a Payment Once: Idempotency Keys#

A request can fail after it reached the API: the connection drops, a proxy times out, your process restarts. You can't tell whether the payment was made. With an idempotency key, you don't have to: send the same request again, with the same key, and the sandbox returns the payment the first request made.

Example: Send the same transfer again, with the same key

The operation of Example: Send an instant transfer, with these variables:

{
  "input": {
    "accountId": "acc_0001",
    "scheme": "SCT",
    "amount": {
      "value": "1250.00",
      "currency": "EUR"
    },
    "creditor": {
      "name": "Example Flour Mill GmbH",
      "iban": "DE89 3704 0044 0532 0130 00"
    },
    "reference": "Invoice 2026-118",
    "idempotencyKey": "5b0e2d8c-3f41-4a7e-9c62-1d8f7a3b9e10"
  }
}

Response, HTTP 200:

{
  "data": {
    "initiateCreditTransfer": {
      "__typename": "InitiateCreditTransferSuccess",
      "payment": {
        "id": "pay_0001",
        "status": "INITIATED",
        "scheme": "SCT",
        "amount": {
          "value": "1250.00",
          "currency": "EUR"
        },
        "creditor": {
          "name": "Example Flour Mill GmbH",
          "iban": "DE89370400440532013000"
        },
        "account": {
          "availableBalance": {
            "value": "3750.00"
          },
          "bookedBalance": {
            "value": "5000.00"
          }
        }
      }
    }
  }
}

It is the same payment, pay_0001, with the balances the first request left. No second payment was made, and no new event was recorded.

A key belongs to one payment. Sent with a different input, it is refused:

Example: Use the same key for a different transfer

mutation Transfer($input: InitiateCreditTransferInput!) {
  initiateCreditTransfer(input: $input) {
    __typename
    ... on InitiateCreditTransferSuccess {
      payment { id status }
    }
    ... on Problem { message }
    ... on IdempotencyKeyReusedProblem { idempotencyKey paymentId }
  }
}

Variables:

{
  "input": {
    "accountId": "acc_0001",
    "scheme": "SCT",
    "amount": {
      "value": "1300.00",
      "currency": "EUR"
    },
    "creditor": {
      "name": "Example Flour Mill GmbH",
      "iban": "DE89 3704 0044 0532 0130 00"
    },
    "reference": "Invoice 2026-118",
    "idempotencyKey": "5b0e2d8c-3f41-4a7e-9c62-1d8f7a3b9e10"
  }
}

Response, HTTP 200:

{
  "data": {
    "initiateCreditTransfer": {
      "__typename": "IdempotencyKeyReusedProblem",
      "message": "This idempotency key was used for a payment with a different input. Use a new key for a new payment.",
      "idempotencyKey": "5b0e2d8c-3f41-4a7e-9c62-1d8f7a3b9e10",
      "paymentId": "pay_0001"
    }
  }
}

The rules:

  • One key for each payment, made by you before the first attempt, such as a UUID. Keep it with the payment in your own records, so a retry after a restart finds it.
  • The same key and the same input return the same payment, in the status it has now.
  • The same input means the same account, amount, currency, creditor, scheme and reference. Spaces in the IBAN don't count, and neither does the way the amount is written: 1250 and 1250.00 are the same amount.
  • The same key with a different input returns IdempotencyKeyReusedProblem, with the ID of the payment the key made.
  • A refused request doesn't use its key. If a problem stopped the request, fix the input and send it with the same key.
  • The sandbox keeps keys while it runs. A restart forgets them, with everything else.

Settle a Payment in the Sandbox#

sandboxSettlePayment plays the part of the scheme. It moves an INITIATED payment to PENDING, then to the outcome you choose, BOOKED or REJECTED, and records an event for each change. The Quickstart books a payment; this one is rejected:

Example: Settle a transfer as rejected

mutation Settle($input: SandboxSettlePaymentInput!) {
  sandboxSettlePayment(input: $input) {
    __typename
    ... on SandboxSettlePaymentSuccess {
      payment {
        id status rejectionReason
        statusHistory { status at }
        account {
          availableBalance { value }
          bookedBalance { value }
        }
      }
    }
    ... on Problem { message }
    ... on PaymentAlreadySettledProblem { status }
  }
}

Variables:

{
  "input": {
    "paymentId": "pay_0002",
    "outcome": "REJECTED",
    "rejectionReason": "The creditor's payment service provider refused the transfer."
  }
}

Response, HTTP 200:

{
  "data": {
    "sandboxSettlePayment": {
      "__typename": "SandboxSettlePaymentSuccess",
      "payment": {
        "id": "pay_0002",
        "status": "REJECTED",
        "rejectionReason": "The creditor's payment service provider refused the transfer.",
        "statusHistory": [
          {
            "status": "INITIATED",
            "at": "2026-12-01T09:00:17Z"
          },
          {
            "status": "PENDING",
            "at": "2026-12-01T09:00:18Z"
          },
          {
            "status": "REJECTED",
            "at": "2026-12-01T09:00:18Z"
          }
        ],
        "account": {
          "availableBalance": {
            "value": "3750.00"
          },
          "bookedBalance": {
            "value": "3750.00"
          }
        }
      }
    }
  }
}

The rejection released the 300.00 that INITIATED had reserved, so the available balance is back to 3,750.00.

A final status stays final:

Example: Settle a payment that is already booked

The operation of Example: Settle a transfer as rejected, with these variables:

{
  "input": {
    "paymentId": "pay_0001",
    "outcome": "REJECTED"
  }
}

Response, HTTP 200:

{
  "data": {
    "sandboxSettlePayment": {
      "__typename": "PaymentAlreadySettledProblem",
      "message": "The payment is already BOOKED. That status is final.",
      "status": "BOOKED"
    }
  }
}

Check the IBAN Before You Send#

The sandbox checks a creditor's IBAN in four steps, as ISO 13616 defines an IBAN:

  1. Its form: two letters, two check digits, then up to 30 letters or digits. Spaces are removed first.
  2. Its country: one of the eleven the sandbox sends to: Austria, Belgium, Finland, France, Germany, Ireland, Italy, Luxembourg, the Netherlands, Portugal and Spain.
  3. Its length: the length of an IBAN of that country, 22 characters for Germany.
  4. Its check digits: move the first four characters to the end, replace each letter with a number (A is 10, B is 11, up to Z, 35), and divide by 97. The remainder must be 1.

For the documentation example DE89 3704 0044 0532 0130 00, step 4 makes 370400440532013000131489, whose remainder modulo 97 is 1. Change the last digit and the remainder is 28:

Example: Send to an IBAN with wrong check digits

mutation Transfer($input: InitiateCreditTransferInput!) {
  initiateCreditTransfer(input: $input) {
    __typename
    ... on InitiateCreditTransferSuccess {
      payment { id status }
    }
    ... on Problem { message }
    ... on InvalidIbanProblem { iban reason }
  }
}

Variables:

{
  "input": {
    "accountId": "acc_0001",
    "scheme": "SCT",
    "amount": {
      "value": "80.00",
      "currency": "EUR"
    },
    "creditor": {
      "name": "Example Flour Mill GmbH",
      "iban": "DE89 3704 0044 0532 0130 01"
    },
    "idempotencyKey": "c41f0b6e-95d2-4a3c-8e17-5f2b9d0a6c83"
  }
}

Response, HTTP 200:

{
  "data": {
    "initiateCreditTransfer": {
      "__typename": "InvalidIbanProblem",
      "message": "The creditor's IBAN has check digits that don't match the rest of it.",
      "iban": "DE89370400440532013001",
      "reason": "CHECKSUM"
    }
  }
}

Sandbox IBANs fail at step 2, on purpose: ZZ is no country's code.

Example: Send to a sandbox IBAN

The operation of Example: Send to an IBAN with wrong check digits, with these variables:

{
  "input": {
    "accountId": "acc_0001",
    "scheme": "SCT",
    "amount": {
      "value": "80.00",
      "currency": "EUR"
    },
    "creditor": {
      "name": "Example Bakery SAS",
      "iban": "ZZ86BRDL000000000001"
    },
    "idempotencyKey": "a9d27e40-1c6f-4b85-b3e2-7f04c8d15a96"
  }
}

Response, HTTP 200:

{
  "data": {
    "initiateCreditTransfer": {
      "__typename": "InvalidIbanProblem",
      "message": "The creditor's IBAN is from a country the sandbox doesn't send transfers to.",
      "iban": "ZZ86BRDL000000000001",
      "reason": "COUNTRY"
    }
  }
}

A valid checksum catches typing mistakes. It doesn't say whether the account exists, or whether it belongs to the name you typed: in a live system, Verification of Payee checks the name, before the payer authorises the transfer. See Compliance Context for Writers.

Other Problems a Transfer Can Return#

Example: Send more than the available balance

mutation Transfer($input: InitiateCreditTransferInput!) {
  initiateCreditTransfer(input: $input) {
    __typename
    ... on InitiateCreditTransferSuccess {
      payment { id status }
    }
    ... on Problem { message }
    ... on InsufficientFundsProblem {
      availableBalance { value }
      requestedAmount { value }
    }
  }
}

Variables:

{
  "input": {
    "accountId": "acc_0001",
    "scheme": "SCT",
    "amount": {
      "value": "10000.00",
      "currency": "EUR"
    },
    "creditor": {
      "name": "Example Flour Mill GmbH",
      "iban": "DE89 3704 0044 0532 0130 00"
    },
    "idempotencyKey": "7e3a5c19-2b84-4f06-a1d7-93c0e6b2f458"
  }
}

Response, HTTP 200:

{
  "data": {
    "initiateCreditTransfer": {
      "__typename": "InsufficientFundsProblem",
      "message": "The available balance is lower than the amount.",
      "availableBalance": {
        "value": "3750.00"
      },
      "requestedAmount": {
        "value": "10000.00"
      }
    }
  }
}

Example: Send a transfer in US dollars

mutation Transfer($input: InitiateCreditTransferInput!) {
  initiateCreditTransfer(input: $input) {
    __typename
    ... on InitiateCreditTransferSuccess {
      payment { id status }
    }
    ... on Problem { message }
    ... on UnsupportedCurrencyProblem { currency supportedCurrencies }
  }
}

Variables:

{
  "input": {
    "accountId": "acc_0001",
    "scheme": "SCT",
    "amount": {
      "value": "80.00",
      "currency": "USD"
    },
    "creditor": {
      "name": "Example Flour Mill GmbH",
      "iban": "DE89 3704 0044 0532 0130 00"
    },
    "idempotencyKey": "e2b6f8a1-47c3-4d90-9a5e-0c1d3f7b2e64"
  }
}

Response, HTTP 200:

{
  "data": {
    "initiateCreditTransfer": {
      "__typename": "UnsupportedCurrencyProblem",
      "message": "SEPA transfers are in euros. Send the amount in EUR.",
      "currency": "USD",
      "supportedCurrencies": [
        "EUR"
      ]
    }
  }
}

Example: Send a transfer of zero euros

mutation Transfer($input: InitiateCreditTransferInput!) {
  initiateCreditTransfer(input: $input) {
    __typename
    ... on InitiateCreditTransferSuccess {
      payment { id status }
    }
    ... on Problem { message }
    ... on InvalidAmountProblem { value }
  }
}

Variables:

{
  "input": {
    "accountId": "acc_0001",
    "scheme": "SCT",
    "amount": {
      "value": "0.00",
      "currency": "EUR"
    },
    "creditor": {
      "name": "Example Flour Mill GmbH",
      "iban": "DE89 3704 0044 0532 0130 00"
    },
    "idempotencyKey": "3d8c1f5a-6e02-4b97-8c4d-a1f9e7b3c520"
  }
}

Response, HTTP 200:

{
  "data": {
    "initiateCreditTransfer": {
      "__typename": "InvalidAmountProblem",
      "message": "The amount must be above zero, with at most two decimals: 1250.50.",
      "value": "0.00"
    }
  }
}