Workflows
Get a workflow
Get the details of a workflow
get/workflows/{workflowId}
Request
- Base URLhttps://{prefix}.api.sandbox.checkout.com
- Auth
- OAuth 2Client credentialsToken URLstringScopesflow, flow:workflows
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workflowIdstring required
The workflow identifier
Response
Workflow retrieved successfully
Example response
{
"id": "wf_34pacj7ae6wexju4avpecxvp6e",
"name": "Webhooks workflow",
"active": true,
"conditions": [
{
"id": "wfc_tisekcawefze3l27uaai6hz74e",
"type": "event",
"events": {
"gateway": [
"payment_approved",
"payment_pending",
"payment_declined"
]
},
"_links": {
"self": {
"href": "https://{prefix}.api.checkout.com/workflows/wf_34pacj7ae6wexju4avpecxvp6e/conditions/wfc_tisekcawefze3l27uaai6hz74e"
}
}
},
{
"id": "wfc_tisekcawefze3l27uaai6hz74y",
"type": "entity",
"entities": [
"ent_xyfdshfudosfdshfdiosfds",
"ent_fidjosfjdisofdjsifdosfu"
],
"_links": {
"self": {
"href": "https://{prefix}.api.checkout.com/workflows/wf_34pacj7ae6wexju4avpecxvp6e/conditions/wfc_tisekcawefze3l27uaai6hz74y"
}
}
},
{
"id": "wfc_tisekcawefze3l27uaai6hz26y",
"type": "processing_channel",
"processing_channels": [
"pc_axclravnqf5u5ejkweijnp5zc4"
],
"_links": {
"self": {
"href": "https://{prefix}.api.checkout.com/workflows/wf_34pacj7ae6wexju4avpecxvp6e/conditions/wfc_tisekcawefze3l27uaai6hz26y"
}
}
}
],
"actions": [
{
"id": "wfa_itja4x7zgzye3andzqq62u4hvq",
"type": "webhook",
"url": "https://example.com/webhooks",
"headers": {
"Authorization": "<AUTHORIZATION_UUID>"
},
"signature": {
"method": "HMACSHA256",
"key": "8V8x0dLK%AyD*DNS8JJr"
},
"_links": {
"self": {
"href": "https://{prefix}.api.checkout.com/workflows/wf_34pacj7ae6wexju4avpecxvp6e/actions/wfa_itja4x7zgzye3andzqq62u4hvq"
}
}
}
],
"_links": {
"self": {
"href": "https://{prefix}.api.checkout.com/workflows/wf_wlu3wxc26jounofs5iez75qaqa"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.