Skip to main content
POST
/
api
/
v1
/
reports
/
stream
/
{sectionKey}
Stream a single report section
curl --request POST \
  --url https://tiwih-api.vercel.app/api/v1/reports/stream/{sectionKey} \
  --header 'Content-Type: application/json' \
  --data '
{
  "orderItems": [
    {
      "strainName": "<string>",
      "grams": 123,
      "price": 123,
      "thcPct": 123,
      "cbdPct": 123,
      "type": "sativa",
      "terpenes": [
        {
          "name": "<string>",
          "percentage": 123
        }
      ],
      "effects": [
        "<string>"
      ],
      "aromas": [
        "<string>"
      ]
    }
  ],
  "orderMetadata": {
    "dispensaryName": "<string>",
    "orderDate": "<string>",
    "totalSpent": 123
  },
  "previousSections": {}
}
'

Path Parameters

sectionKey
string
required

Body

application/json
orderItems
object[]
orderMetadata
object
previousSections
object

Response

SSE stream of a single report section