SAP BRIM Authorize a Charge or Release on Insufficient Balance

Version 1.0.0

Check the balance, reserve an amount, and release the reservation when it is not needed.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub BillingEnterpriseOrder-to-CashRevenue ManagementSAPSubscription ManagementUsage-Based PricingArazzoWorkflows

Provider

sap-brim-billing-and-revenue-innovation-management

Workflows

authorize-or-release
Authorize a reservation and release it to restore the held funds.
Reads the account balance, authorizes a reservation, and releases the authorization so the reserved amount returns to the available balance.
3 steps inputs: accountId, amountValue, currency, serviceType outputs: authorizationId, releaseStatus, releasedAt
1
getBalance
Read the current balance for the account before reserving.
2
authorize
Reserve the amount against the prepaid balance.
3
release
Release the authorization, restoring the reserved amount to the balance.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: SAP BRIM Authorize a Charge or Release on Insufficient Balance
  summary: Check the balance, reserve an amount, and release the reservation when it is not needed.
  description: >-
    Reserves an amount against a prepaid account on SAP BRIM Convergent Charging
    and then releases that reservation, returning the funds. The workflow reads
    the current balance, authorizes a reservation, and releases it so the held
    amount is restored to the available balance. Every step spells out its
    request inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: balancesApi
  url: ../openapi/sap-brim-billing-and-revenue-innovation-management-balances-api-openapi.yml
  type: openapi
- name: chargingApi
  url: ../openapi/sap-brim-billing-and-revenue-innovation-management-charging-api-openapi.yml
  type: openapi
workflows:
- workflowId: authorize-or-release
  summary: Authorize a reservation and release it to restore the held funds.
  description: >-
    Reads the account balance, authorizes a reservation, and releases the
    authorization so the reserved amount returns to the available balance.
  inputs:
    type: object
    required:
    - accountId
    - amountValue
    - currency
    properties:
      accountId:
        type: string
        description: Identifier of the subscriber account.
      amountValue:
        type: number
        description: Amount value to reserve against the account.
      currency:
        type: string
        description: ISO 4217 currency code for the reservation.
      serviceType:
        type: string
        description: Optional service type associated with the authorization.
  steps:
  - stepId: getBalance
    description: Read the current balance for the account before reserving.
    operationId: getAccountBalance
    parameters:
    - name: accountId
      in: path
      value: $inputs.accountId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      availableBalance: $response.body#/availableBalance
  - stepId: authorize
    description: Reserve the amount against the prepaid balance.
    operationId: authorizeCharge
    requestBody:
      contentType: application/json
      payload:
        accountId: $inputs.accountId
        amount:
          value: $inputs.amountValue
          currency: $inputs.currency
        serviceType: $inputs.serviceType
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      authorizationId: $response.body#/authorizationId
      status: $response.body#/status
    onSuccess:
    - name: reserved
      type: goto
      stepId: release
      criteria:
      - context: $response.body
        condition: $.status == "AUTHORIZED"
        type: jsonpath
  - stepId: release
    description: Release the authorization, restoring the reserved amount to the balance.
    operationId: releaseAuthorization
    parameters:
    - name: authorizationId
      in: path
      value: $steps.authorize.outputs.authorizationId
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.status == "RELEASED"
      type: jsonpath
    outputs:
      authorizationId: $response.body#/authorizationId
      status: $response.body#/status
      releasedAt: $response.body#/releasedAt
  outputs:
    authorizationId: $steps.release.outputs.authorizationId
    releaseStatus: $steps.release.outputs.status
    releasedAt: $steps.release.outputs.releasedAt

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/sap-brim-billing-and-revenue-innovation-management-authorize-or-release-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.