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.
Requests the export of a specific data resource. Requires permission to retrieve the collection of the exported resource, such as GetTransactionCollection for transactions. Invoice items require GetInvoiceCollection.
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.
Export request arguments used to filter and sort the result set. For more information, see Arguments.
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.
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"
}
}'Maximum number of requests available at one time for this rate limit. For more information, see Rate limits.
Number of requests still available for this rate limit. For more information, see Rate limits.
Export request arguments used to filter and sort the result set. For more information, see Arguments.
List of fields to include in the export. For more information, see Fields.
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:
csv and detailed-csv part files repeat the header row.json and json-api part files contain a complete array.xml part 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.
Reason the export failed, if the export status is failed.
| Enum Value | Description |
|---|---|
| record-limit-exceeded | |
| max-retries-reached | |
| creator-access-revoked |
Date range of the data export. If this value is not set, all data is included. For more information, see Date ranges.
{ "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": {} } }