Schematic · Capability

Schematic API — credits

Schematic API — credits. 29 operations. Lead operation: List billing credits. Self-contained Naftiko capability covering one Schematic business surface.

Run with Naftiko Schematiccredits

What You Can Do

GET
Listbillingcredits — List billing credits
/v1/billing/credits
POST
Createbillingcredit — Create billing credit
/v1/billing/credits
GET
Listcompanycreditbalances — List company credit balances
/v1/billing/credits/balance
GET
Listcreditbundles — List credit bundles
/v1/billing/credits/bundles
POST
Createcreditbundle — Create credit bundle
/v1/billing/credits/bundles
GET
Countcreditbundles — Count credit bundles
/v1/billing/credits/bundles/count
GET
Getcreditbundle — Get credit bundle
/v1/billing/credits/bundles/{bundle-id}
PUT
Updatecreditbundledetails — Update credit bundle details
/v1/billing/credits/bundles/{bundle-id}
DELETE
Deletecreditbundle — Delete credit bundle
/v1/billing/credits/bundles/{bundle-id}
GET
Countbillingcredits — Count billing credits
/v1/billing/credits/count
POST
Grantbillingcreditstocompany — Grant billing credits to company
/v1/billing/credits/grants/company
GET
Countcompanygrants — Count company grants
/v1/billing/credits/grants/company/count
GET
Listcompanygrants — List company grants
/v1/billing/credits/grants/company/list
GET
Countbillingcreditsgrants — Count billing credits grants
/v1/billing/credits/grants/count
GET
Listgrantsforcredit — List grants for credit
/v1/billing/credits/grants/list
PUT
Zerooutgrant — Zero out grant
/v1/billing/credits/grants/{grant-id}/zero-out
GET
Getenrichedcreditledger — Get enriched credit ledger
/v1/billing/credits/ledger
GET
Countcreditledger — Count credit ledger
/v1/billing/credits/ledger/count
GET
Listbillingplancreditgrants — List billing plan credit grants
/v1/billing/credits/plan-grants
POST
Createbillingplancreditgrant — Create billing plan credit grant
/v1/billing/credits/plan-grants
GET
Countbillingplancreditgrants — Count billing plan credit grants
/v1/billing/credits/plan-grants/count
GET
Getsinglebillingplancreditgrant — Get single billing plan credit grant
/v1/billing/credits/plan-grants/{plan-grant-id}
PUT
Updatebillingplancreditgrant — Update billing plan credit grant
/v1/billing/credits/plan-grants/{plan-grant-id}
DELETE
Deletebillingplancreditgrant — Delete billing plan credit grant
/v1/billing/credits/plan-grants/{plan-grant-id}
GET
Getsinglebillingcredit — Get single billing credit
/v1/billing/credits/{credit-id}
PUT
Updatebillingcredit — Update billing credit
/v1/billing/credits/{credit-id}
DELETE
Softdeletebillingcredit — Soft delete billing credit
/v1/billing/credits/{credit-id}
GET
Listcrediteventledger — List credit event ledger
/v1/v2/billing/credits/ledger
GET
Countcrediteventledger — Count credit event ledger
/v1/v2/billing/credits/ledger/count

MCP Tools

list-billing-credits

List billing credits

read-only idempotent
create-billing-credit

Create billing credit

list-company-credit-balances

List company credit balances

read-only idempotent
list-credit-bundles

List credit bundles

read-only idempotent
create-credit-bundle

Create credit bundle

count-credit-bundles

Count credit bundles

read-only idempotent
get-credit-bundle

Get credit bundle

read-only idempotent
update-credit-bundle-details

Update credit bundle details

idempotent
delete-credit-bundle

Delete credit bundle

idempotent
count-billing-credits

Count billing credits

read-only idempotent
grant-billing-credits-company

Grant billing credits to company

count-company-grants

Count company grants

read-only idempotent
list-company-grants

List company grants

read-only idempotent
count-billing-credits-grants

Count billing credits grants

read-only idempotent
list-grants-credit

List grants for credit

read-only idempotent
zero-out-grant

Zero out grant

idempotent
get-enriched-credit-ledger

Get enriched credit ledger

read-only idempotent
count-credit-ledger

Count credit ledger

read-only idempotent
list-billing-plan-credit-grants

List billing plan credit grants

read-only idempotent
create-billing-plan-credit-grant

Create billing plan credit grant

count-billing-plan-credit-grants

Count billing plan credit grants

read-only idempotent
get-single-billing-plan-credit

Get single billing plan credit grant

read-only idempotent
update-billing-plan-credit-grant

Update billing plan credit grant

idempotent
delete-billing-plan-credit-grant

Delete billing plan credit grant

idempotent
get-single-billing-credit

Get single billing credit

read-only idempotent
update-billing-credit

Update billing credit

idempotent
soft-delete-billing-credit

Soft delete billing credit

idempotent
list-credit-event-ledger

List credit event ledger

read-only idempotent
count-credit-event-ledger

Count credit event ledger

read-only idempotent

Capability Spec

schematic-credits.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Schematic API — credits
  description: 'Schematic API — credits. 29 operations. Lead operation: List billing credits. Self-contained Naftiko capability
    covering one Schematic business surface.'
  tags:
  - Schematic
  - credits
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SCHEMATIC_API_KEY: SCHEMATIC_API_KEY
capability:
  consumes:
  - type: http
    namespace: schematic-credits
    baseUri: https://api.schematichq.com
    description: Schematic API — credits business capability. Self-contained, no shared references.
    resources:
    - name: billing-credits
      path: /billing/credits
      operations:
      - name: listbillingcredits
        method: GET
        description: List billing credits
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ids
          in: query
          type: array
        - name: name
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
      - name: createbillingcredit
        method: POST
        description: Create billing credit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: billing-credits-balance
      path: /billing/credits/balance
      operations:
      - name: listcompanycreditbalances
        method: GET
        description: List company credit balances
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: company_id
          in: query
          type: string
          required: true
    - name: billing-credits-bundles
      path: /billing/credits/bundles
      operations:
      - name: listcreditbundles
        method: GET
        description: List credit bundles
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ids
          in: query
          type: array
        - name: credit_id
          in: query
          type: string
        - name: status
          in: query
          type: string
        - name: bundle_type
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
      - name: createcreditbundle
        method: POST
        description: Create credit bundle
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: billing-credits-bundles-count
      path: /billing/credits/bundles/count
      operations:
      - name: countcreditbundles
        method: GET
        description: Count credit bundles
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ids
          in: query
          type: array
        - name: credit_id
          in: query
          type: string
        - name: status
          in: query
          type: string
        - name: bundle_type
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
    - name: billing-credits-bundles-bundle_id
      path: /billing/credits/bundles/{bundle_id}
      operations:
      - name: getcreditbundle
        method: GET
        description: Get credit bundle
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: bundle_id
          in: path
          type: string
          description: bundle_id
          required: true
      - name: updatecreditbundledetails
        method: PUT
        description: Update credit bundle details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: bundle_id
          in: path
          type: string
          description: bundle_id
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecreditbundle
        method: DELETE
        description: Delete credit bundle
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: bundle_id
          in: path
          type: string
          description: bundle_id
          required: true
    - name: billing-credits-count
      path: /billing/credits/count
      operations:
      - name: countbillingcredits
        method: GET
        description: Count billing credits
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ids
          in: query
          type: array
        - name: name
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
    - name: billing-credits-grants-company
      path: /billing/credits/grants/company
      operations:
      - name: grantbillingcreditstocompany
        method: POST
        description: Grant billing credits to company
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: billing-credits-grants-company-count
      path: /billing/credits/grants/company/count
      operations:
      - name: countcompanygrants
        method: GET
        description: Count company grants
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: company_id
          in: query
          type: string
        - name: order
          in: query
          type: string
        - name: dir
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
    - name: billing-credits-grants-company-list
      path: /billing/credits/grants/company/list
      operations:
      - name: listcompanygrants
        method: GET
        description: List company grants
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: company_id
          in: query
          type: string
        - name: order
          in: query
          type: string
        - name: dir
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
    - name: billing-credits-grants-count
      path: /billing/credits/grants/count
      operations:
      - name: countbillingcreditsgrants
        method: GET
        description: Count billing credits grants
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: credit_id
          in: query
          type: string
        - name: ids
          in: query
          type: array
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
    - name: billing-credits-grants-list
      path: /billing/credits/grants/list
      operations:
      - name: listgrantsforcredit
        method: GET
        description: List grants for credit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: credit_id
          in: query
          type: string
        - name: ids
          in: query
          type: array
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
    - name: billing-credits-grants-grant_id-zero-out
      path: /billing/credits/grants/{grant_id}/zero-out
      operations:
      - name: zerooutgrant
        method: PUT
        description: Zero out grant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: grant_id
          in: path
          type: string
          description: grant_id
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: billing-credits-ledger
      path: /billing/credits/ledger
      operations:
      - name: getenrichedcreditledger
        method: GET
        description: Get enriched credit ledger
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: company_id
          in: query
          type: string
          required: true
        - name: billing_credit_id
          in: query
          type: string
        - name: feature_id
          in: query
          type: string
        - name: period
          in: query
          type: string
          required: true
        - name: start_time
          in: query
          type: string
        - name: end_time
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
    - name: billing-credits-ledger-count
      path: /billing/credits/ledger/count
      operations:
      - name: countcreditledger
        method: GET
        description: Count credit ledger
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: company_id
          in: query
          type: string
          required: true
        - name: billing_credit_id
          in: query
          type: string
        - name: feature_id
          in: query
          type: string
        - name: period
          in: query
          type: string
          required: true
        - name: start_time
          in: query
          type: string
        - name: end_time
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
    - name: billing-credits-plan-grants
      path: /billing/credits/plan-grants
      operations:
      - name: listbillingplancreditgrants
        method: GET
        description: List billing plan credit grants
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: credit_id
          in: query
          type: string
        - name: ids
          in: query
          type: array
        - name: plan_id
          in: query
          type: string
        - name: plan_ids
          in: query
          type: array
        - name: plan_version_id
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
      - name: createbillingplancreditgrant
        method: POST
        description: Create billing plan credit grant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: billing-credits-plan-grants-count
      path: /billing/credits/plan-grants/count
      operations:
      - name: countbillingplancreditgrants
        method: GET
        description: Count billing plan credit grants
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: credit_id
          in: query
          type: string
        - name: ids
          in: query
          type: array
        - name: plan_id
          in: query
          type: string
        - name: plan_ids
          in: query
          type: array
        - name: plan_version_id
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
    - name: billing-credits-plan-grants-plan_grant_id
      path: /billing/credits/plan-grants/{plan_grant_id}
      operations:
      - name: getsinglebillingplancreditgrant
        method: GET
        description: Get single billing plan credit grant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: plan_grant_id
          in: path
          type: string
          description: plan_grant_id
          required: true
      - name: updatebillingplancreditgrant
        method: PUT
        description: Update billing plan credit grant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: plan_grant_id
          in: path
          type: string
          description: plan_grant_id
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletebillingplancreditgrant
        method: DELETE
        description: Delete billing plan credit grant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: plan_grant_id
          in: path
          type: string
          description: plan_grant_id
          required: true
        - name: apply_to_existing
          in: query
          type: boolean
    - name: billing-credits-credit_id
      path: /billing/credits/{credit_id}
      operations:
      - name: getsinglebillingcredit
        method: GET
        description: Get single billing credit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: credit_id
          in: path
          type: string
          description: credit_id
          required: true
      - name: updatebillingcredit
        method: PUT
        description: Update billing credit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: credit_id
          in: path
          type: string
          description: credit_id
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: softdeletebillingcredit
        method: DELETE
        description: Soft delete billing credit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: credit_id
          in: path
          type: string
          description: credit_id
          required: true
    - name: v2-billing-credits-ledger
      path: /v2/billing/credits/ledger
      operations:
      - name: listcrediteventledger
        method: GET
        description: List credit event ledger
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: billing_credit_id
          in: query
          type: string
        - name: company_id
          in: query
          type: string
          required: true
        - name: end_time
          in: query
          type: string
        - name: event_type
          in: query
          type: string
        - name: feature_id
          in: query
          type: string
        - name: start_time
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
    - name: v2-billing-credits-ledger-count
      path: /v2/billing/credits/ledger/count
      operations:
      - name: countcrediteventledger
        method: GET
        description: Count credit event ledger
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: billing_credit_id
          in: query
          type: string
        - name: company_id
          in: query
          type: string
          required: true
        - name: end_time
          in: query
          type: string
        - name: event_type
          in: query
          type: string
        - name: feature_id
          in: query
          type: string
        - name: start_time
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Page limit (default 100)
        - name: offset
          in: query
          type: integer
          description: Page offset (default 0)
    authentication:
      type: apikey
      key: X-Schematic-Api-Key
      value: '{{env.SCHEMATIC_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: schematic-credits-rest
    port: 8080
    description: REST adapter for Schematic API — credits. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/billing/credits
      name: billing-credits
      description: REST surface for billing-credits.
      operations:
      - method: GET
        name: listbillingcredits
        description: List billing credits
        call: schematic-credits.listbillingcredits
        with:
          ids: rest.ids
          name: rest.name
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createbillingcredit
        description: Create billing credit
        call: schematic-credits.createbillingcredit
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/balance
      name: billing-credits-balance
      description: REST surface for billing-credits-balance.
      operations:
      - method: GET
        name: listcompanycreditbalances
        description: List company credit balances
        call: schematic-credits.listcompanycreditbalances
        with:
          company_id: rest.company_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/bundles
      name: billing-credits-bundles
      description: REST surface for billing-credits-bundles.
      operations:
      - method: GET
        name: listcreditbundles
        description: List credit bundles
        call: schematic-credits.listcreditbundles
        with:
          ids: rest.ids
          credit_id: rest.credit_id
          status: rest.status
          bundle_type: rest.bundle_type
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcreditbundle
        description: Create credit bundle
        call: schematic-credits.createcreditbundle
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/bundles/count
      name: billing-credits-bundles-count
      description: REST surface for billing-credits-bundles-count.
      operations:
      - method: GET
        name: countcreditbundles
        description: Count credit bundles
        call: schematic-credits.countcreditbundles
        with:
          ids: rest.ids
          credit_id: rest.credit_id
          status: rest.status
          bundle_type: rest.bundle_type
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/bundles/{bundle-id}
      name: billing-credits-bundles-bundle-id
      description: REST surface for billing-credits-bundles-bundle_id.
      operations:
      - method: GET
        name: getcreditbundle
        description: Get credit bundle
        call: schematic-credits.getcreditbundle
        with:
          bundle_id: rest.bundle_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecreditbundledetails
        description: Update credit bundle details
        call: schematic-credits.updatecreditbundledetails
        with:
          bundle_id: rest.bundle_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecreditbundle
        description: Delete credit bundle
        call: schematic-credits.deletecreditbundle
        with:
          bundle_id: rest.bundle_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/count
      name: billing-credits-count
      description: REST surface for billing-credits-count.
      operations:
      - method: GET
        name: countbillingcredits
        description: Count billing credits
        call: schematic-credits.countbillingcredits
        with:
          ids: rest.ids
          name: rest.name
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/grants/company
      name: billing-credits-grants-company
      description: REST surface for billing-credits-grants-company.
      operations:
      - method: POST
        name: grantbillingcreditstocompany
        description: Grant billing credits to company
        call: schematic-credits.grantbillingcreditstocompany
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/grants/company/count
      name: billing-credits-grants-company-count
      description: REST surface for billing-credits-grants-company-count.
      operations:
      - method: GET
        name: countcompanygrants
        description: Count company grants
        call: schematic-credits.countcompanygrants
        with:
          company_id: rest.company_id
          order: rest.order
          dir: rest.dir
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/grants/company/list
      name: billing-credits-grants-company-list
      description: REST surface for billing-credits-grants-company-list.
      operations:
      - method: GET
        name: listcompanygrants
        description: List company grants
        call: schematic-credits.listcompanygrants
        with:
          company_id: rest.company_id
          order: rest.order
          dir: rest.dir
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/grants/count
      name: billing-credits-grants-count
      description: REST surface for billing-credits-grants-count.
      operations:
      - method: GET
        name: countbillingcreditsgrants
        description: Count billing credits grants
        call: schematic-credits.countbillingcreditsgrants
        with:
          credit_id: rest.credit_id
          ids: rest.ids
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/grants/list
      name: billing-credits-grants-list
      description: REST surface for billing-credits-grants-list.
      operations:
      - method: GET
        name: listgrantsforcredit
        description: List grants for credit
        call: schematic-credits.listgrantsforcredit
        with:
          credit_id: rest.credit_id
          ids: rest.ids
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/grants/{grant-id}/zero-out
      name: billing-credits-grants-grant-id-zero-out
      description: REST surface for billing-credits-grants-grant_id-zero-out.
      operations:
      - method: PUT
        name: zerooutgrant
        description: Zero out grant
        call: schematic-credits.zerooutgrant
        with:
          grant_id: rest.grant_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/ledger
      name: billing-credits-ledger
      description: REST surface for billing-credits-ledger.
      operations:
      - method: GET
        name: getenrichedcreditledger
        description: Get enriched credit ledger
        call: schematic-credits.getenrichedcreditledger
        with:
          company_id: rest.company_id
          billing_credit_id: rest.billing_credit_id
          feature_id: rest.feature_id
          period: rest.period
          start_time: rest.start_time
          end_time: rest.end_time
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/ledger/count
      name: billing-credits-ledger-count
      description: REST surface for billing-credits-ledger-count.
      operations:
      - method: GET
        name: countcreditledger
        description: Count credit ledger
        call: schematic-credits.countcreditledger
        with:
          company_id: rest.company_id
          billing_credit_id: rest.billing_credit_id
          feature_id: rest.feature_id
          period: rest.period
          start_time: rest.start_time
          end_time: rest.end_time
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/plan-grants
      name: billing-credits-plan-grants
      description: REST surface for billing-credits-plan-grants.
      operations:
      - method: GET
        name: listbillingplancreditgrants
        description: List billing plan credit grants
        call: schematic-credits.listbillingplancreditgrants
        with:
          credit_id: rest.credit_id
          ids: rest.ids
          plan_id: rest.plan_id
          plan_ids: rest.plan_ids
          plan_version_id: rest.plan_version_id
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createbillingplancreditgrant
        description: Create billing plan credit grant
        call: schematic-credits.createbillingplancreditgrant
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/plan-grants/count
      name: billing-credits-plan-grants-count
      description: REST surface for billing-credits-plan-grants-count.
      operations:
      - method: GET
        name: countbillingplancreditgrants
        description: Count billing plan credit grants
        call: schematic-credits.countbillingplancreditgrants
        with:
          credit_id: rest.credit_id
          ids: rest.ids
          plan_id: rest.plan_id
          plan_ids: rest.plan_ids
          plan_version_id: rest.plan_version_id
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/plan-grants/{plan-grant-id}
      name: billing-credits-plan-grants-plan-grant-id
      description: REST surface for billing-credits-plan-grants-plan_grant_id.
      operations:
      - method: GET
        name: getsinglebillingplancreditgrant
        description: Get single billing plan credit grant
        call: schematic-credits.getsinglebillingplancreditgrant
        with:
          plan_grant_id: rest.plan_grant_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatebillingplancreditgrant
        description: Update billing plan credit grant
        call: schematic-credits.updatebillingplancreditgrant
        with:
          plan_grant_id: rest.plan_grant_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletebillingplancreditgrant
        description: Delete billing plan credit grant
        call: schematic-credits.deletebillingplancreditgrant
        with:
          plan_grant_id: rest.plan_grant_id
          apply_to_existing: rest.apply_to_existing
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billing/credits/{credit-id}
      name: billing-credits-credit-id
      description: REST surface for billing-credits-credit_id.
      operations:
      - method: GET
        name: getsinglebillingcredit
        description: Get single billing credit
        call: schematic-credits.getsinglebillingcredit
        with:
          credit_id: rest.credit_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatebillingcredit
        description: Update billing credit
        call: schematic-credits.updatebillingcredit
        with:
          credit_id: rest.credit_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: softdeletebillingcredit
        description: Soft delete billing credit
        call: schematic-credits.softdeletebillingcredit
        with:
          credit_id: rest.credit_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/billing/credits/ledger
      name: v2-billing-credits-ledger
      description: REST surface for v2-billing-credits-ledger.
      operations:
      - method: GET
        name: listcrediteventledger
        description: List credit event ledger
  

# --- truncated at 32 KB (45 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/schematic/refs/heads/main/capabilities/schematic-credits.yaml