Submit Custom Metric Values
POST
/api/custom-metrics
Token needs the create ability.
About tokens
Upserts daily custom-metric values for one or more locations, keyed by the location's external_id. Locations not found for the tenant are skipped (logged, not errored). Requires the create ability.
Request body application/json
-
metricstring requiredA custom metric key, e.g.custom:loyalty_signups. Must be a custom key available to the tenant. -
businessDateOnstring (date) required -
locationValuesarray of object required-
locationIdinteger requiredThe location's external_id. -
valuenumber required
-
Responses
-
-
messagestring
-
-
-
messagestring
-
-
-
messagestring -
errorsobject
-
curl -X POST "https://app.franchisesee.com/api/custom-metrics" \
-H "Authorization: Bearer $FRANCHISESEE_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"metric": "custom:loyalty_signups",
"businessDateOn": "2026-06-01",
"locationValues": [
{
"locationId": 1024,
"value": 37
},
{
"locationId": 1025,
"value": 12
}
]
}'
Response
{
"message": "Unauthenticated."
}