Skip to main content
POST
/
api
/
v1
/
reports
/
stream
/
batch
Stream multiple report sections in sequence
curl --request POST \
  --url https://tiwih-api.vercel.app/api/v1/reports/stream/batch \
  --header 'Content-Type: application/json' \
  --data '
{
  "sectionKeys": [
    "<string>"
  ],
  "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
  }
}
'

Body

application/json
sectionKeys
string[]
required
Minimum array length: 1
orderItems
object[]
orderMetadata
object

Response

SSE stream of batch report sections