Skip to main content

Add a payment mandate

Add SEPA Direct Debit B2B (Business-to-Business) received payment mandates with the API or by sending a link to an account member so they can register the mandate themselves.

B2B mandates only

This guide is for SEPA Direct Debit B2B mandates only. These mandates are required to authorize a company to debit an account. If an account member completes a non-B2B Direct Debit mandate, their creditor will handle its registration automatically.

When Swan receives new SEPA Direct Debit instructions, the corresponding mandate is added automatically.

Add with API​

Add mandates programmatically using the addReceivedSepaDirectDebitB2bMandate mutation.

Prerequisites
  1. You're an account member with the canInitiatePayments membership permission.
  2. You're authenticating with a user access token.

Guide​

  1. Call the addReceivedSepaDirectDebitB2bMandate mutation.
  2. Add the Unique Mandate Reference (mandateReference) and SEPA Creditor Identifier (creditorIdentifier).
  3. Add the creditor's name, plus your Swan IBAN and consent redirect URL.
  4. Choose whether the mandate can be used once (OneOff) or multiple times (Recurrent).
  5. Add the AddReceivedSepaDirectDebitB2bMandateSuccessPayload, including the consentUrl.
  6. Add rejections (not shown).

Mutation​

Open in API Explorer
mutation AddReceivedMandate {
addReceivedSepaDirectDebitB2bMandate(
input: {
mandateReference: "$YOUR_URM"
creditorIdentifier: "$YOUR_SCI"
creditorName: "Katherine Johnson"
iban: "$SWAN_IBAN"
sequence: OneOff
consentRedirectUrl: "$YOUR_REDIRECT_URL"
}
) {
... on AddReceivedSepaDirectDebitB2bMandateSuccessPayload {
__typename
receivedDirectDebitMandate {
statusInfo {
status
... on ReceivedDirectDebitMandateStatusInfoConsentPending {
__typename
consent {
consentUrl
}
status
}
... on ReceivedDirectDebitMandateStatusInfoEnabled {
__typename
enabledAt
status
}
}
}
}
}
}

Payload​

The payload shows the mandate was added successfully with the status ConsentPending, and provides the consentUrl (line 10).

Make sure to send the consentUrl to your user so they can provide consent for the mandate.

{
"data": {
"addReceivedSepaDirectDebitB2bMandate": {
"__typename": "AddReceivedSepaDirectDebitB2bMandateSuccessPayload",
"receivedDirectDebitMandate": {
"statusInfo": {
"status": "ConsentPending",
"__typename": "ReceivedDirectDebitMandateStatusInfoConsentPending",
"consent": {
"consentUrl": "https://identity.swan.io/consent?consentId=$YOUR_CONSENT_ID&env=Sandbox"
}
}
}
}
}
}

Send a link to an account member with the canInitiatePayments membership permission so they can complete the mandate registration.

  1. Go to Dashboard > Data > Accounts.
  2. Click the account you need.
  3. Go to the Received Direct Debit Mandates tab.
  4. Click Copy SDD B2B mandate form link.
  5. Share the link with an account member with the canInitiatePayments membership permission.

Screenshot of the B2B mandate registration page

Save the link

Account members can save the link to register future mandates.

Step 2: Account member completes process​

  1. The account member opens the link you provided.
  2. They log into Swan's banking interface.
  3. They enter their B2B mandate details exactly as shown on the original mandate.
  4. They consent to adding the payment mandate with Strong Customer Authentication.

Screenshot of the B2B mandate registration page