Paystack · Arazzo Workflow

Paystack Create Subaccount and Transaction Split

Version 1.0.0

Create a subaccount, build a transaction split that pays it, then initialize a transaction against the split.

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

Provider

paystack

Workflows

create-subaccount-and-split
Stand up a marketplace split and take a payment against it.
Creates a subaccount, creates a split that pays the subaccount, and initializes a transaction using the split code.
3 steps inputs: account_number, amount, business_name, email, percentage_charge, settlement_bank, share, splitName outputs: reference, splitCode, subaccountCode
1
createSubaccount
Create the partner subaccount that will receive a share of payments.
2
createSplit
Create a percentage split routing a share to the new subaccount.
3
initializeSplitTransaction
Initialize a transaction against the split so the payment is auto-divided.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Paystack Create Subaccount and Transaction Split
  summary: Create a subaccount, build a transaction split that pays it, then initialize a transaction against the split.
  description: >-
    The marketplace payout setup. A subaccount is created for a partner, a
    percentage transaction split is created that routes a share to that
    subaccount, and a transaction is initialized against the split code so the
    incoming payment is automatically divided. 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: splitApi
  url: ../openapi/paystack-split-api-openapi.yml
  type: openapi
- name: subaccountApi
  url: ../openapi/paystack-subaccount-api-openapi.yml
  type: openapi
- name: transactionApi
  url: ../openapi/paystack-transaction-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-subaccount-and-split
  summary: Stand up a marketplace split and take a payment against it.
  description: >-
    Creates a subaccount, creates a split that pays the subaccount, and
    initializes a transaction using the split code.
  inputs:
    type: object
    required:
    - business_name
    - settlement_bank
    - account_number
    - percentage_charge
    - splitName
    - share
    - email
    - amount
    properties:
      business_name:
        type: string
        description: Business name for the subaccount.
      settlement_bank:
        type: string
        description: Settlement bank code from the List Banks endpoint.
      account_number:
        type: string
        description: Settlement bank account number for the subaccount.
      percentage_charge:
        type: number
        description: Percentage of each transaction the subaccount keeps.
      splitName:
        type: string
        description: Name of the transaction split.
      share:
        type: string
        description: The subaccount's share within the split.
      email:
        type: string
        description: Customer's email for the test transaction.
      amount:
        type: integer
        description: Transaction amount in the smallest currency unit.
  steps:
  - stepId: createSubaccount
    description: Create the partner subaccount that will receive a share of payments.
    operationId: subaccount_create
    requestBody:
      contentType: application/json
      payload:
        business_name: $inputs.business_name
        settlement_bank: $inputs.settlement_bank
        account_number: $inputs.account_number
        percentage_charge: $inputs.percentage_charge
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      subaccountCode: $response.body#/data/subaccount_code
  - stepId: createSplit
    description: Create a percentage split routing a share to the new subaccount.
    operationId: split_create
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.splitName
        type: percentage
        currency: NGN
        subaccounts:
        - subaccount: $steps.createSubaccount.outputs.subaccountCode
          share: $inputs.share
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      splitCode: $response.body#/data/split_code
  - stepId: initializeSplitTransaction
    description: Initialize a transaction against the split so the payment is auto-divided.
    operationId: transaction_initialize
    requestBody:
      contentType: application/json
      payload:
        email: $inputs.email
        amount: $inputs.amount
        split_code: $steps.createSplit.outputs.splitCode
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      reference: $response.body#/data/reference
      authorizationUrl: $response.body#/data/authorization_url
  outputs:
    subaccountCode: $steps.createSubaccount.outputs.subaccountCode
    splitCode: $steps.createSplit.outputs.splitCode
    reference: $steps.initializeSplitTransaction.outputs.reference

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-subaccount-and-split-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.