CostPrice
No description
type CostPrice {
id: String!
priceId: String!
createdAt: DateTime!
lastModifiedAt: DateTime!
quantityFrom: Int!
value: Float!
}
Fields
CostPrice.id ● String! non-null scalar
Unique identifier for the cost price record.
Primary key used for cost price management and margin calculation operations.
CostPrice.priceId ● String! non-null scalar
Reference to the associated price record.
Foreign key linking this cost price to its base price for margin calculations and cost tracking.
CostPrice.createdAt ● DateTime! non-null scalar
Timestamp when the cost price record was initially created.
Used for audit trails and cost tracking history.
CostPrice.lastModifiedAt ● DateTime! non-null scalar
Timestamp when the cost price record was last updated.
Essential for tracking cost changes and margin analysis.
CostPrice.quantityFrom ● Int! non-null scalar
Minimum quantity threshold for this cost price tier to apply.
Minimum order quantity required for this cost price to be used in margin calculations and cost analysis.
CostPrice.value ● Float! non-null scalar
Cost value for this quantity tier.
Unit cost that applies when the minimum quantity threshold is met for margin calculations and profitability analysis.
Returned By
costPriceCreate mutation ● costPriceUpdate mutation
Member Of
CostPriceResponse object ● Price object