Skip to main content
POST
Python

Authorizations

Authorization
string
header
required

You can generate a Personal Access Token from your settings.

Body

application/json

Schema to manually grant credits on a customer meter using Polar IDs.

units
integer
required

The number of units to credit.

Required range: x <= 1000000000
Example:

100

customer_id
string<uuid4>
required

The ID of the customer.

Example:

"992fae2a-2a17-4b7a-8d9e-e287cf90131b"

meter_id
string<uuid4>
required

The ID of the meter.

Example:

"d498a884-e2cd-4d3e-8002-f536468a8b22"

rollover
boolean
default:false

Whether unused credits carry over to the next meter period.

external_id
string | null

Your unique identifier for this credit. Retrying with the same external_id doesn't grant the credit twice.

Minimum string length: 1

Response

Credit recorded and the customer meter balance updated. If the meter is being updated concurrently, the balance catches up shortly after.

An event created by Polar when credits are added to a customer meter.

id
string<uuid4>
required

The ID of the object.

timestamp
string<date-time>
required

The timestamp of the event.

Example:

"2026-01-01T00:00:00.000000Z"

organization_id
string<uuid4>
required

The ID of the organization owning the event.

Example:

"1dbfc517-0bbf-4301-9ba8-555ca42b9737"

customer_id
string<uuid4> | null
required

ID of the customer in your Polar organization associated with the event.

customer
CustomerIndividual · object
required

The customer associated with the event.

external_customer_id
string | null
required

ID of the customer in your system associated with the event.

label
string
required

Human readable label of the event type.

source
string
required

The source of the event. system events are created by Polar. user events are the one you create through our ingestion API.

Allowed value: "system"
name
string
required

The name of the event.

Allowed value: "meter.credited"
metadata
MeterCreditedMetadata · object
required
member_id
string<uuid4> | null

ID of the member within the customer's organization who performed the action inside B2B.

external_member_id
string | null

ID of the member in your system within the customer's organization who performed the action inside B2B.

child_count
integer
default:0

Number of direct child events linked to this event.

parent_id
string<uuid4> | null

The ID of the parent event.