POST
/
api-offers
/
offers-exports

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Body

application/json

The sample request to initiate data export.

type
enum<string>
required

The type of data to export.

Available options:
REDEMPTION,
CALCULATED_PRICE
filters
object[]

Filters to apply when exporting the data.

Response

200 - application/json

The sample response of the create export request.

exportId
string
required

A unique ID for the export request.

startedAt
string
required

The start time of the export process.

endedAt
string | null

The end time of the export process.

totalDataExported
number

The total number of exported data in the csv file. Each row in the csv file represents one record of exported data.

status
enum<string>
required

The status of the export process.

Available options:
IN_PROGRESS,
COMPLETED,
ERROR
errors
object[]

Errors during export process.

type
string
required

The type of data to export.

filters
object[]