Skip to main content

Request Internal Direct Debit

Before you can accept payments with Internal Direct Debit, you need to request and be approved for the payment method. You can request several payment methods with the same API call.

Payment method review

All new merchant payment methods are reviewed by Swan. Swan might contact you for more information before accepting or rejecting the payment method.

Guide​

  1. Confirm you have a project access token, or, if you're an account member, a user access token with CanManageAccountMembership user rights.
  2. Call the requestMerchantPaymentMethods mutation. You can request a payment method regardless of the status of the merchant profile.
  3. Set internalDirectDebitStandard/internalDirectDebitB2b activate to true.
  4. The new merchant payment method is created with the status PendingReview and the version number 1.
  5. Swan reviews the new merchant payment method and updates the status.
Webhook notification

Go to your Dashboard > Developers > Webhooks to subscribe to the MerchantProfile.updated webhook and receive a notification when the status of your request changes.

Mutation​

🔎 Open the mutation in API Explorer

mutation RequestInternalDirectDebit {
requestMerchantPaymentMethods(
input: {
merchantProfileId: "$MERCHANT_PROFILE_ID"
internalDirectDebitStandard: { activate: true }
internalDirectDebitB2B: { activate: true }
}
) {
... on RequestMerchantPaymentMethodsSuccessPayload {
__typename
merchantProfile {
id
merchantName
merchantPaymentMethods {
id
statusInfo {
... on EnabledMerchantPaymentMethodStatusInfo {
__typename
}
}
}
}
}
}
}

Payload​

The payload confirms the payment method status Enabled.

{
"data": {
"requestMerchantPaymentMethods": {
"__typename": "RequestMerchantPaymentMethodsSuccessPayload",
"merchantProfile": {
"id": "$MERCHANT_PROFILE_ID",
"merchantName": "MyBrand Paper Goods",
"merchantPaymentMethods": [
{
"id": "$MERCHANT_PAYMENT_METHOD_ID",
"statusInfo": {
"__typename": "EnabledMerchantPaymentMethodStatusInfo"
}
}
]
}
}
}
}