Space Invoices Subscription API

The Subscription API from Space Invoices — 5 operation(s) for subscription.

GitHub OpenAPI

Operations 6

POST /v1/Subscriptions/{id}/whiteLabel Creates a new instance in whiteLabel of this model #
GET /v1/Subscriptions Find all instances of the model matched by filter from the data source #
GET /v1/Subscriptions/client-token Get Braintree client token #
GET /v1/Subscriptions/cron Subscription remote cron #
GET /v1/Subscriptions/{id}/payment-method Get Payment method #
POST /v1/Subscriptions/{id}/payment-method Add/Update payment method #

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/spaceinvoices-com:spaceinvoices-com-subscription-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

spaceinvoices-com-subscription-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: space-invoices-api Subscription API
  version: 2.0.0
  description: ''
  contact:
    name: Space Invoices Inc
servers:
- url: https://api.spaceinvoices.com
security:
- accessTokenHeader: []
  accessTokenQuery: []
tags:
- name: Subscription
paths:
  /v1/Subscriptions/{id}/whiteLabel:
    post:
      tags:
      - Subscription
      summary: Creates a new instance in whiteLabel of this model
      operationId: Subscription.prototype.__create__whiteLabel
      parameters:
      - name: id
        in: path
        description: Subscription id
        required: true
        schema:
          type: string
          format: JSON
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WhiteLabel'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/WhiteLabel'
          application/xml:
            schema:
              $ref: '#/components/schemas/WhiteLabel'
          text/xml:
            schema:
              $ref: '#/components/schemas/WhiteLabel'
      responses:
        '200':
          description: Request was successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhiteLabel'
            application/xml:
              schema:
                $ref: '#/components/schemas/WhiteLabel'
            text/xml:
              schema:
                $ref: '#/components/schemas/WhiteLabel'
            application/javascript:
              schema:
                $ref: '#/components/schemas/WhiteLabel'
            text/javascript:
              schema:
                $ref: '#/components/schemas/WhiteLabel'
      deprecated: false
  /v1/Subscriptions:
    get:
      tags:
      - Subscription
      summary: Find all instances of the model matched by filter from the data source
      operationId: Subscription.find
      parameters:
      - name: filter
        in: query
        description: Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string (`{"where":{"something":"value"}}`).  See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.
        required: false
        schema:
          type: string
          format: JSON
      responses:
        '200':
          description: Request was successful
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Subscription'
            application/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Subscription'
            text/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Subscription'
            application/javascript:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Subscription'
            text/javascript:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Subscription'
      deprecated: false
  /v1/Subscriptions/client-token:
    get:
      tags:
      - Subscription
      summary: Get Braintree client token
      operationId: Subscription.clientToken
      responses:
        '200':
          description: Request was successful
          content:
            application/json:
              schema:
                type: string
            application/xml:
              schema:
                type: string
            text/xml:
              schema:
                type: string
            application/javascript:
              schema:
                type: string
            text/javascript:
              schema:
                type: string
      deprecated: false
  /v1/Subscriptions/cron:
    get:
      tags:
      - Subscription
      summary: Subscription remote cron
      operationId: Subscription.remoteCron
      parameters:
      - name: date
        in: query
        description: ''
        required: false
        schema:
          type: string
          format: date-time
      - name: subscriptionId
        in: query
        description: If provided limits cron to one subscription
        required: false
        schema:
          type: string
      - name: skipSendingEmails
        in: query
        description: Runs without sending email to customer
        required: false
        schema:
          type: boolean
      - name: skipIssuingInvoices
        in: query
        description: Runs without issuing invoice for usage
        required: false
        schema:
          type: boolean
      - name: dryRun
        in: query
        description: Checks usage but does not commit data or send emails
        required: false
        schema:
          type: boolean
      responses:
        '200':
          description: Request was successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
            application/xml:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
            text/xml:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
            application/javascript:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
            text/javascript:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
      deprecated: false
      x-summary-source: derived
  /v1/Subscriptions/{id}/payment-method:
    get:
      tags:
      - Subscription
      summary: Get Payment method
      operationId: Subscription.prototype.getPaymentMethod
      parameters:
      - name: id
        in: path
        description: Subscription id
        required: true
        schema:
          type: string
          format: JSON
      responses:
        '200':
          description: Request was successful
          content:
            application/json:
              schema:
                type: object
            application/xml:
              schema:
                type: object
            text/xml:
              schema:
                type: object
            application/javascript:
              schema:
                type: object
            text/javascript:
              schema:
                type: object
      deprecated: false
    post:
      tags:
      - Subscription
      summary: Add/Update payment method
      operationId: Subscription.prototype.setPaymentMethod
      parameters:
      - name: id
        in: path
        description: Subscription id
        required: true
        schema:
          type: string
          format: JSON
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                paymentMethod:
                  type: string
                  format: JSON
              required:
              - paymentMethod
        required: true
      responses:
        '200':
          description: Request was successful
          content:
            application/json:
              schema:
                type: object
            application/xml:
              schema:
                type: object
            text/xml:
              schema:
                type: object
            application/javascript:
              schema:
                type: object
            text/javascript:
              schema:
                type: object
      deprecated: false
components:
  schemas:
    WhiteLabel:
      properties:
        active:
          default: false
          type: boolean
        name:
          description: Name of your White Label instance.
          type: string
        domain:
          description: Your domain for Apollo white label implementation.
          type: string
        subdomain:
          description: Apollo subdomain for testing white label implemention.
          type: string
        baseColor:
          type: string
        logo:
          type: string
        separateDashboardIcon:
          default: false
          description: Should a separate icon for dashboard be used in the sidebar instead of the logo serving as the button.
          type: boolean
        googleAnalyticsId:
          description: Google analytics tracking code.
          type: string
        chatAppType:
          default: Intercom
          description: 'Type of chat app to display.

            Currently Intercom and Tidio are supported out of the box.'
          type: string
        chatAppId:
          description: Intercom or other chat app ID
          type: string
        privacyPolicyLink:
          description: 'URL to redirect user to if clicks on Terms of Service link in sidebar.

            Defaults to Website URL if not provided.'
          type: string
        termsOfServiceLink:
          description: 'URL to redirect user to if clicks on Terms of Service link in sidebar.

            Defaults to Website URL if not provided.'
          type: string
        websiteURL:
          description: 'URL to redirect user to if clicks on Website link in sidebar.

            Hidden if not provided.'
          type: string
        supportEmail:
          description: 'Support email to display to user if clicks on Email link in sidebar.

            Hidden if not provided.'
          type: string
        supportPhone:
          description: 'Support phone number to display to user if clicks on Call us link in sidebar.

            Hidden if not provided.'
          type: string
        blogURL:
          description: 'URL to redirect user to if clicks on Blog link in sidebar.

            Hidden if not provided.'
          type: string
        hideLoginPage:
          default: true
          description: 'Should the Login page be hidden to users.

            If disabled the Uanuthorized redirect URL has to be provided.'
          type: boolean
        showSignup:
          default: false
          description: Should the Signup button be shown on the login page.
          type: boolean
        unauthorizedRedirectURL:
          description: 'URL to redirect user to in case of unauthorized in app.

            Used only if Login page is not displayed.'
          type: string
        passwordResetURL:
          description: 'URL to redirect user to when clicking on Signup link.

            Only visible on Login page if it''s displayed.'
          type: string
        signupURL:
          description: 'URL to redirect user to when clicking on Signup link.

            Only visible on Login page if it''s displayed.'
          type: string
        allowInPromo:
          default: true
          description: 'Allow Space Invoices to showcase your brand in our promo materials.

            ie. website, blog, newsletter etc.'
          type: boolean
        interface:
          description: Allows hiding specific interface elements like menus and menu items.
          type: object
        id:
          $ref: '#/components/schemas/ObjectID'
        subscriptionId:
          $ref: '#/components/schemas/ObjectID'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      additionalProperties: false
    x-any:
      properties: {}
    ObjectID:
      type: string
      pattern: ^[a-fA-F\d]{24}$
    SubscriptionPlan:
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        identifier:
          type: string
        tier:
          type: number
          format: double
        documentLimit:
          default: 10
          type: number
          format: double
        priceDocuments:
          type: array
          items: {}
        organizationLimit:
          default: 1
          type: number
          format: double
        includedOrganizations:
          default: 1
          description: Number of organizations included in base subscription price
          type: number
          format: double
        priceOrganization:
          type: number
          format: double
        organizationFreeTrialPeriod:
          default: 1
          description: How many days an organization can be active before being charged
          type: number
          format: double
        priceFullUI:
          type: number
          format: double
        priceWhiteLabelUI:
          type: number
          format: double
        fee:
          description: 'Fee percent to charge based on issued documents

            if percent deal'
          type: number
          format: double
        licenseFee:
          description: Fixed monthly license fee
          type: number
          format: double
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
      - id
      - name
      - identifier
      - tier
      - documentLimit
      - organizationLimit
      additionalProperties: false
    Subscription:
      properties:
        dateStart:
          type: string
          format: date-time
        active:
          default: true
          type: boolean
        billingCycle:
          default: month
          type: string
        billingLocation:
          description: Should subscription be charged from EU or US entity
          type: string
        currencyId:
          type: string
        canceledAt:
          type: string
          format: date-time
        churnedAt:
          type: string
          format: date-time
        comment:
          type: string
        gateway:
          type: string
        gatewayChargeRetries:
          default: 0
          type: number
          format: double
        gatewayPaymentMethodId:
          type: string
        newApiCustomerId:
          type: string
        newApiCustomerBillingOrganizationId:
          type: string
        recurrenceCount:
          type: number
          format: double
        cronLogs:
          type: array
          items:
            $ref: '#/components/schemas/x-any'
        id:
          $ref: '#/components/schemas/ObjectID'
        accountId:
          $ref: '#/components/schemas/ObjectID'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        planId:
          $ref: '#/components/schemas/ObjectID'
        _subscriptionPlan:
          $ref: '#/components/schemas/SubscriptionPlan'
      required:
      - dateStart
      - active
      - gatewayChargeRetries
      additionalProperties: false
  securitySchemes:
    accessTokenHeader:
      type: apiKey
      in: header
      name: Authorization
    accessTokenQuery:
      type: apiKey
      in: query
      name: access_token