Menu
Create Job
Create a job
POST
/v2/subscriptions/jobsUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Create Job action (under Subscriptions).
- Fill in the fields below, then reference the result from later steps as
{{createJob.response.data}}.
Request
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": {
"type": "subscription_job",
"attributes": {
"job_type": "billing-run",
"external_ref": "abc123"
}
}
}
Response
Returns 201 with an object. Read it in later steps with {{createJob.response.data.<field>}}.
{
"data": {
"type": "subscription_job",
"attributes": null,
"meta": {
"owner": "store",
"timestamps": null,
"report": null
},
"id": "11111111-2222-3333-4444-555555555555",
"relationships": {
"pricing-options": {
"links": {
"related": "/offerings/:offering-id/pricing-options",
"self": "/offerings/:offering-id"
},
"data": {
"type": "offering-pricing-option",
"id": "625fe958-7b4b-40a0-a2c0-dbb8f31eec0d"
}
}
}
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?