Orders API Reference
Planet Orders API (2.0.0)
Download OpenAPI specification:Download
The Orders API permits complex asset orders.
List Orders
Returns all order requests.
Authorizations:
query Parameters
page_marker | string Paging marker. |
page_size | integer Number of orders per page. |
state | Array of strings Items Enum: "queued" "running" "failed" "success" "partial" "cancelled" Filter orders by state on ListOrders. Accepts multiple values treated as a logical OR via multiple query parameters, e.g. ?state=queued&state=running. |
source_type | Array of strings Filter orders by source_type (scenes and/or basemaps) on ListOrders. Accepts multiple values treated as a logical OR via:
|
name | string Filter orders by name |
name__contains | string Filter orders by name containing a string |
created_on | string Filter orders by created_on interval or instant.
The time can be a closed interval (e.g. |
last_modified | string Filter orders by last_modified interval or instant.
The time can be a closed interval (e.g. |
hosting | boolean Only return orders that contain a hosting block (e.g. SentinelHub hosting) |
sort_by | string Fields to sort orders by. Multiple fields can be specified separated by commas. The sort direction can be specified by appending ' ASC' or ' DESC' to the field name. The default sort direction is ascending. When multiple fields are specified, the sort order is applied in the order the fields are listed. If no Supported fields: name, created_on, state, last_modified Examples:
|
Responses
Response samples
- 200
- 400
- 401
- 500
- default
{- "_links": {
- "_self": "string",
- "next": "string"
}, - "orders": [
- {
- "_links": {
- "_self": "string",
- "results": [
- {
- "delivery": "pending",
- "name": "string",
- "location": "string",
- "expires_at": "2019-08-24T14:15:22Z"
}
]
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "subscription_id": 0,
- "tools": [
- {
- "target_sensor": null
}
], - "metadata": {
- "stac": { }
}, - "products": [
- {
- "item_ids": [
- "string"
], - "item_type": "string",
- "product_bundle": "string"
}
], - "created_on": "string",
- "last_modified": "string",
- "state": "queued",
- "last_message": "string",
- "error_hints": [
- "string"
], - "delivery": {
- "single_archive": true,
- "archive_type": "string",
- "archive_filename": "string",
- "layout": {
- "format": "standard"
}, - "amazon_s3": {
- "bucket": "string",
- "aws_region": "string",
- "aws_access_key_id": "string",
- "aws_secret_access_key": "string",
- "path_prefix": "string"
}, - "azure_blob_storage": {
- "account": "string",
- "container": "string",
- "sas_token": "string",
- "storage_endpoint_suffix": "string",
- "path_prefix": "string"
}, - "google_cloud_storage": {
- "bucket": "string",
- "credentials": "string",
- "path_prefix": "string"
}, - "google_earth_engine": {
- "project": "string",
- "collection": "string",
- "credentials": "string"
}, - "oracle_cloud_storage": {
- "bucket": "string",
- "customer_access_key_id": "string",
- "customer_secret_key": "string",
- "region": "string",
- "namespace": "string",
- "path_prefix": "string"
}, - "planet_folders": {
- "folder_id": "string"
}, - "s3_compatible": {
- "bucket": "string",
- "endpoint": "string",
- "region": "string",
- "access_key_id": "string",
- "secret_access_key": "string",
- "path_prefix": "string",
- "use_path_style": false
}
}, - "notifications": {
- "webhook": {
- "url": "string",
- "per_order": true
}, - "email": true
}, - "order_type": "partial",
- "source_type": "scenes",
- "hosting": {
- "sentinel_hub": {
- "collection_id": "4bdef85c-3f50-4006-a713-2350da665f80",
- "create_configuration": true,
- "configuration_id": "af0daaf4-983e-4703-a7ed-a10f146d6684"
}
}
}
]
}
Create Order
Orders products.
Authorizations:
header Parameters
X-Planet-App | string Identify the client making this request |
Request Body schema: application/jsonrequired
Order details.
name required | string A name given to this Order request. |
subscription_id | integer Default: 0 apply this orders against this quota subscription |
Array of scenesSource (object) or basemapsSource (object) The products from the Data or Basemaps API to order. | |
object (Delivery) How should ordered products be delivered? | |
object (Notifications) How would you like to be notified when order is complete? | |
order_type | string Default: "full" Enum: "partial" "full" accept order if requested products are not available (partial)? |
source_type | string Default: "scenes" Enum: "scenes" "basemaps" Source imagery type for all products. Default is scenes. |
Array of harmonizeObject (object) or coregisterObject (object) or toarObject (object) or clipObject (object) or reprojectObject (object) or bandmathObject (object) or compositeObject (object) or tileObject (object) or cloud_filterObject (object) or file_formatObject (object) or mergeObject (object) or clipBasemapsObject (object) or file_formatBasemapsObject (object) | |
object (Metadata) Metadata settings | |
object (Hosting) Specify a data hosting location. A hosting location removes the need to specify a delivery location. Specifying both is not allowed. If hosting is specified, no direct download links will be generated. This location cannot be updated after an order has been created. |
Responses
Request samples
- Payload
{- "name": "string",
- "subscription_id": 0,
- "products": [
- {
- "item_ids": [
- "string"
], - "item_type": "string",
- "product_bundle": "string"
}
], - "delivery": {
- "single_archive": true,
- "archive_type": "string",
- "archive_filename": "string",
- "layout": {
- "format": "standard"
}, - "amazon_s3": {
- "bucket": "string",
- "aws_region": "string",
- "aws_access_key_id": "string",
- "aws_secret_access_key": "string",
- "path_prefix": "string"
}, - "azure_blob_storage": {
- "account": "string",
- "container": "string",
- "sas_token": "string",
- "storage_endpoint_suffix": "string",
- "path_prefix": "string"
}, - "google_cloud_storage": {
- "bucket": "string",
- "credentials": "string",
- "path_prefix": "string"
}, - "google_earth_engine": {
- "project": "string",
- "collection": "string",
- "credentials": "string"
}, - "oracle_cloud_storage": {
- "bucket": "string",
- "customer_access_key_id": "string",
- "customer_secret_key": "string",
- "region": "string",
- "namespace": "string",
- "path_prefix": "string"
}, - "planet_folders": {
- "folder_id": "string"
}, - "s3_compatible": {
- "bucket": "string",
- "endpoint": "string",
- "region": "string",
- "access_key_id": "string",
- "secret_access_key": "string",
- "path_prefix": "string",
- "use_path_style": false
}
}, - "notifications": {
- "webhook": {
- "url": "string",
- "per_order": true
}, - "email": true
}, - "order_type": "partial",
- "source_type": "scenes",
- "tools": [
- {
- "target_sensor": null
}
], - "metadata": {
- "stac": { }
}, - "hosting": {
- "sentinel_hub": {
- "collection_id": "4bdef85c-3f50-4006-a713-2350da665f80",
- "create_configuration": true,
- "configuration_id": "af0daaf4-983e-4703-a7ed-a10f146d6684"
}
}
}
Response samples
- 202
- 400
- 401
- 409
- 500
- default
{- "_links": {
- "_self": "string",
- "results": [
- {
- "delivery": "pending",
- "name": "string",
- "location": "string",
- "expires_at": "2019-08-24T14:15:22Z"
}
]
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "subscription_id": 0,
- "tools": [
- {
- "target_sensor": null
}
], - "metadata": {
- "stac": { }
}, - "products": [
- {
- "item_ids": [
- "string"
], - "item_type": "string",
- "product_bundle": "string"
}
], - "created_on": "string",
- "last_modified": "string",
- "state": "queued",
- "last_message": "string",
- "error_hints": [
- "string"
], - "delivery": {
- "single_archive": true,
- "archive_type": "string",
- "archive_filename": "string",
- "layout": {
- "format": "standard"
}, - "amazon_s3": {
- "bucket": "string",
- "aws_region": "string",
- "aws_access_key_id": "string",
- "aws_secret_access_key": "string",
- "path_prefix": "string"
}, - "azure_blob_storage": {
- "account": "string",
- "container": "string",
- "sas_token": "string",
- "storage_endpoint_suffix": "string",
- "path_prefix": "string"
}, - "google_cloud_storage": {
- "bucket": "string",
- "credentials": "string",
- "path_prefix": "string"
}, - "google_earth_engine": {
- "project": "string",
- "collection": "string",
- "credentials": "string"
}, - "oracle_cloud_storage": {
- "bucket": "string",
- "customer_access_key_id": "string",
- "customer_secret_key": "string",
- "region": "string",
- "namespace": "string",
- "path_prefix": "string"
}, - "planet_folders": {
- "folder_id": "string"
}, - "s3_compatible": {
- "bucket": "string",
- "endpoint": "string",
- "region": "string",
- "access_key_id": "string",
- "secret_access_key": "string",
- "path_prefix": "string",
- "use_path_style": false
}
}, - "notifications": {
- "webhook": {
- "url": "string",
- "per_order": true
}, - "email": true
}, - "order_type": "partial",
- "source_type": "scenes",
- "hosting": {
- "sentinel_hub": {
- "collection_id": "4bdef85c-3f50-4006-a713-2350da665f80",
- "create_configuration": true,
- "configuration_id": "af0daaf4-983e-4703-a7ed-a10f146d6684"
}
}
}
Get Order
Get order request details by Id.
Authorizations:
path Parameters
order_id required | string <uuid> The Order ID (a UUID). |
Responses
Response samples
- 200
- 401
- 404
- 500
- default
{- "_links": {
- "_self": "string",
- "results": [
- {
- "delivery": "pending",
- "name": "string",
- "location": "string",
- "expires_at": "2019-08-24T14:15:22Z"
}
]
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "subscription_id": 0,
- "tools": [
- {
- "target_sensor": null
}
], - "metadata": {
- "stac": { }
}, - "products": [
- {
- "item_ids": [
- "string"
], - "item_type": "string",
- "product_bundle": "string"
}
], - "created_on": "string",
- "last_modified": "string",
- "state": "queued",
- "last_message": "string",
- "error_hints": [
- "string"
], - "delivery": {
- "single_archive": true,
- "archive_type": "string",
- "archive_filename": "string",
- "layout": {
- "format": "standard"
}, - "amazon_s3": {
- "bucket": "string",
- "aws_region": "string",
- "aws_access_key_id": "string",
- "aws_secret_access_key": "string",
- "path_prefix": "string"
}, - "azure_blob_storage": {
- "account": "string",
- "container": "string",
- "sas_token": "string",
- "storage_endpoint_suffix": "string",
- "path_prefix": "string"
}, - "google_cloud_storage": {
- "bucket": "string",
- "credentials": "string",
- "path_prefix": "string"
}, - "google_earth_engine": {
- "project": "string",
- "collection": "string",
- "credentials": "string"
}, - "oracle_cloud_storage": {
- "bucket": "string",
- "customer_access_key_id": "string",
- "customer_secret_key": "string",
- "region": "string",
- "namespace": "string",
- "path_prefix": "string"
}, - "planet_folders": {
- "folder_id": "string"
}, - "s3_compatible": {
- "bucket": "string",
- "endpoint": "string",
- "region": "string",
- "access_key_id": "string",
- "secret_access_key": "string",
- "path_prefix": "string",
- "use_path_style": false
}
}, - "notifications": {
- "webhook": {
- "url": "string",
- "per_order": true
}, - "email": true
}, - "order_type": "partial",
- "source_type": "scenes",
- "hosting": {
- "sentinel_hub": {
- "collection_id": "4bdef85c-3f50-4006-a713-2350da665f80",
- "create_configuration": true,
- "configuration_id": "af0daaf4-983e-4703-a7ed-a10f146d6684"
}
}
}
Cancel an order
Cancel a queued order by Id.
Authorizations:
path Parameters
order_id required | string <uuid> The Order ID (a UUID). |
Responses
Response samples
- 200
- 401
- 404
- 409
- 500
- default
{- "_links": {
- "_self": "string",
- "results": [
- {
- "delivery": "pending",
- "name": "string",
- "location": "string",
- "expires_at": "2019-08-24T14:15:22Z"
}
]
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "subscription_id": 0,
- "tools": [
- {
- "target_sensor": null
}
], - "metadata": {
- "stac": { }
}, - "products": [
- {
- "item_ids": [
- "string"
], - "item_type": "string",
- "product_bundle": "string"
}
], - "created_on": "string",
- "last_modified": "string",
- "state": "queued",
- "last_message": "string",
- "error_hints": [
- "string"
], - "delivery": {
- "single_archive": true,
- "archive_type": "string",
- "archive_filename": "string",
- "layout": {
- "format": "standard"
}, - "amazon_s3": {
- "bucket": "string",
- "aws_region": "string",
- "aws_access_key_id": "string",
- "aws_secret_access_key": "string",
- "path_prefix": "string"
}, - "azure_blob_storage": {
- "account": "string",
- "container": "string",
- "sas_token": "string",
- "storage_endpoint_suffix": "string",
- "path_prefix": "string"
}, - "google_cloud_storage": {
- "bucket": "string",
- "credentials": "string",
- "path_prefix": "string"
}, - "google_earth_engine": {
- "project": "string",
- "collection": "string",
- "credentials": "string"
}, - "oracle_cloud_storage": {
- "bucket": "string",
- "customer_access_key_id": "string",
- "customer_secret_key": "string",
- "region": "string",
- "namespace": "string",
- "path_prefix": "string"
}, - "planet_folders": {
- "folder_id": "string"
}, - "s3_compatible": {
- "bucket": "string",
- "endpoint": "string",
- "region": "string",
- "access_key_id": "string",
- "secret_access_key": "string",
- "path_prefix": "string",
- "use_path_style": false
}
}, - "notifications": {
- "webhook": {
- "url": "string",
- "per_order": true
}, - "email": true
}, - "order_type": "partial",
- "source_type": "scenes",
- "hosting": {
- "sentinel_hub": {
- "collection_id": "4bdef85c-3f50-4006-a713-2350da665f80",
- "create_configuration": true,
- "configuration_id": "af0daaf4-983e-4703-a7ed-a10f146d6684"
}
}
}
Cancel Orders in bulk
Cancel Orders in bulk
Authorizations:
Request Body schema: application/jsonrequired
Bulk cancel details; empty body attempts to cancel all Orders in a pre-running state.
order_ids | Array of strings <uuid> (OrderID) [ 1 .. 10000 ] items [ items <uuid > ] Optional array of Order IDs to attempt to cancel |
Responses
Request samples
- Payload
{- "order_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
Response samples
- 200
- 401
- 404
- 500
- default
{- "result": {
- "succeeded": {
- "count": 0
}, - "failed": {
- "count": 0,
- "failures": [
- {
- "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",
- "message": "string"
}
]
}
}
}
Aggregated Order Stats
Provides aggregated counts of Active Orders for the User and the User's Organization.
Authorizations:
Responses
Response samples
- 200
- 401
- 500
- default
{- "user": {
- "queued_orders": 0,
- "running_orders": 0
}, - "organization": {
- "queued_orders": 0,
- "running_orders": 0
}
}