Headers
API key. Value must be formatted like so: lucca application={api_key}
.
Body
The purchase to create.
Purchase.
Type of purchase.
Subscription
, OneTime
Title of the purchase.
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.
ID of the user who is the owner of the purchase.
Reference to a user. Owner of the purchase.
ID of the nature to which the purchase belongs.
ID of the cost-center to which the purchase belongs.
Reference to a cost-center. Read-only. Cost-center to which the purchase belongs.
ID of the establishment to which the purchase belongs.
Reference to an establishment. Read-only. Establishment to which the purchase belongs.
ID of the department to which the purchase belongs.
Reference to a department. Read-only. Department to which the purchase belongs.
Supplier of the purchase. Draft supplier.
Represents an amount of money in two different currencies. Read-only. Available amount of the purchase.
Represents an amount of money in two different currencies. Read-only. Billed amount of the purchase.
Represents an amount of money in two different currencies. Read-only. Committed amount of the purchase.
Represents an amount of money in two different currencies. Read-only. Confirmed amount of the purchase.
Represents an amount of money in two different currencies. Read-only. Requested amount of the purchase.
Write-only. IDs of the axis-sections to which the purchase belongs.
Read-only. User ID who is the author of the purchase. Reference to a user.
Read-only. User ID who is the modifier of the purchase. Reference to a user.
Response
Created
Purchase.
Type of purchase.
Subscription
, OneTime
Title of the purchase.
Created
, Processing
, Ongoing
, Denied
, Closed
, Cancelled
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.
Reference to a user. Owner of the purchase.
Nature of the purchase.
Reference to a cost-center. Read-only. Cost-center to which the purchase belongs.
Reference to an establishment. Read-only. Establishment to which the purchase belongs.
Reference to a department. Read-only. Department to which the purchase belongs.
Supplier of the purchase. Draft supplier.
Represents an amount of money in two different currencies. Read-only. Available amount of the purchase.
Represents an amount of money in two different currencies. Read-only. Billed amount of the purchase.
Represents an amount of money in two different currencies. Read-only. Committed amount of the purchase.
Represents an amount of money in two different currencies. Read-only. Confirmed amount of the purchase.
Represents an amount of money in two different currencies. Read-only. Requested amount of the purchase.
Read-only. Aggregated states of the purchase.
Read-only. Axis-sections to which the purchase belongs.
Read-only. Date of creation of the purchase
Read-only. User ID who is the author of the purchase. Reference to a user.
Read-only. Date of last modification of the purchase.
Read-only. User ID who is the modifier of the purchase. Reference to a user.