Body
This is the limit of the COGS entries to return.
This is the offset of the COGS entries.
This is the order direction of the COGS entries.
Response
Unique identifier for the COGS entry (primary key)
The accounting period for the COGS entry
The product associated with the COGS entry
The quantity of the product sold
The Cost of Goods Sold amount
The average cost per unit
ending_inventory_quantity
The quantity of inventory remaining at the end of the period
The value of the ending inventory
The currency used for the financial calculations
Identifier for the related exchange rate
Identifier for the related sale transaction
The selling price per unit
The total gross sales amount
The gross margin percentage
The COGS as a percentage of sales
The method used to calculate COGS
The category of the product
The channel through which the sale was made
The segment of the customer who made the purchase
Indicates whether this entry is for a return
The reason for the return, if applicable
The cost center associated with the COGS entry
Identifier for the related supplier
curl --location --request GET 'https://api.stateset.com/v1/cogs_entries' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"limit": 10,
"offset": 0,
"order_direction": "asc"
}'
query ($limit: Int!, $offset: Int!, $order_direction: order_by) {
cogs_entries(limit: $limit, offset: $offset, order_by: {id: $order_direction}) {
id
period
product
quantity_sold
cogs
average_cost
ending_inventory_quantity
ending_inventory_value
currency
exchange_rate_id
sale_transaction_id
unit_selling_price
gross_sales
gross_profit
gross_margin_percentage
cogs_percentage
cogs_method
product_category
sales_channel
customer_segment
sale_date
is_return
return_reason
cost_center
supplier_id
}
}