v1

latestOpenAPI 3.1.0Apache 2.02026-07-22160175414.0 KB
Purchases

Create a Purchase

Create a Purchase.

post/cleemy-procurement/api/purchases

Request body

idinteger
type'Subscription' | 'OneTime'

Type of purchase.

titlestring

Title of the purchase.

state'Created' | 'Processing' | 'Ongoing' | 'Denied' | 'Closed' | 'Cancelled'
ownerIdinteger

ID of the user who is the owner of the purchase.

natureIdinteger

ID of the nature to which the purchase belongs.

costCenterIdinteger

ID of the cost-center to which the purchase belongs.

establishmentIdinteger

ID of the establishment to which the purchase belongs.

departmentIdinteger

ID of the department to which the purchase belongs.

axisSectionIdsinteger[]

Write-only. IDs of the axis-sections to which the purchase belongs.

createdAtstring date-time

Read-only. Date of creation of the purchase

modifiedAtstring date-time

Read-only. Date of last modification of the purchase.

Response

Created

idinteger
type'Subscription' | 'OneTime'

Type of purchase.

titlestring

Title of the purchase.

state'Created' | 'Processing' | 'Ongoing' | 'Denied' | 'Closed' | 'Cancelled'
ownerIdinteger

ID of the user who is the owner of the purchase.

natureIdinteger

ID of the nature to which the purchase belongs.

costCenterIdinteger

ID of the cost-center to which the purchase belongs.

establishmentIdinteger

ID of the establishment to which the purchase belongs.

departmentIdinteger

ID of the department to which the purchase belongs.

axisSectionIdsinteger[]

Write-only. IDs of the axis-sections to which the purchase belongs.

createdAtstring date-time

Read-only. Date of creation of the purchase

modifiedAtstring date-time

Read-only. Date of last modification of the purchase.