Purchase.

id
integer
type
enum<string>

Type of purchase.

Available options:
Subscription,
OneTime
title
string

Title of the purchase.

state
enum<string>
Available options:
Created,
Processing,
Ongoing,
Denied,
Closed,
Cancelled
commitment
object

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. Read-only. Commitment of the purchase. readOnly: true Commitment for a subscription.

ownerId
integer

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

owner
object

Reference to a user. Owner of the purchase.

natureId
integer

ID of the nature to which the purchase belongs.

nature
object

Nature of the purchase.

costCenterId
integer

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

costCenter
object

Reference to a cost-center. Read-only. Cost-center to which the purchase belongs.

establishmentId
integer

ID of the establishment to which the purchase belongs.

establishment
object

Reference to an establishment. Read-only. Establishment to which the purchase belongs.

departmentId
integer

ID of the department to which the purchase belongs.

department
object

Reference to a department. Read-only. Department to which the purchase belongs.

supplier
object

Supplier of the purchase. Draft supplier.

availableAmount
object

Represents an amount of money in two different currencies. Read-only. Available amount of the purchase.

billedAmount
object

Represents an amount of money in two different currencies. Read-only. Billed amount of the purchase.

committedAmount
object

Represents an amount of money in two different currencies. Read-only. Committed amount of the purchase.

confirmedAmount
object

Represents an amount of money in two different currencies. Read-only. Confirmed amount of the purchase.

requestedAmount
object

Represents an amount of money in two different currencies. Read-only. Requested amount of the purchase.

aggregatedStates
object

Read-only. Aggregated states of the purchase.

axisSectionIds
integer[]

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

axisSections
Reference to an axis-section · object[]

Read-only. Axis-sections to which the purchase belongs.

createdAt
string<date-time>

Read-only. Date of creation of the purchase

author
object

Read-only. User ID who is the author of the purchase. Reference to a user.

modifiedAt
string<date-time>

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

modifier
object

Read-only. User ID who is the modifier of the purchase. Reference to a user.