Authentication
Use WooCommerce REST credentials with read/write scope.
Endpoints
GET /profitpulse/v1/profit/summary
Returns totals for revenue, costs, and margin by date range.
PATCH /profitpulse/v1/products/{id}/cost
Updates product cost for matching SKU/product id.
Example Payload
{"product_id": 123, "cost": 14.25, "currency": "USD"}
Error Codes
400 for invalid payload, 401 for unauthorized, 404 for missing resource.