aria-partner-api

Scan credits

A credit pays for one on-demand scan, such as Trial Scan. Credits are bought into your partner’s pool through your Kanary contact or the admin dashboard. The API has no route to list balances or assign credits by hand. Credits reach a member in two ways:

Event Effect
POST /api/v1/partner/accounts/ with an on-demand product_id One credit moves from the pool to the new member. The call returns 402 (error: insufficient_credits) when the pool is empty
POST /api/v1/partner/members/{member_id}/scan_requests/ Spends the member’s credit. A member with none is assigned one from the pool first. The call returns 402 (error: no_actions) when both are empty

A credit is spent whether the scan request ends complete or exhausted. Deleting a member releases credits assigned to it but not yet spent.