POST
/
cleemy-procurement
/
api
/
purchases
/
{id}
/
commitment
curl --request POST \
--url https://{host}/cleemy-procurement/api/purchases/{id}/commitment \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"costDate": "2025-04-14",
"invoiceDate": "2025-04-14",
"amountIncludingTaxes": {
"excludingTaxes": {
"value": 120,
"currency": "EUR"
},
"taxes": []
},
"type": "OneTimeCommitment",
"attachmentIds": [],
"state": "Created",
"comment": "Comment",
"paymentMethod": null
}'
{
  "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"
  }
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Path Parameters

id
integer
required

ID of the purchase you want to create a commitment for.

Body

application/json

Represents a purchase commitment. Can be one of two types: Subscription or OneTime.

A "subscription" typed commitment represents a purchase commitment that will be paid in installments over a given period, whereas a "one-time" commitment will be paid in full once. Commitment for a subscription.

Response

200 - application/json

OK

The response is of type object.