Get information about a merchant profile
Use the merchantProfile query to get information about a single merchant profile.
For example, you can get information about:
- Information provided when adding a merchant profile, such as the expected average transaction amount.
- Requested updates to the merchant profile.
base64string for the merchant logo.- Payment methods and their statuses.
Get general information about the merchant profile​
Query​
Open in API Explorerquery merchantProfileInfo {
merchantProfile(id: "$MERCHANT_PROFILE_ID") {
accountId
createdAt
id
merchantName
productType
statusInfo {
status
}
}
}
Payload​
{
"data": {
"merchantProfile": {
"accountId": "$YOUR_MERCHANT_ACCOUNT_ID",
"createdAt": "2023-12-14T14:20:44.236Z",
"id": "$MERCHANT_PROFILE_ID",
"merchantName": "MyBrand Paper Goods",
"productType": "Goods",
"statusInfo": {
"status": "Enabled"
}
}
}
}
Get the reason of a merchant profile rejection​
Query​
query merchantProfileInfo {
merchantProfile(id: "$MERCHANT_PROFILE_ID") {
id
statusInfo {
status
... on RejectedMerchantProfileStatusInfo {
rejectionReason
}
}
}
}
Payload​
{
"data": {
"merchantProfile": {
"id": "$MERCHANT_PROFILE_ID",
"statusInfo": {
"status": "Rejected",
"rejectionReason": "$REJECTION_REASON"
}
}
}
}
Get the list of payment methods on a merchant profile​
Query​
query merchantProfileInfo {
merchantProfile(id: "$MERCHANT_PROFILE_ID") {
id
statusInfo {
status
}
merchantPaymentMethods {
id
type
statusInfo {
status
}
}
}
}
Payload​
{
"data": {
"merchantProfile": {
"id": "$MERCHANT_PROFILE_ID",
"statusInfo": {
"status": "Enabled"
},
"merchantPaymentMethods": [
{
"id": "$PAYMENT_METHOD_ID",
"type": "SepaDirectDebitCore",
"statusInfo": {
"status": "Enabled"
}
}
]
}
}
}