Retrieves a data export request.
Data export request.
name required | string Name of the export. | ||||||
format required | string Output format of the export. | ||||||
resource required | string Type of resource to export. | ||||||
id | string <= 50 characters ID of the export. | ||||||
object Export request arguments used to filter and sort the result set. For more information, see Arguments. | |||||||
| |||||||
emailNotification | Array of strings <email> List of email addresses to notify when an export is completed. | ||||||
fields | Array of strings List of fields to include in the export. For more information, see Arguments. | ||||||
object Recurring export schedule. | |||||||
| |||||||
userId | string ID of the user who requested the data export. | ||||||
recordCount | integer Total number of records in the export, excluding the header row. | ||||||
scheduledTime | string <date-time> Date and time when the data export is scheduled to generate a file. | ||||||
createdTime | string <date-time> (CreatedTime) Date and time which is set automatically when the resource is created. | ||||||
updatedTime | string <date-time> (UpdatedTime) Date and time which updates automatically when the resource is updated. | ||||||
status | string Status of export request. | ||||||
Array of objects Related links. | |||||||
object Date range of the data export. If this value is not set, all data is included. For more information, see Date ranges. | |||||||
|
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
const queuedExport = await api.exports.get({resource: 'transaction', id: 'foobar-001'}); console.log(queuedExport.fields.status);
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "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": "string",
- "recordCount": 0,
- "scheduledTime": "2019-08-24T14:15:22Z",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "status": "pending",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
], - "dateRange": {
- "start": "yesterday",
- "end": "today",
- "field": "createdTime"
}
}