Invalid Access Token


(Nayeli Flores) #1

Hi, I’m getting an Invalid Access Token in my request to GET bussines-classifications:

What I do is:

POST https://sandbox.dwolla.com/oauth/v2/token
Content-Type: application/x-www-form-urlencoded

I send my client_id, client_secret and grant_type = client_credentials

I get:

{
    "access_token": "nice_token",
    "token_type": "bearer",
    "expires_in": 3602
}

Everything is fine, but when I make a GET request:

GET https://api-sandbox.dwolla.com/business-classifications
Accept: application/vnd.dwolla.v1.hal+json
Authorization: Bearer nice_token

I get:

{
    "code": "InvalidAccessToken",
    "message": "Invalid access token."
}

I don’t know if I’m doing something wrong.

Any ideas? Thanks in advance :slight_smile:


(Spencer Hunter) #2

Hi @nyflores, Based on the information in your post, Im not seeing anything wrong at first glance. Can you share some of your code where you’re making both of these requests?