Paystack · Arazzo Workflow

Paystack Blacklist a Customer After a Dispute

Version 1.0.0

List the disputes raised against a transaction, fetch the customer, then blacklist them and deactivate the card authorization.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub PaymentsAfricaFintechRecurring BillingMarketplacesPayoutsMobile MoneyStripeArazzoWorkflows

Provider

paystack

Workflows

blacklist-customer-after-dispute
Investigate a disputed transaction and block the customer and card.
Lists transaction disputes, fetches the customer, blacklists them, and deactivates the card authorization.
4 steps inputs: authorization_code, customerCode, transactionId outputs: deactivateMessage, disputes, riskAction
1
listTransactionDisputes
List the disputes raised against the flagged transaction.
2
fetchCustomer
Fetch the customer to confirm their code before taking action.
3
blacklistCustomer
Blacklist the customer by setting a deny risk action.
4
deactivateAuthorization
Deactivate the offending card authorization so it cannot be charged.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Paystack Blacklist a Customer After a Dispute
  summary: List the disputes raised against a transaction, fetch the customer, then blacklist them and deactivate the card authorization.
  description: >-
    A fraud-response flow. Disputes raised against a flagged transaction are
    listed, the customer is fetched to confirm their code, the customer is
    blacklisted with a deny risk action, and the offending card authorization is
    deactivated so it can no longer be charged. 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: customerApi
  url: ../openapi/paystack-customer-api-openapi.yml
  type: openapi
- name: disputeApi
  url: ../openapi/paystack-dispute-api-openapi.yml
  type: openapi
workflows:
- workflowId: blacklist-customer-after-dispute
  summary: Investigate a disputed transaction and block the customer and card.
  description: >-
    Lists transaction disputes, fetches the customer, blacklists them, and
    deactivates the card authorization.
  inputs:
    type: object
    required:
    - transactionId
    - customerCode
    - authorization_code
    properties:
      transactionId:
        type: string
        description: Id of the transaction whose disputes are being reviewed.
      customerCode:
        type: string
        description: Code of the customer to blacklist.
      authorization_code:
        type: string
        description: Card authorization code to deactivate.
  steps:
  - stepId: listTransactionDisputes
    description: List the disputes raised against the flagged transaction.
    operationId: dispute_transaction
    parameters:
    - name: id
      in: path
      value: $inputs.transactionId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      disputes: $response.body#/data
  - stepId: fetchCustomer
    description: Fetch the customer to confirm their code before taking action.
    operationId: customer_fetch
    parameters:
    - name: code
      in: path
      value: $inputs.customerCode
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      customerEmail: $response.body#/data/email
  - stepId: blacklistCustomer
    description: Blacklist the customer by setting a deny risk action.
    operationId: customer_riskAction
    requestBody:
      contentType: application/json
      payload:
        customer: $inputs.customerCode
        risk_action: deny
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      riskAction: $response.body#/data/risk_action
  - stepId: deactivateAuthorization
    description: Deactivate the offending card authorization so it cannot be charged.
    operationId: customer_deactivateAuthorization
    requestBody:
      contentType: application/json
      payload:
        authorization_code: $inputs.authorization_code
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      deactivateMessage: $response.body#/message
  outputs:
    disputes: $steps.listTransactionDisputes.outputs.disputes
    riskAction: $steps.blacklistCustomer.outputs.riskAction
    deactivateMessage: $steps.deactivateAuthorization.outputs.deactivateMessage

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-blacklist-customer-after-dispute-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.