Examples

How to perform Metrics API queries on the analysis endpoint

FBT

The following request performs a FBT query on the analysis endpoint:

curl -g -X POST \
  'https://{{your_domain}}.commercelayer.io/metrics/analysis/fbt' \
  -H 'Accept: application/vnd.api.v1+json' \
  -H 'Content-Type: application/vnd.api+json' \
  -H 'Authorization: Bearer {{your_access_token}}' \
  -d '{
    "filter": {
      "line_items": {
        "item_ids": {
          "in": [ "adGhjZHKt8" ]
        }
      }
    }
  }'

Last updated