GoCardless subscriptions API

The subscriptions API from GoCardless — 3 operation(s) for subscriptions.

OpenAPI Specification

gocardless-subscriptions-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: GoCardless REST billing_request_flows subscriptions API
  version: '2015-07-06'
  description: 'Subset of the public GoCardless REST API for collecting bank debit and

    open-banking payments. Authentication uses a Bearer access token issued

    from the dashboard. Every request must include the

    `GoCardless-Version` header.

    '
  contact:
    name: GoCardless Developers
    url: https://developer.gocardless.com/
servers:
- url: https://api.gocardless.com
  description: Live
- url: https://api-sandbox.gocardless.com
  description: Sandbox
security:
- bearerAuth: []
tags:
- name: subscriptions
paths:
  /subscriptions:
    get:
      tags:
      - subscriptions
      summary: List subscriptions
      operationId: listSubscriptions
      responses:
        '200':
          description: OK
    post:
      tags:
      - subscriptions
      summary: Create a subscription
      operationId: createSubscription
      responses:
        '201':
          description: Created
  /subscriptions/{id}:
    get:
      tags:
      - subscriptions
      summary: Get a subscription
      operationId: getSubscription
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
    put:
      tags:
      - subscriptions
      summary: Update a subscription
      operationId: updateSubscription
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
  /subscriptions/{id}/actions/cancel:
    post:
      tags:
      - subscriptions
      summary: Cancel a subscription
      operationId: cancelSubscription
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: GoCardless access token from the dashboard