I am trying to fetch all the Payment Methods enabled on a Braintree account using GraphQL but unable to.
Query:
query ClientConfiguration {
clientConfiguration {
analyticsUrl
assetsUrl
clientApiUrl
environment
merchantId
}
}
Response:
{
"errors": [
{
"message": "The requested field is not accessible with the provided authentication credentials.",
"locations": [
{
"line": 4,
"column": 3
}
],
"path": [
"clientConfiguration"
],
"extensions": {
"errorClass": "AUTHORIZATION",
"errorType": "developer_error"
}
}
],
"data": {
"clientConfiguration": null
},
"extensions": {
"requestId": "3fd5f128-d372-4d74-a0eb-89ea432e144c"
}
}
API Explorer: https://graphql.braintreepayments.com/explorer/
I have Admin rights. Anyone any idea what’s wrong?
I tried to Query ClientConfiguration as descripted in API documentation but it’s not working for me. Maybe I am doing something wrong.
New contributor