Update a merchant profile
You can request an update to a merchant profile with the API mutation requestMerchantProfileUpdate
.
If you use Swan's Web Banking interface, merchants can request an update through their app.
Request an update for the merchant's name, website, product type, expected monthly payment volume, expected average basket, and logo.
All updates are reviewed by Swan.
Guide​
- Call the
requestMerchantProfileUpdate
mutation. You don't need consent. - Include all the original mandatory information, changing only the information you wish to update.
- Required fields:
merchantName
,productType
,expectedMonthlyPaymentVolume
,expectedAverageBasket
. expectedAverageBasket
is the expected average amount per transaction.
- Required fields:
- Configure the success payload to display the updated information in case you need to verify it.
- Add relevant payload and rejection details to your mutation.
Mutation​
🔎 Open the mutation in API Explorer
In this example, the expectedAverageBasket
, or expected average transaction, changed from €50 to €75 (line 8).
Therefore, it requests the status and the updated basket in the success payload (lines 14-17).
mutation ProfileUpdate {
requestMerchantProfileUpdate(
input: {
merchantProfileId: "$YOUR_MERCHANT_PROFILE_ID"
merchantName: "MyBrand Paper Goods"
productType: Goods
expectedMonthlyPaymentVolume: { value: "3000", currency: "EUR" }
expectedAverageBasket: { value: "75", currency: "EUR" }
}
) {
... on RequestMerchantProfileUpdateSuccessPayload {
__typename
requestMerchantProfileUpdate {
status
expectedAverageBasket {
currency
value
}
}
}
... on InternalErrorRejection {
__typename
message
}
... on AccountNotFoundRejection {
id
message
}
... on ForbiddenRejection {
__typename
message
}
}
}
Payload​
The payload confirms your update request to an average basket of €75 with the status PendingReview
.
{
"data": {
"requestMerchantProfileUpdate": {
"__typename": "RequestMerchantProfileUpdateSuccessPayload",
"requestMerchantProfileUpdate": {
"status": "PendingReview",
"expectedAverageBasket": {
"currency": "EUR",
"value": "75"
}
}
}
}
}