Use data export operations to manage the export of resource data, such as: transactions, customers, subscriptions, invoices, or invoice item data. Common data export use cases are: accounting, data analysis, reporting, or importing into other databases.
For detailed information on Rebilly resources, see Resources.
For information on how manage reconciliation, see Transaction reconciliation.
Requests the export of a specific data resource.
Expands a request to include embedded objects within the _embedded property of the response. This field accepts a comma-separated list of objects.
For more information, see Embedded resources.
Data Export Request.
Export request arguments used to filter and sort the result set. For more information, see Arguments.
List of email addresses to notify when an export is completed.
List of fields to include in the export. For more information, see Fields.
Date range of the data export. If this value is not set, all data is included. For more information, see Date ranges.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/experimental/data-exports
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/experimental/data-exports
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/experimental/data-exports
- SecretApiKey
- JWT
- customers
- subscriptions
- transactions
- invoices
- invoiceItems
- amlChecks
- disputes
- journalRecords
- payoutRequests
- payoutRequestAllocations
- users
curl -i -X POST \
'https://www.rebilly.com/_mock/catalog/all/experimental/data-exports?expand=string' \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"name": "string",
"resource": "customers",
"format": "csv",
"arguments": {
"filter": "string",
"sort": "string",
"q": "string"
},
"emailNotification": [
"user@example.com"
],
"fields": [
"string"
],
"recurring": {
"instruction": "string",
"start": "2019-08-24T14:15:22Z"
},
"dateRange": {
"start": "yesterday",
"end": "today",
"field": "createdTime"
}
}'Data export request received.
Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.
Export request arguments used to filter and sort the result set. For more information, see Arguments.
List of email addresses to notify when an export is completed.
List of fields to include in the export. For more information, see Fields.
ID of the user who requested the data export.
ID of the data export file. If the export contains more than 1,000,000 records, the file is a ZIP archive. The archive contains numbered part files, such as example-part1.csv and example-part2.csv, each with a maximum of 1,000,000 records. Each part file can be processed independently:
csvanddetailed-csvpart files repeat the header row.jsonandjson-apipart files contain a complete array.xmlpart files contain their own root element.
pdf exports are always a ZIP archive that contains one PDF per record, and are never split into part files.
Date and time when the data export is scheduled to generate a file.
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
Reason the export failed, if the export status is failed.
| Enum Value | Description |
|---|---|
| record-limit-exceeded | Export exceeded the maximum number of records allowed for a single export. |
| max-retries-reached | Export failed after the maximum number of retry attempts. |
Date range of the data export. If this value is not set, all data is included. For more information, see Date ranges.
- customers
- subscriptions
- transactions
- invoices
- invoiceItems
- amlChecks
- disputes
- journalRecords
- payoutRequests
- payoutRequestAllocations
- users
{ "id": "exp_0YVCNQ2C1AD1RA3HXKP492GNZB", "name": "string", "resource": "customers", "format": "csv", "arguments": { "filter": "string", "sort": "string", "q": "string" }, "emailNotification": [ "user@example.com" ], "fields": [ "string" ], "recurring": { "instruction": "string", "start": "2019-08-24T14:15:22Z" }, "userId": "usr_0YVCEENYJ3D7Q9EN6BN16HA0G4", "fileId": "file_0YV7HZ7KDCC5WBV9Q7WRKG1H6N", "recordCount": 0, "scheduledTime": "2019-08-24T14:15:22Z", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "status": "pending", "failureReason": "record-limit-exceeded", "dateRange": { "start": "yesterday", "end": "today", "field": "createdTime" }, "_links": [ { … } ], "_embedded": { "file": {}, "user": {} } }