Request card payment method
Before you can accept payments with cards, 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​
- Confirm you have a project access token, or, if you're an account member, a user access token with
CanManageAccountMembershipuser rights. - Call the
requestMerchantPaymentMethodsmutation. You can request a payment method regardless of the status of the merchant profile. - Set
cardactivate totrue. - The new merchant payment method is created with the status
PendingReviewand the version number1. - Swan reviews the new merchant payment method and updates the status, rolling reserve, and payment amount limit.
Webhook notification
Mutation​
🔎 Open the mutation in API Explorer
mutation RequestCards {
requestMerchantPaymentMethods(
input: {
merchantProfileId: "$YOUR _MERCHANT_PROFILE_ID"
card: { activate: true }
}
) {
... on RequestMerchantPaymentMethodsSuccessPayload {
__typename
merchantProfile {
merchantPaymentMethods {
methodId
... on CardMerchantPaymentMethod {
methodId
paymentAmountLimit {
currency
value
}
rollingReserve {
percentage
rollingDays
}
type
statusInfo {
status
}
}
}
}
}
... on ForbiddenRejection {
__typename
message
}
... on ValidationRejection {
__typename
message
}
... on InternalErrorRejection {
__typename
message
}
... on NotFoundRejection {
id
message
}
... on InvalidPaymentMethodRequestRejection {
__typename
message
paymentMethods {
code
id
message
type
}
}
}
}
Payload​
The payload confirms that the payment method Card was requested successfully with the status Enabled.
{
"data": {
"requestMerchantPaymentMethods": {
"__typename": "RequestMerchantPaymentMethodsSuccessPayload",
"merchantProfile": {
"merchantPaymentMethods": [
{
"methodId": "$PAYMENT_METHOD_ID",
"paymentAmountLimit": {
"currency": "EUR",
"value": "150"
},
"rollingReserve": {
"percentage": "100",
"rollingDays": "5"
},
"type": "Card",
"statusInfo": {
"status": "Enabled"
}
}
]
}
}
}
}