Fetch Braintree enabled Payment Methods with GraphQL

Fetch Braintree enabled Payment Methods with GraphQL


0

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

SPeter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


Load 7 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *