Meter Usage and Top Up Prepaid
A 2-step recipe with Amberflo. We can help you get access.
Recipe · 2 steps
Meter Usage and Top Up Prepaid
with Amberflo
Record usage then replenish the customer's prepaid balance.
- Ingest a meter event recording the customer's consumption.
- Create a prepaid credit order to replenish the customer's balance.
What you'll need to have ready
- apiKey: Amberflo API key supplied in the X-API-KEY header.
- meterApiName: The meter to ingest usage to.
- customerId: Customer the usage and prepaid order apply to.
- meterValue: The usage amount for the ingested event.
- meterTimeInMillis: Event timestamp in Unix milliseconds.
- uniqueId: Optional idempotency identifier for the event.
- amount: Prepaid credit amount to add.
- currency: Currency code for the prepaid order (e.g. USD).
- expirationTime: Optional prepaid order expiration in Unix milliseconds.
For your developer
Arazzo workflow amberflo:meter-usage-and-topup-prepaid, 2 operations: ingestMeterEvents → createPrepaidOrder. Specs on APIs.io.