> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: getAccountDetails() # Method package: wixEmailMarketingV2 # Method menu location: wixEmailMarketingV2 --> accountDetails --> getAccountDetails # Method Link: https://dev.wix.com/docs/velo/apis/wix-email-marketing-v2/account-details/get-account-details.md # Method Description: Retrieves email marketing account details. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get email marketing account details (dashboard page code) ```javascript import { accountDetails } from "wix-email-marketing.v2"; export async function myGetAccountDetailsFunction() { try { const results = await accountDetails.getAccountDetails(); console.log('Success! Retrieved results:', results); return results; } catch (error) { console.error(error); } } /* Promise resolves to: * { * "accountDetails": { * "status": "ACTIVE", * "package": { * "_id": "EmailMarketing_Professional", * "group": "EmailMarketing", * "monthlyQuotaAllocation": { * "campaigns": -1, * "emails": 5000 * } * }, * "quotaPeriod": { * "dateFrom": "2023-08-10T15:57:10.000Z", * "dateTo": "2023-09-10T15:57:10.000Z", * "quotaUsage": { * "campaigns": 4, * "emails": 2 * } * } * } * } */ ``` ## Get email marketing account details (export from backend code) ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { accountDetails } from 'wix-email-marketing.v2'; export const myGetAccountDetailsFunction = webMethod(Permissions.Anyone, async () => { try { const results = await accountDetails.getAccountDetails(); console.log('Success! Retrieved results:', results); return results; } catch (error) { console.error(error); } }); /* Promise resolves to: * { * "accountDetails": { * "status": "ACTIVE", * "package": { * "_id": "EmailMarketing_Professional", * "group": "EmailMarketing", * "monthlyQuotaAllocation": { * "campaigns": -1, * "emails": 5000 * } * }, * "quotaPeriod": { * "dateFrom": "2023-08-10T15:57:10.000Z", * "dateTo": "2023-09-10T15:57:10.000Z", * "quotaUsage": { * "campaigns": 4, * "emails": 2 * } * } * } * } */ ``` ---