Orders
Export

Create an order export job

Creates an asynchronous job to export orders to CSV.gz file. Returns a job_id that can be used to check status. Download link will be sent via email when ready.

post/orders/export

Request

Request body

worker_handlestring nullable

Unique customer provided identifier of the worker to used retrieve orders associated with the specified worker

place_handlestring nullable

Unique customer provided identifier of the place to be used retrieve orders associated with the specified place

search_termstring nullable

String representing the search term. Search will be done on order_handle, ops_group_handle, worker_handle and metadata fields.

ops_group_handlestring nullable

Unique Handle of Ops Group to fetch orders for

order_metadata_filterstring nullable

JSON encoded string for order metadata to filter orders by

risk_statusstring nullable

Filter for risk status of order

region_filterstring nullable

JSON object containing city, state, or country used to filter orders

statusstring nullable

String representation of Order status to fetch orders for. It can be comma separated list, each item in list can be one of completed, cancelled, rescheduled, disabled, ongoing, unplanned, assigned, planned. eg. ?status=completed,cancelled or ?status=completed to filter for one status

device_idstring nullable

Filter for orders associated with this device id.

destination_geohashstring nullable

Geohash of the area where order destination must lie.

plan_modeunknown
plan_idstring nullable

Filter for orders in this plan id.

route_handlestring nullable

Unique Handle of the route to fetch orders for

track_modeunknown
device_switch_modeunknown
created_at_datestring nullable

Date (YYYY-MM-DD) used as a filter to retrieve orders that are created on a given date.

created_at_fromstring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the start of window to retrieve orders that created within a timeframe.

created_at_tostring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the end of window to retrieve orders that created within a timeframe.

planned_at_datestring nullable

Date (YYYY-MM-DD) used as a filter to retrieve orders that are planned on a given date.

planned_at_fromstring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the start of window to retrieve orders planned within a timeframe.

planned_at_tostring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the start of window to retrieve orders planned within a timeframe.

scheduled_at_datestring nullable

Date (YYYY-MM-DD) used as a filter to retrieve orders that are scheduled on a given date.

scheduled_at_date_without_tzstring nullable

Date (YYYY-MM-DD) used as a filter to retrieve orders that are scheduled on a given date irrespective of timezone.

completed_at_date_without_tzstring nullable

Date (YYYY-MM-DD) used as a filter to retrieve orders that are completed on a given date irrespective of timezone.

scheduled_at_fromstring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the start of window to retrieve orders which have scheduled_at within a timeframe.

scheduled_at_tostring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the end of window to retrieve orders that which have scheduled_at within a timeframe.

scheduled_at_without_tz_fromstring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the start of window to retrieve orders of that day in all timezone.

scheduled_at_without_tz_tostring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the end of window to retrieve orders of that day in all timezone.

cancelled_at_datestring nullable

Date (YYYY-MM-DD) used as a filter to retrieve orders that are cancelled on a given date.

cancelled_at_fromstring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the start of window to retrieve orders that cancelled within a timeframe.

cancelled_at_tostring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the end of window to retrieve orders that cancelled within a timeframe.

completed_at_datestring nullable

Date (YYYY-MM-DD) used as a filter to retrieve orders that are completed on a given date.

completed_at_fromstring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the start of window to retrieve orders that completed within a timeframe.

completed_at_tostring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the end of window to retrieve orders that completed within a timeframe.

rescheduled_marked_at_datestring nullable

Date (YYYY-MM-DD) used as a filter to retrieve orders that are rescheduled on a given date.

rescheduled_marked_at_fromstring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the start of window to retrieve orders that rescheduled within a timeframe.

rescheduled_marked_at_tostring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the end of window to retrieve orders that rescheduled within a timeframe.

route_started_at_datestring nullable

Date (YYYY-MM-DD) used as a filter to retrieve orders for which route started on a given date.

route_started_at_fromstring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the start of window to retrieve orders for which route started within a timeframe.

route_started_at_tostring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the end of window to retrieve orders for which route started within a timeframe.

completed_at_without_tz_fromstring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the start of window to retrieve orders of that day for all timezone for completed orders.

completed_at_without_tz_tostring nullable

Timestamp (YYYY-MM-DD HH:mm:ss) of the end of window to retrieve orders of that day for all timezone for completed orders.

created_at_without_tz_fromstring nullable

Start Date (YYYY-MM-DD ) of the window to retrieve orders from that day for all timezone for created orders.

created_at_without_tz_tostring nullable

End Date (YYYY-MM-DD ) of the window to retrieve orders till that day for all timezone for created orders.

created_at_date_without_tzstring nullable

Date (YYYY-MM-DD) used as a filter to retrieve orders that are created on a given date irrespective of timezone.

driver_handlestring nullable

Unique customer provided identifier of the driver to used retrieve orders associated with the specified driver

sort_directionunknown
fulfillment_attemptinteger nullable

Filter for fulfillment attempt number

aggregateboolean nullable

Flag to fetch order's aggregated data.

limitinteger nullable

Limit to number of results in response

pagination_tokenstring nullable

Encoded value provided by our API to retrieve the next page of orders

send_outageboolean nullable

Boolean to send the outage in aggregation

tracking_status'tracked' | 'untracked' | 'null' nullable

Parameter to filter for tracked and untracked orders

filter_outage_categorystring nullable

List of outage category as comma separated strings used for filtering associated orders within time range

worker_profile_filterstring Encoded JSON nullable

JSON encoded string metadata associated with the worker to filter orders

worker_inside_destinationboolean nullable

Boolean flag to filter orders based on whether the worker is inside the destination or not.

order_handlestring nullable

List of order handles as comma separated strings used to fetch a specific subset of orders.

email_recipientsstring[]

Optional list of email addresses to send the export download link. Falls back to the account email when omitted.

Response

Successful response

job_idstring required

Unique identifier for the export job

statusstring required

Current status of the export job: pending, processing, completed, failed

messagestring required

Human-readable message about the job

Changes

No recorded changes to this operation across all 1 revision of this API.