Paystack · Arazzo Workflow

Paystack Create Customer and Send Payment Request

Version 1.0.0

Create a customer, raise an invoice-style payment request for them, send the email notification, then verify the request.

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

Provider

paystack

Workflows

create-customer-and-payment-request
Onboard a customer and send them an invoice-style payment request.
Creates the customer, raises a payment request for that customer, sends the notification email, and verifies the request to read its status.
4 steps inputs: amount, description, due_date, email, first_name outputs: customerCode, requestCode, requestStatus
1
createCustomer
Create the customer the payment request will be addressed to.
2
createPaymentRequest
Raise a payment request for the new customer with the supplied amount.
3
sendNotification
Send the email notification for the payment request to the customer.
4
verifyPaymentRequest
Verify the payment request by its code to read back its status.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Paystack Create Customer and Send Payment Request
  summary: Create a customer, raise an invoice-style payment request for them, send the email notification, then verify the request.
  description: >-
    The invoicing flow built on Paystack payment requests. A customer is created,
    a payment request (invoice) is raised against the customer with an amount and
    due date, the email notification is sent, and the request is then verified to
    read back its computed status. 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: paymentRequestApi
  url: ../openapi/paystack-payment-request-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-customer-and-payment-request
  summary: Onboard a customer and send them an invoice-style payment request.
  description: >-
    Creates the customer, raises a payment request for that customer, sends the
    notification email, and verifies the request to read its status.
  inputs:
    type: object
    required:
    - email
    - amount
    properties:
      email:
        type: string
        description: Customer's email address.
      first_name:
        type: string
        description: Customer's first name.
      amount:
        type: integer
        description: Payment request amount in the smallest currency unit.
      due_date:
        type: string
        description: ISO 8601 due date for the payment request.
      description:
        type: string
        description: Short description shown on the payment request.
  steps:
  - stepId: createCustomer
    description: Create the customer the payment request will be addressed to.
    operationId: customer_create
    requestBody:
      contentType: application/json
      payload:
        email: $inputs.email
        first_name: $inputs.first_name
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      customerCode: $response.body#/data/customer_code
  - stepId: createPaymentRequest
    description: Raise a payment request for the new customer with the supplied amount.
    operationId: paymentRequest_create
    requestBody:
      contentType: application/json
      payload:
        customer: $steps.createCustomer.outputs.customerCode
        amount: $inputs.amount
        due_date: $inputs.due_date
        description: $inputs.description
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      requestId: $response.body#/data/id
      requestCode: $response.body#/data/request_code
  - stepId: sendNotification
    description: Send the email notification for the payment request to the customer.
    operationId: paymentRequest_notify
    parameters:
    - name: id
      in: path
      value: $steps.createPaymentRequest.outputs.requestId
    successCriteria:
    - condition: $statusCode == 201
  - stepId: verifyPaymentRequest
    description: Verify the payment request by its code to read back its status.
    operationId: paymentRequest_verify
    parameters:
    - name: id
      in: path
      value: $steps.createPaymentRequest.outputs.requestCode
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      requestStatus: $response.body#/data/status
  outputs:
    customerCode: $steps.createCustomer.outputs.customerCode
    requestCode: $steps.createPaymentRequest.outputs.requestCode
    requestStatus: $steps.verifyPaymentRequest.outputs.requestStatus

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-create-customer-and-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.