Astrocal Payments API

The Payments API from Astrocal — 2 operation(s) for payments.

Operations 2

GET /v1/payments List payments #
GET /v1/payments/summary Get payment summary #

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/astrocal-dev:astrocal-dev-payments-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

astrocal-dev-payments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Astrocal Payments API
  version: 1.0.0
  description: Scheduling API for AI agents and developers
servers:
- url: https://api.astrocal.dev
  description: Production
- url: https://api.astrocal.dev
  description: Local development
security:
- BearerAuth: []
tags:
- name: Payments
paths:
  /v1/payments:
    get:
      tags:
      - Payments
      summary: List payments
      description: Returns a paginated list of payments for the organization. Supports optional status filtering and cursor-based pagination.
      parameters:
      - schema:
          type: string
          enum:
          - pending
          - succeeded
          - failed
          - refunded
        required: false
        name: status
        in: query
      - schema:
          type: string
        required: false
        name: starting_after
        in: query
      - schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
        required: false
        name: limit
        in: query
      responses:
        '200':
          description: Payments list
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        booking_id:
                          type: string
                        stripe_payment_intent_id:
                          type: string
                        amount:
                          type: number
                        currency:
                          type: string
                        platform_fee:
                          type: number
                        status:
                          type: string
                          enum:
                          - pending
                          - succeeded
                          - failed
                          - refunded
                        refund_id:
                          type: string
                          nullable: true
                        created_at:
                          type: string
                        updated_at:
                          type: string
                      required:
                      - id
                      - booking_id
                      - stripe_payment_intent_id
                      - amount
                      - currency
                      - platform_fee
                      - status
                      - refund_id
                      - created_at
                      - updated_at
                  has_more:
                    type: boolean
                required:
                - data
                - has_more
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
      operationId: getV1Payments
      x-operation-id-source: derived
  /v1/payments/summary:
    get:
      tags:
      - Payments
      summary: Get payment summary
      description: 'Returns aggregated payment metrics for the organization: total revenue, platform fees, total refunded, and pending count. All monetary amounts are in cents.'
      responses:
        '200':
          description: Payment summary
          content:
            application/json:
              schema:
                type: object
                properties:
                  total_revenue:
                    type: number
                  platform_fees:
                    type: number
                  total_refunded:
                    type: number
                  pending_count:
                    type: number
                required:
                - total_revenue
                - platform_fees
                - total_refunded
                - pending_count
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
      operationId: getV1PaymentsSummary
      x-operation-id-source: derived
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Use your API key as the bearer token.