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 call: schematic-credits.listcrediteventledger with: billing_credit_id: rest.billing_credit_id company_id: rest.company_id end_time: rest.end_time event_type: rest.event_type feature_id: rest.feature_id start_time: rest.start_time limit: rest.limit offset: rest.offset outputParameters: - type: object mapping: $. - path: /v1/v2/billing/credits/ledger/count name: v2-billing-credits-ledger-count description: REST surface for v2-billing-credits-ledger-count. operations: - method: GET name: countcrediteventledger description: Count credit event ledger call: schematic-credits.countcrediteventledger with: billing_credit_id: rest.billing_credit_id company_id: rest.company_id end_time: rest.end_time event_type: rest.event_type feature_id: rest.feature_id start_time: rest.start_time limit: rest.limit offset: rest.offset outputParameters: - type: object mapping: $. - type: mcp namespace: schematic-credits-mcp port: 9090 transport: http description: MCP adapter for Schematic API — credits. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-billing-credits description: List billing credits hints: readOnly: true destructive: false idempotent: true call: schematic-credits.listbillingcredits with: ids: tools.ids name: tools.name limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: create-billing-credit description: Create billing credit hints: readOnly: false destructive: false idempotent: false call: schematic-credits.createbillingcredit with: body: tools.body outputParameters: - type: object mapping: $. - name: list-company-credit-balances description: List company credit balances hints: readOnly: true destructive: false idempotent: true call: schematic-credits.listcompanycreditbalances with: company_id: tools.company_id outputParameters: - type: object mapping: $. - name: list-credit-bundles description: List credit bundles hints: readOnly: true destructive: false idempotent: true call: schematic-credits.listcreditbundles with: ids: tools.ids credit_id: tools.credit_id status: tools.status bundle_type: tools.bundle_type limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: create-credit-bundle description: Create credit bundle hints: readOnly: false destructive: false idempotent: false call: schematic-credits.createcreditbundle with: body: tools.body outputParameters: - type: object mapping: $. - name: count-credit-bundles description: Count credit bundles hints: readOnly: true destructive: false idempotent: true call: schematic-credits.countcreditbundles with: ids: tools.ids credit_id: tools.credit_id status: tools.status bundle_type: tools.bundle_type limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: get-credit-bundle description: Get credit bundle hints: readOnly: true destructive: false idempotent: true call: schematic-credits.getcreditbundle with: bundle_id: tools.bundle_id outputParameters: - type: object mapping: $. - name: update-credit-bundle-details description: Update credit bundle details hints: readOnly: false destructive: false idempotent: true call: schematic-credits.updatecreditbundledetails with: bundle_id: tools.bundle_id body: tools.body outputParameters: - type: object mapping: $. - name: delete-credit-bundle description: Delete credit bundle hints: readOnly: false destructive: true idempotent: true call: schematic-credits.deletecreditbundle with: bundle_id: tools.bundle_id outputParameters: - type: object mapping: $. - name: count-billing-credits description: Count billing credits hints: readOnly: true destructive: false idempotent: true call: schematic-credits.countbillingcredits with: ids: tools.ids name: tools.name limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: grant-billing-credits-company description: Grant billing credits to company hints: readOnly: false destructive: false idempotent: false call: schematic-credits.grantbillingcreditstocompany with: body: tools.body outputParameters: - type: object mapping: $. - name: count-company-grants description: Count company grants hints: readOnly: true destructive: false idempotent: true call: schematic-credits.countcompanygrants with: company_id: tools.company_id order: tools.order dir: tools.dir limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: list-company-grants description: List company grants hints: readOnly: true destructive: false idempotent: true call: schematic-credits.listcompanygrants with: company_id: tools.company_id order: tools.order dir: tools.dir limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: count-billing-credits-grants description: Count billing credits grants hints: readOnly: true destructive: false idempotent: true call: schematic-credits.countbillingcreditsgrants with: credit_id: tools.credit_id ids: tools.ids limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: list-grants-credit description: List grants for credit hints: readOnly: true destructive: false idempotent: true call: schematic-credits.listgrantsforcredit with: credit_id: tools.credit_id ids: tools.ids limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: zero-out-grant description: Zero out grant hints: readOnly: false destructive: false idempotent: true call: schematic-credits.zerooutgrant with: grant_id: tools.grant_id body: tools.body outputParameters: - type: object mapping: $. - name: get-enriched-credit-ledger description: Get enriched credit ledger hints: readOnly: true destructive: false idempotent: true call: schematic-credits.getenrichedcreditledger with: company_id: tools.company_id billing_credit_id: tools.billing_credit_id feature_id: tools.feature_id period: tools.period start_time: tools.start_time end_time: tools.end_time limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: count-credit-ledger description: Count credit ledger hints: readOnly: true destructive: false idempotent: true call: schematic-credits.countcreditledger with: company_id: tools.company_id billing_credit_id: tools.billing_credit_id feature_id: tools.feature_id period: tools.period start_time: tools.start_time end_time: tools.end_time limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: list-billing-plan-credit-grants description: List billing plan credit grants hints: readOnly: true destructive: false idempotent: true call: schematic-credits.listbillingplancreditgrants with: credit_id: tools.credit_id ids: tools.ids plan_id: tools.plan_id plan_ids: tools.plan_ids plan_version_id: tools.plan_version_id limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: create-billing-plan-credit-grant description: Create billing plan credit grant hints: readOnly: false destructive: false idempotent: false call: schematic-credits.createbillingplancreditgrant with: body: tools.body outputParameters: - type: object mapping: $. - name: count-billing-plan-credit-grants description: Count billing plan credit grants hints: readOnly: true destructive: false idempotent: true call: schematic-credits.countbillingplancreditgrants with: credit_id: tools.credit_id ids: tools.ids plan_id: tools.plan_id plan_ids: tools.plan_ids plan_version_id: tools.plan_version_id limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: get-single-billing-plan-credit description: Get single billing plan credit grant hints: readOnly: true destructive: false idempotent: true call: schematic-credits.getsinglebillingplancreditgrant with: plan_grant_id: tools.plan_grant_id outputParameters: - type: object mapping: $. - name: update-billing-plan-credit-grant description: Update billing plan credit grant hints: readOnly: false destructive: false idempotent: true call: schematic-credits.updatebillingplancreditgrant with: plan_grant_id: tools.plan_grant_id body: tools.body outputParameters: - type: object mapping: $. - name: delete-billing-plan-credit-grant description: Delete billing plan credit grant hints: readOnly: false destructive: true idempotent: true call: schematic-credits.deletebillingplancreditgrant with: plan_grant_id: tools.plan_grant_id apply_to_existing: tools.apply_to_existing outputParameters: - type: object mapping: $. - name: get-single-billing-credit description: Get single billing credit hints: readOnly: true destructive: false idempotent: true call: schematic-credits.getsinglebillingcredit with: credit_id: tools.credit_id outputParameters: - type: object mapping: $. - name: update-billing-credit description: Update billing credit hints: readOnly: false destructive: false idempotent: true call: schematic-credits.updatebillingcredit with: credit_id: tools.credit_id body: tools.body outputParameters: - type: object mapping: $. - name: soft-delete-billing-credit description: Soft delete billing credit hints: readOnly: false destructive: true idempotent: true call: schematic-credits.softdeletebillingcredit with: credit_id: tools.credit_id outputParameters: - type: object mapping: $. - name: list-credit-event-ledger description: List credit event ledger hints: readOnly: true destructive: false idempotent: true call: schematic-credits.listcrediteventledger with: billing_credit_id: tools.billing_credit_id company_id: tools.company_id end_time: tools.end_time event_type: tools.event_type feature_id: tools.feature_id start_time: tools.start_time limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $. - name: count-credit-event-ledger description: Count credit event ledger hints: readOnly: true destructive: false idempotent: true call: schematic-credits.countcrediteventledger with: billing_credit_id: tools.billing_credit_id company_id: tools.company_id end_time: tools.end_time event_type: tools.event_type feature_id: tools.feature_id start_time: tools.start_time limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $.