This library provides easy access to the Subaccounts Resource.
Note: All methods return promises and accept an optional last argument callback. Read about how we handle callbacks and promises.
- list([callback])
List a summary of all subaccounts. - get(id[, callback])
Get details about a specified subaccount by its idid
- the id of the subaccount you want to look up required
- create(subaccount[, callback])
Create a new subaccountsubaccount
- an object of subaccount attributes required
- update(id, subaccount[, callback])
Updates an existing subaccountid
- the id of the subaccount you want to update requiredsubaccount
- an object of updatable subaccount attributes required
Visit our examples section to see all of our subaccount resource examples.