Happy Business Starts Here

Call Zuora Rest API which need to have Token in the workflow

Highlighted
Valued Scholar

Call Zuora Rest API which need to have Token in the workflow

Hi,

I would like to call a Zuora Rest API:

https://rest.zuora.com/objects/records/default/{object}

I tried to use the Basic Auth to Authenticate and it has an error 

{
"message": "No bearer token"
}

1.PNG

I believe that it's not the correct authentication type.

How can I get the token and use it in my workflow?

Thanks

5 REPLIES 5
Highlighted
Zuora Alumni

Re: Call Zuora Rest API which need to have Token in the workflow

Hi,

 

Please try to use the below authentication type.

 

Capture1.PNG

You can try to use OAuth with a client ID and Client Secret.

 

Please check and let me know if you have any issues.

 

Thanks and Regards

Santhosh

Highlighted
Zuora Staff

Re: Call Zuora Rest API which need to have Token in the workflow

Hi,

Basic Auth won't support Custom Object related APIs For more information, please check the below link and verify the Authorization parameter.

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

Annotation 2020-06-15 114316.png

To access the Endpoint URL via Workflow -> Callout notification, You should create workflow connect app using Zuora OAUTH Login
Link reference to create OAUTH Login in Connect APP: https://knowledgecenter.zuora.com/Marketplace/Get_Started_with_Marketplace/Create_an_OAuth_Tenant_Lo...

Once you did the above steps(Zuora OAUTH Login and create workflow app), you can select "Authentication Type" as "Zuora" from the workflow Callout Task. (i.e.If you choose "Zuora" option then Workflow will consider "Zuora" option as  connect login username/password or ClientId & ClientSecrect(OAUTH).

 

Note: If you are using the "Platform" -> "Workflow" app then no need to worry about Zuora OAUTH Login. You can directly pick the "Zuora" option from Callout -> Authentication Type.  

Annotation 2020-06-15 114316.png

 

Hope this process will help you. If you need more details, please share your questions here.

Thanks,

Prem

Thanks and Regards,
Prem Anandh
Highlighted
Valued Scholar

Re: Call Zuora Rest API which need to have Token in the workflow

Hi @pramamoorthy ,

I did it and it saw the 403 Forbidden error. The Client ID and Client Secret I got from my account in Zuora, what information do I need to check?

Thanks

Highlighted
Zuora Staff

Re: Call Zuora Rest API which need to have Token in the workflow

Hi @salmdo

Are you still facing this issue? 

Thanks,

Prem

Thanks and Regards,
Prem Anandh
Highlighted
Valued Scholar

Re: Call Zuora Rest API which need to have Token in the workflow

Hi pramamoorthy,

It's still but I change the way to get the custom object to use the custom object > Query in the workflow task.

Thanks for your support.