Happy Business Starts Here

Highlighted
Newly Enrolled TJT
Newly Enrolled

API Login Auth Token failure

I am trying to use the API following the documentation here: 

 

https://www.zuora.com/developer/api-reference/#operation/createToken

 

But when I attempt to create the token with Postman I get this:

 

{
"message": "Does not include required parameters"
}
 
Considering that I am able to hit the request and I am using Client_id, client_secret and grant_type like the doc says. What exactly am I missing here?
Tags (3)
2 REPLIES 2
Zuora Staff
Zuora Staff

Re: API Login Auth Token failure

Can you post the curl that postman generates?

 

Mine is:

curl -X POST \
  https://rest.apisandbox.zuora.com/oauth/token \
  -H 'Postman-Token: a05c1023-7922-48af-bee4-e5fb2f2350a4' \
  -H 'cache-control: no-cache' \
  -d 'client_id=redacted&client_secret=redacted&grant_type=client_credentials'
Highlighted
Zuora Staff

Re: API Login Auth Token failure

In Postman can you confirm the body type is set to x-www-form-urlencoded? See https://learning.getpostman.com/docs/postman/sending-api-requests/requests/#url-encoded