Billing

Manage credit allocation, retrieve billing information, and calculate costs. Partners can allocate credits to organizations and monitor usage across the billing period.

Allocate Credits

Allocate credits to an organization from the partner credit pool.

Request:

PUT /partner/organizations/{organizationId}/credits

Body:

{
  "credits": 500,
  "notes": "Monthly allocation for Acme Corp"
}
Field
Type
Required
Description

credits

integer

Yes

Number of credits to allocate

notes

string

No

Optional note for the allocation

Response:

{
  "allocation": {
    "id": "uuid",
    "partnerId": "uuid",
    "organizationId": "uuid",
    "creditsAllocated": 500,
    "creditsUsed": 0,
    "creditsAvailable": 500,
    "allocatedAt": "2025-02-27T10:30:00Z"
  }
}

Example:


Get Billing Info

Retrieve billing configuration and credit pool status for the partner account.

Request:

Response:

Example:


Get Billing Period Usage

Retrieve usage and estimated cost for the current billing period.

Request:

Response:


Calculate Billing

Calculate the cost for a given usage amount. Useful for estimating costs before allocation.

Request:

Query Parameters:

Parameter
Type
Required
Description

usage

integer

Yes

Number of identifications/usage units

Response:

Example:

Last updated