Paystack · Arazzo Workflow

Paystack Add a Subaccount to an Existing Split

Version 1.0.0

Create a new subaccount, add it to an existing transaction split, then fetch the split to confirm membership.

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

Provider

paystack

Workflows

add-subaccount-to-split
Onboard a new partner into an existing split and confirm membership.
Creates a subaccount, adds it to the given split id, and fetches the split to confirm the updated membership.
3 steps inputs: account_number, business_name, percentage_charge, settlement_bank, share, splitId outputs: splitCode, subaccountCode, subaccounts
1
createSubaccount
Create the new partner subaccount to be added to the split.
2
addToSplit
Add the new subaccount to the existing split with the given share.
3
fetchSplit
Fetch the split to confirm the subaccount is now a member.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Paystack Add a Subaccount to an Existing Split
  summary: Create a new subaccount, add it to an existing transaction split, then fetch the split to confirm membership.
  description: >-
    Expands a live marketplace split. A new partner subaccount is created, added
    to an existing split with a defined share, and the split is fetched to confirm
    the subaccount now appears among its members. 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
workflows:
- workflowId: add-subaccount-to-split
  summary: Onboard a new partner into an existing split and confirm membership.
  description: >-
    Creates a subaccount, adds it to the given split id, and fetches the split to
    confirm the updated membership.
  inputs:
    type: object
    required:
    - splitId
    - business_name
    - settlement_bank
    - account_number
    - percentage_charge
    - share
    properties:
      splitId:
        type: string
        description: Id of the existing split to add the subaccount to.
      business_name:
        type: string
        description: Business name for the new 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.
      share:
        type: string
        description: The subaccount's share within the split.
  steps:
  - stepId: createSubaccount
    description: Create the new partner subaccount to be added to the split.
    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: addToSplit
    description: Add the new subaccount to the existing split with the given share.
    operationId: split_addSubaccount
    parameters:
    - name: id
      in: path
      value: $inputs.splitId
    requestBody:
      contentType: application/json
      payload:
        subaccount: $steps.createSubaccount.outputs.subaccountCode
        share: $inputs.share
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      splitCode: $response.body#/data/split_code
  - stepId: fetchSplit
    description: Fetch the split to confirm the subaccount is now a member.
    operationId: split_fetch
    parameters:
    - name: id
      in: path
      value: $inputs.splitId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      subaccounts: $response.body#/data/subaccounts
  outputs:
    subaccountCode: $steps.createSubaccount.outputs.subaccountCode
    splitCode: $steps.addToSplit.outputs.splitCode
    subaccounts: $steps.fetchSplit.outputs.subaccounts

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-add-subaccount-to-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.