Audience:
Developers
Export account data using the API
Export the account data available on your Dashboard programmatically with the API.
Guide
- Call the
exportAccountDatamutation. - Add your
email. A link to download the.csvexport is sent to the email address you provide. - Optionally, add
filtersto limit the export; the example exports only accounts with the payment levelLimitedand the statusOpened. - Add the success payload and rejections.
Mutation
Open in API Explorermutation ExportAccount {
exportAccountData(
input: { email: "$YOUR_EMAIL_ADDRESS", filters: { paymentLevels: Limited, status: Opened } }
) {
... on ExportDataSuccessPayload {
__typename
exportId
}
... on MaximumSimultaneousExportsRejection {
__typename
message
}
... on MaximumDailyExportsReachedRejection {
__typename
message
}
}
}
Payload
The payload returns the export ID.
{
"data": {
"exportAccountData": {
"__typename": "ExportDataSuccessPayload",
"exportId": "$EXPORT_ID"
}
}
}
After finalizing your export, a download link is sent to the email address you provided.
Also available
Export account dataFrom the Dashboard