Update Cost of goods inputs

PATCH /reports/consumption/:id

Update the entered values used to calculate a Cost of goods report's results. The technical API path uses consumption.

Path parameters

  • id: The report's created timestamp.

Request properties

Send a JSON object with the values you want to change. The app uses these keys:

  • cash: Cash revenue.
  • cards: Cashless revenue.
  • x_report: Revenue from the Z-Report.
  • free: Discounts from the Z-Report.

Send amounts as numbers in the account currency's minor units (for example, 1250 for 12.50). Set a field to 0 to clear it. Keys not included in the request remain unchanged. Read the current values from input in Cost of goods · Details before updating them.

{ "cash": 1250, "cards": 3400 }

Status codes

  • 200 on success
  • 404 if the report was not found

Response properties

The response is the complete updated input object.