GraphQL Admin API
The GraphQL Admin API is an alternative to the REST API and gives you a lot more flexibility to access, create and modify all aspects of your product's data.

Getting started

The GraphQL Endpoint

The GraphQL Admin API has a single endpoint:
POST https://adminapi.mementopayments.com/v1/graphql.json

Example query

1
query {
2
users {
3
id
4
first_name
5
last_name
6
funding_sources {
7
id
8
balances {
9
currency {
10
code
11
}
12
amount_in
13
}
14
}
15
}
16
}
Copied!
A successful query results in a response like this:
1
{
2
"data": {
3
"users": [
4
{
5
"id": "cf767154-c863-488e-93e5-ed1d50561fb8",
6
"first_name": "Test",
7
"last_name": "McTesterson Jr.",
8
"funding_sources": [
9
"id": "7784759a-860e-4d62-a61a-7010d3e7f9d9",
10
"balances": [
11
{
12
"currency": "USD",
13
"amount": 329.50
14
}
15
]
16
]
17
}
18
]
19
}
20
}
Copied!
Last modified 1yr ago