GET
/
v0
/
reports
/
gross-profit-by-period
curl --request GET \
  --url https://api.sandbox.teal.dev/v0/reports/gross-profit-by-period \
  --header 'Authorization: Bearer <token>' \
  --header 'teal-instance-id: <teal-instance-id>'
{
  "entries": [
    {
      "period": "Jan 2024",
      "totals": {
        "cost_of_goods_sold": 148934.41,
        "gross_profit": 26469.88,
        "operating_revenue": 175404.29
      }
    },
    {
      "period": "Feb 2024",
      "totals": {
        "cost_of_goods_sold": 172624.45,
        "gross_profit": 12163.96,
        "operating_revenue": 184788.41
      }
    },
    {
      "period": "Mar 2024",
      "totals": {
        "cost_of_goods_sold": 291035.17,
        "gross_profit": 32163.24,
        "operating_revenue": 323198.41
      }
    }
  ]
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

teal-instance-id
string
required

The Teal instance ID

Query Parameters

period
enum<string>
required

Determines how the data is segmented.

Available options:
daily,
monthly,
quarterly,
yearly
start_date
string
required

Only include data after the start date (inclusive).

end_date
string
required

Only include data before the end date (inclusive).

tag_ids
string

Comma-separated list of tag ids for filtering. Requires a Tier 3 subscription

Response

200 - application/json
entries
object[]
required

A list of report summary totals broken down by period between the start date and end date.