import Ivy from '@getivy/node-sdk';const client = new Ivy({ apiKey: process.env['IVY_API_KEY'], // This is the default and can be omitted});const subaccount = await client.subaccounts.create({ legalName: 'legalName', mcc: 'mcc' });console.log(subaccount.id);
Create a Subaccount which can be used to reconcile orders, refunds and payouts more easily.
POST
/
api
/
service
/
subaccount
/
create
JavaScript
Copy
Ask AI
import Ivy from '@getivy/node-sdk';const client = new Ivy({ apiKey: process.env['IVY_API_KEY'], // This is the default and can be omitted});const subaccount = await client.subaccounts.create({ legalName: 'legalName', mcc: 'mcc' });console.log(subaccount.id);