Skip to content
API reference / Custom Metrics
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

  • metric string required
    A custom metric key, e.g. custom:loyalty_signups. Must be a custom key available to the tenant.
  • businessDateOn string (date) required
  • locationValues array of object required
    • locationId integer required
      The location's external_id.
    • value number required

Responses

    • message string
    • message string
    • message string
    • errors object
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."
}