New question

Question:

 
  0  
 
Date: 07-02-2020 03:25:10 (In English)

I can't use Costrics fincial API.[Unresolved]

I'm developing a new project using financial API.

but I have an issue with Authentication.
I have posted a request like this.
https://idp.comprobanteselectronicos.go.cr/auth/realms/rut-stag/protocol/openid-connect/token

grant_type : password
client_id: api tag
client_secret:
scope:
username: myusername
password: mypassword

My username is registered in AVT.
And I encode by x-www-form-urlencoded

but the response
{
"error": "invalid_grant",
"error_description": "Invalid user credentials"
}

I can't find a solution.

what's a problem?

Please help me.
Tags: PHP Votes: 0 - Answers: 2 - Views: 5 Share on: Google Facebook Twitter LinkedIn Link
 

Answers:

  • Date: 10-02-2020 03:23:32 Hi Zhen:

    It's a little hard to tell your problem exactly, but, by the information you're sharing here I'd say your credentials are invalid.

    Perhaps you want to check that with your API provider
      Votes: 0 - Link answer
     
  •  
      0  
     
    Date: 10-02-2020 22:43:15 Hi Mauro.
    Thank you very much.
    I'll explain my case.
    I can log in to ATV system with my credentials such as userID and password.
    And These were generated by ATV system.
    but To use API, it needs authentication.

    so I request this URL by post method
    "https://idp.comprobanteselectronicos.go.cr/auth/realms/rut-stag/protocol/openid-connect/token"

    And I'll use a postman for this.

    The credentials my client is generating new credentials for a test now.
    If I get it, I'll share it.

    Thank you for your help.
      Votes: 0 - Link answer
     
To actively participate in the community first must authenticate, enter the system.Sign In