Javascript
import Ivy from '@getivy/node-sdk'; const client = new Ivy({ apiKey: 'My API Key', }); const subaccount = await client.subaccounts.create({ legalName: 'legalName', mcc: 'mcc' }); console.log(subaccount.id);
{ "id": "<string>", "legalName": "<string>", "status": "active", "mcc": "<string>", "ownerId": "<any>", "websiteUrl": "<string>", "createdAt": "<any>", "updatedAt": "<any>" }
Create a Subaccount which can be used to reconcile orders, refunds and payouts more easily.
API key for authentication
The legal name of the Subaccount
The merchant category code of the Subaccount. See here for more information.
The website url of the Subaccount
Returns a new Subaccount
active
inactive
Was this page helpful?