Blng Webhook API

The Webhook API from Blng — 3 operation(s) for webhook.

Operations 3

POST /billing/webhook/checkoutSessionCompleted Webhook to handle checkout session completed event
POST /billing/webhook/customerSubscriptionUpdated Webhook to handle customer subscription updates
POST /billing/webhook/customerSubscriptionDeleted Webhook to handle customer subscription deletion

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/blng-webhook-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

blng-webhook-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Billing Webhook API
  description: Api to manage user's payment and billing
  version: 1.0.0
servers:
- url: https://billing.blng.ai
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Webhook
paths:
  /billing/webhook/checkoutSessionCompleted:
    post:
      tags:
      - Webhook
      summary: Webhook to handle checkout session completed event
      description: Processes Stripe checkout session completion events and updates the billing information accordingly.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutSessionCompletedRequest'
      responses:
        '200':
          description: Successfully processed checkout session event
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Checkout session processed successfully
                  received:
                    type: boolean
                    example: true
        '400':
          description: Invalid request parameters
        '500':
          description: Internal server error
  /billing/webhook/customerSubscriptionUpdated:
    post:
      tags:
      - Webhook
      summary: Webhook to handle customer subscription updates
      description: Processes Stripe subscription updates and adjusts user subscriptions accordingly.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StripeSubscription'
      responses:
        '200':
          description: Successfully processed subscription update
          content:
            application/json:
              schema:
                type: object
                properties:
                  received:
                    type: boolean
                    example: true
        '400':
          description: Invalid request parameters
        '500':
          description: Internal server error
  /billing/webhook/customerSubscriptionDeleted:
    post:
      tags:
      - Webhook
      summary: Webhook to handle customer subscription deletion
      description: Processes Stripe subscription deletion events and updates the billing information accordingly.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StripeSubscription'
      responses:
        '200':
          description: Successfully processed subscription deletion
          content:
            application/json:
              schema:
                type: object
                properties:
                  received:
                    type: boolean
                    example: true
        '400':
          description: Invalid request parameters
        '500':
          description: Internal server error
components:
  schemas:
    StripeSubscription:
      type: object
      properties:
        id:
          type: string
          description: The ID of the stripe subscription being updated
          example: subId-xxx
        status:
          type: string
          description: Status of the subscription
          example: active
        items:
          type: array
          description: List of subscription items
          items:
            type: object
            properties:
              priceId:
                type: string
                description: The ID of the price associated with the subscription
                example: price_12345
              data:
                type: array
                description: List of subscription items
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      description: Unique identifier for the subscription item
                      example: si_12345
                    price:
                      type: object
                      description: Price details of the subscription item
                      properties:
                        id:
                          type: string
                          description: Unique identifier for the price
    CheckoutSessionCompletedRequest:
      type: object
      properties:
        userId:
          type: string
          description: The ID of the user associated with the checkout session
          example: userId-xxx
        subscriptionId:
          type: string
          description: The ID of the subscription associated with the checkout session
          example: subId-xxx
        checkoutSessionId:
          type: string
          description: The unique identifier for the Stripe checkout session
          example: checkoutSessionId-xxx
  securitySchemes:
    cognitoUserAuth:
      type: oauth2
      description: Cognito authorization code flow for users
      flows:
        implicit:
          authorizationUrl: https://auth.app.blng.ai/oauth2/authorize
          scopes:
            email: email
            profile: profile
            openid: openid
            aws.cognito.signin.user.admin: aws.cognito.signin.user.admin