{
  "opencollection": "1.0.0",
  "info": {
    "name": "SAP BRIM ( and Revenue Innovation Management) SAP BRIM Convergent Charging Balances Billing API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://auth.sap.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Billing",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "SAP BRIM (Billing and Revenue Innovation Management) Get subscription billing history",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sap.com/convergent-charging/v1/subscriptions/:subscriptionId/billing-history",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the subscription"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Number of items to skip for pagination"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of items to return"
              }
            ]
          },
          "docs": "Retrieves the billing history for a subscription, including all generated invoices and payment records."
        },
        {
          "info": {
            "name": "SAP BRIM (Billing and Revenue Innovation Management) Generate an invoice for a subscription",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sap.com/convergent-charging/v1/subscriptions/:subscriptionId/generate-invoice",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the subscription"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Manually triggers invoice generation for a subscription outside of the normal billing cycle. Useful for ad-hoc or on-demand billing."
        }
      ]
    }
  ],
  "bundled": true
}