credits

Count credit event ledger

Changed on
get/v2/billing/credits/ledger/count

Request

  • Base URL
    https://api.schematichq.com
  • URL
    https://api.schematichq.com/v2/billing/credits/ledger/count
  • Auth
    API key in header X-Schematic-Api-Key

Query parameters

billing_credit_idstring
company_idstring required
end_timestring
event_type'adjustment' | 'charge' | 'grant' | 'settlement' | 'transfer' | 'usage' | 'zero_out'
feature_idstring
source_event_idstring

Return only entries drawn by this track or inference event. Pass the event ID that POST /events returned for it.

start_timestring
limitinteger

Page limit (default 100)

offsetinteger

Page offset (default 0)

Response

OK

Changes

    • info

      added the new optional query request parameter source_event_id

    • info

      added the optional property / to the response with the status

    • warning

      added the new adjustment enum value to the / response property for the response status

    • warning

      added the new charge enum value to the / response property for the response status

    • warning

      added the new settlement enum value to the / response property for the response status

    • info

      added the new enum value adjustment to the query request parameter event_type

    • info

      added the new enum value charge to the query request parameter event_type

    • info

      added the new enum value settlement to the query request parameter event_type