curl --request POST \
--url https://{host}/cleemy-procurement/api/commitments/{id}/requests \
--header 'Authorization: <authorization>'
{
"id": 0,
"owner": {
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"pictureHref": "https://example.ilucca.net/directory/api/employees/416/picture",
"id": 416,
"href": "https://example.ilucca.net/api/v3/users/416"
},
"assignee": {
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"pictureHref": "https://example.ilucca.net/directory/api/employees/416/picture",
"id": 416,
"href": "https://example.ilucca.net/api/v3/users/416"
},
"businessObject": {
"id": 54635,
"costDate": "2025-04-14",
"invoiceDate": "2025-04-14",
"amountIncludingTaxes": {
"excludingTaxes": {
"value": 120,
"currency": "EUR"
},
"taxes": []
},
"type": "OneTimeCommitment",
"attachmentIds": [],
"state": "Created",
"comment": "Comment",
"paymentMethod": null,
"createdAt": "2024-09-24T10:02:01.9244011+00:00",
"author": {
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"pictureHref": "https://example.ilucca.net/directory/api/employees/416/picture",
"id": 416,
"href": "https://example.ilucca.net/api/v3/users/416"
},
"modifiedAt": "2024-09-24T13:52:40.3558953+00:00",
"modifier": {
"name": "Matt Bawss",
"firstName": "Matt",
"lastName": "Bawss",
"pictureHref": "https://example.ilucca.net/directory/api/employees/979/picture",
"id": 979,
"href": "https://example.ilucca.net/api/v3/users/979"
}
},
"stepId": 1,
"workflowId": "qsd5q1c2xv",
"templateId": 1,
"state": "Pending",
"createdAt": "2025-07-01T13:27:11.485Z",
"modifiedAt": "2025-07-01T13:27:11.485Z",
"author": {
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"pictureHref": "https://example.ilucca.net/directory/api/employees/416/picture",
"id": 416,
"href": "https://example.ilucca.net/api/v3/users/416"
},
"modifier": {
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"pictureHref": "https://example.ilucca.net/directory/api/employees/416/picture",
"id": 416,
"href": "https://example.ilucca.net/api/v3/users/416"
}
}
Trigger the approval workflow for a purchase commitment. Request body is expected to be empty.
curl --request POST \
--url https://{host}/cleemy-procurement/api/commitments/{id}/requests \
--header 'Authorization: <authorization>'
{
"id": 0,
"owner": {
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"pictureHref": "https://example.ilucca.net/directory/api/employees/416/picture",
"id": 416,
"href": "https://example.ilucca.net/api/v3/users/416"
},
"assignee": {
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"pictureHref": "https://example.ilucca.net/directory/api/employees/416/picture",
"id": 416,
"href": "https://example.ilucca.net/api/v3/users/416"
},
"businessObject": {
"id": 54635,
"costDate": "2025-04-14",
"invoiceDate": "2025-04-14",
"amountIncludingTaxes": {
"excludingTaxes": {
"value": 120,
"currency": "EUR"
},
"taxes": []
},
"type": "OneTimeCommitment",
"attachmentIds": [],
"state": "Created",
"comment": "Comment",
"paymentMethod": null,
"createdAt": "2024-09-24T10:02:01.9244011+00:00",
"author": {
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"pictureHref": "https://example.ilucca.net/directory/api/employees/416/picture",
"id": 416,
"href": "https://example.ilucca.net/api/v3/users/416"
},
"modifiedAt": "2024-09-24T13:52:40.3558953+00:00",
"modifier": {
"name": "Matt Bawss",
"firstName": "Matt",
"lastName": "Bawss",
"pictureHref": "https://example.ilucca.net/directory/api/employees/979/picture",
"id": 979,
"href": "https://example.ilucca.net/api/v3/users/979"
}
},
"stepId": 1,
"workflowId": "qsd5q1c2xv",
"templateId": 1,
"state": "Pending",
"createdAt": "2025-07-01T13:27:11.485Z",
"modifiedAt": "2025-07-01T13:27:11.485Z",
"author": {
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"pictureHref": "https://example.ilucca.net/directory/api/employees/416/picture",
"id": 416,
"href": "https://example.ilucca.net/api/v3/users/416"
},
"modifier": {
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"pictureHref": "https://example.ilucca.net/directory/api/employees/416/picture",
"id": 416,
"href": "https://example.ilucca.net/api/v3/users/416"
}
}
API key. Value must be formatted like so: lucca application={api_key}
.
ID of the commitment you want to create a request for.
Commitment request successfuly created.
Approval request (workflow) for a purchase commitment.
Was this page helpful?