Paystack · Arazzo Workflow

Paystack Finalize and Archive a Draft Payment Request

Version 1.0.0

Create a draft payment request, finalize it to issue the invoice, verify it, then archive it once handled.

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

Provider

paystack

Workflows

finalize-and-archive-payment-request
Move a draft invoice through finalize, verify and archive.
Creates a draft payment request, finalizes it, verifies the issued status, and archives it.
4 steps inputs: amount, customer, description outputs: requestCode, requestId, verifiedStatus
1
createDraftRequest
Create the payment request as a draft so it can be finalized explicitly.
2
finalizeRequest
Finalize the draft so the invoice is issued and the customer notified.
3
verifyRequest
Verify the request by code to confirm it is now issued.
4
archiveRequest
Archive the request so it no longer appears in the active list.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Paystack Finalize and Archive a Draft Payment Request
  summary: Create a draft payment request, finalize it to issue the invoice, verify it, then archive it once handled.
  description: >-
    The draft-to-issued-to-archived lifecycle for payment requests. A draft
    request is created, finalized so the invoice is officially issued and the
    customer is notified, verified to confirm the issued status, and finally
    archived so it no longer appears in the active list. 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: paymentRequestApi
  url: ../openapi/paystack-payment-request-api-openapi.yml
  type: openapi
workflows:
- workflowId: finalize-and-archive-payment-request
  summary: Move a draft invoice through finalize, verify and archive.
  description: >-
    Creates a draft payment request, finalizes it, verifies the issued status,
    and archives it.
  inputs:
    type: object
    required:
    - customer
    - amount
    properties:
      customer:
        type: string
        description: Customer id or code the request is raised for.
      amount:
        type: integer
        description: Payment request amount in the smallest currency unit.
      description:
        type: string
        description: Short description shown on the payment request.
  steps:
  - stepId: createDraftRequest
    description: Create the payment request as a draft so it can be finalized explicitly.
    operationId: paymentRequest_create
    requestBody:
      contentType: application/json
      payload:
        customer: $inputs.customer
        amount: $inputs.amount
        description: $inputs.description
        draft: true
        has_invoice: true
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      requestId: $response.body#/data/id
      requestCode: $response.body#/data/request_code
  - stepId: finalizeRequest
    description: Finalize the draft so the invoice is issued and the customer notified.
    operationId: paymentRequest_finalize
    parameters:
    - name: id
      in: path
      value: $steps.createDraftRequest.outputs.requestId
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      finalizedStatus: $response.body#/data/status
  - stepId: verifyRequest
    description: Verify the request by code to confirm it is now issued.
    operationId: paymentRequest_verify
    parameters:
    - name: id
      in: path
      value: $steps.createDraftRequest.outputs.requestCode
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      verifiedStatus: $response.body#/data/status
  - stepId: archiveRequest
    description: Archive the request so it no longer appears in the active list.
    operationId: paymentRequest_archive
    parameters:
    - name: id
      in: path
      value: $steps.createDraftRequest.outputs.requestId
    successCriteria:
    - condition: $statusCode == 201
  outputs:
    requestId: $steps.createDraftRequest.outputs.requestId
    requestCode: $steps.createDraftRequest.outputs.requestCode
    verifiedStatus: $steps.verifyRequest.outputs.verifiedStatus

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-finalize-and-archive-payment-request-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.