2 years ago
I am using the API https://backboard.railway.app/graphql/v2 and I want to retrieve the payment details (billingDetails - currentBalance and availableCredits).
I am getting a 400 error with traceId 7894488731113956953.
The API is working correctly when I fetch only the name and email (query {me{name email}})
7 Replies
2 years ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • over 1 year ago
2 years ago
Hello,
A 400 error means your query or input variables are malformed, what is your current query and input variables?
2 years ago
Hi, brody!
query {
me {
name
billingDetails {
currentBalance
availableCredits
}
}
}
2 years ago
brody, do you have an example query for this?
2 years ago
Credits Available is returned in the customerForUser query.
Current Usage is calculated on the frontend from the data returned in the allProjectUsage query.
You can go to your usage page, open dev tools, and refresh the page to see the API calls made.
2 years ago
opening a development tool I managed to solve it... thanks, brody!! ;-)
Status changed to Solved brody • over 1 year ago
