Skip to main content
POST
Create an Orders export (orders + product information)

Authorizations

Authorization
string
header
required
Data-Client-ID
string
header
required

Body

application/json

Request to trigger a one-off Orders export (orders plus product information) to your own storage bucket. For an S3 destination provide both aws_role and region; omit them for a GCS destination.

bucket_name
string
required

Name of the external GCS or S3 bucket to export to.

start_date
string<date-time>
required

Start of the export window (inclusive).

end_date
string<date-time>
required

End of the export window (exclusive).

aws_role
string | null

AWS role ARN with access to the S3 bucket (required for S3 exports).

region
string | null

AWS region of the S3 bucket (required for S3 exports).

export_file_name
string

Name of the exported file. A default name is used if omitted.

Minimum string length: 3
Pattern: ^(?!/)(?!.*//)[A-Za-z0-9_/-]+(?<!/)$
columns
enum<string>[]

Optional list of column ids to include, in order. When omitted, the default columns are used. When provided, it must be a non-empty list of distinct ids, and you get exactly the columns you list — any subset of the allowed ids is valid and nothing is mandatory (customer_type is a default column, so include it here if you want it). products is a single column of comma-separated SKUs, falling back to the product id when a SKU is missing.

Minimum array length: 1
Available options:
order_id,
order_number,
order_ts,
platform,
order_revenue_total,
refund_amount_in_dollars,
attributed,
customer_type,
customer_first_name_sha256,
customer_email_sha256,
customer_phone_sha256,
customer_city_sha256,
customer_country_code_sha256,
customer_province_code_sha256,
customer_zip_sha256,
ip_address,
products,
order_tags,
source_name

Response

Orders export created successfully

id
string<uuid>
required