Meter events

Report a batch of usage events

POST/api/v1/meter-events/batch

Records 1 to 100 usage events in one call. If any event is not valid, the whole batch is refused and nothing is recorded; the message starts with events[index]. An event whose identifier had been used, earlier or earlier in the same batch, has replayed set to true and is counted once.

Authorization

bearerAuth
AuthorizationBearer <token>

An access token from POST /api/v1/oauth/token, sent as Authorization: Bearer <token>.

In: header

Header Parameters

FlexMalipo-Version?"2026-11-06"

The API version to use for this request, a date such as 2026-11-06. Without it the request uses your default version for the mode of your key. An unknown version answers 400 api_version_invalid.

Value in

  • "2026-11-06"
Idempotency-Key?string

A unique key you choose for this request: 1 to 255 visible ASCII characters, no spaces. A UUID works well. Never put personal data in it. If a request times out, send it again with the same key and the same body to get the first response back, with the header Idempotent-Replayed: true. A key is kept for 24 hours. Sending the same key with another body answers 400 idempotency_key_reused.

Match^[\x21-\x7E]+$
Length1 <= length <= 255

Request Body

application/json

Up to 100 usage events. If one is not valid, none is recorded.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api-malipo.flex.co.tz/api/v1/meter-events/batch" \  -H "Authorization: Bearer <token>" \  -H "FlexMalipo-Version: 2026-11-06" \  -H "Idempotency-Key: 5f1c1e0a-3b7e-4c8e-9d1a-2f6b8a4c7e11" \  -H "Content-Type: application/json" \  -d '{}'
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "livemode": true,      "eventName": "api_requests",      "customer": "0ac6320b-fa4d-4235-8d23-413a2b863bad",      "identifier": "req_8f14e45f",      "value": 12,      "dimensions": {        "region": "eu"      },      "timestamp": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "replayed": true    }  ]}