A collection of endpoints for creating and managing accounts for sharing a transaction with
| Method |
HTTP |
Path |
Summary |
create |
POST |
/subaccount |
Create Subaccount |
fetch |
GET |
/subaccount/{code} |
Fetch Subaccount |
list |
GET |
/subaccount |
List Subaccounts |
update |
PUT |
/subaccount/{code} |
Update Subaccount |
HTTP: POST
Path: /subaccount
paystack.subaccount.create({ ... })
| Name |
Required |
business_name |
true |
settlement_bank |
true |
account_number |
true |
percentage_charge |
true |
description |
false |
primary_contact_email |
false |
primary_contact_name |
false |
primary_contact_phone |
false |
metadata |
false |
HTTP: GET
Path: /subaccount/{code}
paystack.subaccount.fetch(code)
HTTP: GET
Path: /subaccount
paystack.subaccount.list({ ... })
| Name |
Required |
perPage |
false |
page |
false |
active |
false |
HTTP: PUT
Path: /subaccount/{code}
paystack.subaccount.update(code, { ... })
| Name |
Required |
business_name |
false |
settlement_bank |
false |
account_number |
false |
active |
false |
percentage_charge |
false |
description |
false |
primary_contact_email |
false |
primary_contact_name |
false |
primary_contact_phone |
false |
metadata |
false |