createJobsFromOrder
Create jobs from order lines. Requires job:write.
Returns
CreateJobsFromOrderPayload!Arguments
Order to produce, and the per-order-line jobs to create from it.
Examples
Create Commerce Production Jobs
mutation CreateCommerceProductionJobs($input: CreateJobsFromOrderInput!) {
createJobsFromOrder(input: $input) {
order { id status }
jobs { id name }
errors { path message }
}
}Variables
{
"input": {
"orderId": "ord_01h455vb4pex5vsknk084sn02q",
"jobs": [
{
"orderLineId": "oln_01h455vb4pex5vsknk084sn02q",
"jobName": "Northstar packaging sleeves",
"quantity": 500
}
]
}
}Exact field SDL
"""Create jobs from order lines. Requires job:write."""
createJobsFromOrder(
"""Order to produce, and the per-order-line jobs to create from it."""
input: CreateJobsFromOrderInput!
): CreateJobsFromOrderPayload! @topic(names: ["commerce", "jobs"]) @topic_example(names: ["commerce.create-production-jobs"])Declared on Mutation. Access is checked by the platform for each operation.