H
H
Httdientee2021-09-15 13:26:13
PHP
Httdientee, 2021-09-15 13:26:13

API integration issue, getting 401 error?

https://api.daxko.com/v3/docs/api/index.html#membe...
- I'm integrating this API, I can't understand why I'm not getting HTTP 200 OK, after sending a request with data, I get an error 401 Unauthorized
If you authorize with the same data directly through the site, then everything is in order - authorization to the account is successful

6141ca3644746483897416.png
6141cae57e6ca580505095.png

UDP:

If you send a request in this way, it issues an invalid request, what's wrong here?

curl -XPOST https://api.daxko.com/v3/partners/oauth2/token  
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJqY2NfZ3JlYXRlcl9vcmxhbmRvX3Byb2QtYXV0aCIsInN1YiI6ImpjY19ncmVhdGVyX29ybGFuZG9fcHJvZCIsImlhdCI6MTYyNjQ2MDcxOSwiZXhwIjoxNjI2NDYwNzE5LCJhcGkiOiJvcHNfYXBpX3YyX2F1dGgifQ.csTnnAYmr1njEd7ZwzJB0ItARSQRB-GUT4JfBXZz-js"  
-F "grant_type=client_credentials"  
-F "client_id=jcc_greater_orlando_prod"  
-F "clien_secret=UZC2SFkRwHpdhFFes3memA4eNhdcLQSs" 
-F "scope=client:9999"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-09-15
@Rsa97

https://api.daxko.com/v3/docs/tutorials/authentica...

If you haven't already been granted access to the Daxko Operations API, you should contact your sales representative and request access. Once this step has been done, you should have a username, password and refresh token for your API account. You will need this information to authenticate to the API.

I see username and password, but refresh_token is not specified.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question