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" }'
{ "id": 123, "period": "<string>", "product": "<string>", "quantity_sold": 123, "cogs": 123, "average_cost": 123, "ending_inventory_quantity": 123, "ending_inventory_value": 123, "currency": "<string>", "exchange_rate_id": 123, "sale_transaction_id": 123, "unit_selling_price": 123, "gross_sales": 123, "gross_profit": 123, "gross_margin_percentage": 123, "cogs_percentage": 123, "cogs_method": "<string>", "product_category": "<string>", "sales_channel": "<string>", "customer_segment": "<string>", "sale_date": "<string>", "is_return": true, "return_reason": "<string>", "cost_center": "<string>", "supplier_id": 123 }
This endpoint lists COGS (Cost of Goods Sold) entries.