HomeGuidesChangelogDiscussions
Log In
Discussions

Discussions

Ask a Question
Back to All

Getting card list under user returns error

I am trying to get the card list of a user and am getting a bad request response

the code
return client.method(HttpMethod.GET)
.uri("/cards")
.header("Authorization", "Bearer " + token)
.contentType(MediaType.APPLICATION_JSON)
.accept(MediaType.APPLICATION_JSON)

the request body
{
"juice_user_id": "03ea20d0-1e91-44d4-a37b-40bc1b60d005",
"limit": 15,
"page": 1
}

the endpoint

https://sandbox.spendjuice.com/cards