Happy Business Starts Here

Highlighted
Zuora Support

Trigger Workflow through Callout using OAuth

Question:

Workflow trigger through callout is performed by the API token and by Basic username and password as given in the following KC.

https://knowledgecenter.zuora.com/CE_Workflow/Using_Workflow/Trigger_a_Workflow_via_Callouts

User needs to trigger the callout using OAuth Bearer token

 

Solution:

The Workflow triggered through OAuth bearer token is performed through the regular Rest API URL followed by the workflow ID

POST - https//rest.apisandbox.zuora.com/workflows/{{workflow_id}}/run

US sandbox - https//rest.apisandbox.zuora.com/workflows/{{workflow_id}}/run

Prod - https//rest.zuora.com/workflows/{{workflow_id}}/run

EU Sandbox - https//rest.sandbox.eu.zuora.com/workflows/{{workflow_id}}/run

EU Prod - https//rest.eu.zuora.com/workflows/{{workflow_id}}/run

 

We can also get all the workflow details for the entity using the GET call

Example - https//rest.apisandbox.zuora.com/workflows

getworkflow.png

Tags (2)