Paystack · Arazzo Workflow

Paystack Check Authorization and Partial Debit

Version 1.0.0

Check that an authorization can bear a charge, then take a partial debit against it for whatever is available.

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

Provider

paystack

Workflows

check-authorization-and-partial-debit
Confirm chargeability, then partially debit an authorization.
Checks the authorization for the desired amount and branches; when chargeable it takes a partial debit with an at_least floor.
2 steps inputs: amount, at_least, authorization_code, currency, email outputs: debitStatus, debitedAmount, reference
1
checkAuthorization
Check whether the authorization can bear the desired charge amount.
2
partialDebit
Take a partial debit against the authorization with a minimum floor.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Paystack Check Authorization and Partial Debit
  summary: Check that an authorization can bear a charge, then take a partial debit against it for whatever is available.
  description: >-
    The recover-what-you-can collection flow. The card authorization is checked to
    confirm it can be charged for the desired amount, and a partial debit is then
    taken against it with a floor amount so at least the minimum is collected even
    when full funds are not available. A branch ends the flow early when the
    authorization cannot bear the charge. 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: transactionApi
  url: ../openapi/paystack-transaction-api-openapi.yml
  type: openapi
workflows:
- workflowId: check-authorization-and-partial-debit
  summary: Confirm chargeability, then partially debit an authorization.
  description: >-
    Checks the authorization for the desired amount and branches; when chargeable
    it takes a partial debit with an at_least floor.
  inputs:
    type: object
    required:
    - email
    - amount
    - authorization_code
    - currency
    properties:
      email:
        type: string
        description: Customer's email address.
      amount:
        type: integer
        description: Desired amount in the smallest currency unit.
      authorization_code:
        type: string
        description: The authorization code to charge.
      currency:
        type: string
        description: The transaction currency (NGN, GHS, ZAR or USD).
      at_least:
        type: string
        description: Minimum amount to collect on the partial debit.
  steps:
  - stepId: checkAuthorization
    description: Check whether the authorization can bear the desired charge amount.
    operationId: transaction_checkAuthorization
    requestBody:
      contentType: application/json
      payload:
        email: $inputs.email
        amount: $inputs.amount
        authorization_code: $inputs.authorization_code
        currency: $inputs.currency
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      chargeable: $response.body#/data/amount
    onSuccess:
    - name: cannotCharge
      type: end
      criteria:
      - context: $response.body
        condition: $.status == false
        type: jsonpath
    - name: canCharge
      type: goto
      stepId: partialDebit
      criteria:
      - context: $response.body
        condition: $.status == true
        type: jsonpath
  - stepId: partialDebit
    description: Take a partial debit against the authorization with a minimum floor.
    operationId: transaction_partialDebit
    requestBody:
      contentType: application/json
      payload:
        email: $inputs.email
        amount: $inputs.amount
        authorization_code: $inputs.authorization_code
        currency: $inputs.currency
        at_least: $inputs.at_least
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      reference: $response.body#/data/reference
      debitedAmount: $response.body#/data/amount
      debitStatus: $response.body#/data/status
  outputs:
    reference: $steps.partialDebit.outputs.reference
    debitedAmount: $steps.partialDebit.outputs.debitedAmount
    debitStatus: $steps.partialDebit.outputs.debitStatus

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-check-authorization-and-partial-debit-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.