Paystack · Arazzo Workflow

Paystack Disable and Re-enable a Subscription

Version 1.0.0

Fetch a subscription to read its email token, disable it, then re-enable it using the same code and token.

1 workflow 1 source API 1 provider
View Spec View on GitHub PaymentsAfricaFintechRecurring BillingMarketplacesPayoutsMobile MoneyStripeArazzoWorkflows

Provider

paystack

Workflows

disable-and-reenable-subscription
Pause a subscription then resume it using its email token.
Fetches the subscription for its token, disables it, then re-enables it with the same code and token.
3 steps inputs: code outputs: disableMessage, emailToken, enableMessage
1
fetchSubscription
Fetch the subscription to read its status and email token.
2
disableSubscription
Disable the subscription with its code and email token to stop charges.
3
reenableSubscription
Re-enable the subscription with the same code and token to resume billing.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Paystack Disable and Re-enable a Subscription
  summary: Fetch a subscription to read its email token, disable it, then re-enable it using the same code and token.
  description: >-
    The pause-and-resume flow for subscriptions. The subscription is fetched to
    read its current status and email token, disabled with that code and token to
    stop recurring charges, and then re-enabled with the same credentials to
    resume billing. 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: subscriptionApi
  url: ../openapi/paystack-subscription-api-openapi.yml
  type: openapi
workflows:
- workflowId: disable-and-reenable-subscription
  summary: Pause a subscription then resume it using its email token.
  description: >-
    Fetches the subscription for its token, disables it, then re-enables it with
    the same code and token.
  inputs:
    type: object
    required:
    - code
    properties:
      code:
        type: string
        description: Subscription code to pause and resume.
  steps:
  - stepId: fetchSubscription
    description: Fetch the subscription to read its status and email token.
    operationId: subscription_fetch
    parameters:
    - name: code
      in: path
      value: $inputs.code
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      emailToken: $response.body#/data/email_token
      status: $response.body#/data/status
  - stepId: disableSubscription
    description: Disable the subscription with its code and email token to stop charges.
    operationId: subscription_disable
    requestBody:
      contentType: application/json
      payload:
        code: $inputs.code
        token: $steps.fetchSubscription.outputs.emailToken
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      disableMessage: $response.body#/message
  - stepId: reenableSubscription
    description: Re-enable the subscription with the same code and token to resume billing.
    operationId: subscription_enable
    requestBody:
      contentType: application/json
      payload:
        code: $inputs.code
        token: $steps.fetchSubscription.outputs.emailToken
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      enableMessage: $response.body#/message
  outputs:
    emailToken: $steps.fetchSubscription.outputs.emailToken
    disableMessage: $steps.disableSubscription.outputs.disableMessage
    enableMessage: $steps.reenableSubscription.outputs.enableMessage

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/paystack-disable-and-reenable-subscription-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.