Examples
How to perform Metrics API queries on the analysis endpoint
FBT
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" ]
}
}
}
}'{
"data": [
{
"item_id": "adGhjZHKt8",
"value": 1,
"type": "skus",
"name": "Black Baby Onesie Short Sleeve with Pink Logo (New born)"
}
],
"meta": {
"type": "fbt",
"trace_id": "bb74e399-af67-44b8-abf6-008c6a233b50",
"mode": "test",
"organization_id": "mzRmbZFPyO",
"market_ids": [
"AjRevhvqvo",
"dlQbPhqGro"
]
}
}Last updated