POST
/
offers-imports
/
actions
/
generate-upload-url

Authorizations

Authorization
string
headerrequired

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

Headers

x-fabric-tenant-id
string
required

A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.

x-fabric-channel-id
string

The sales channel ID.

x-client-id
string

A unique identifier obtained from Copilot for the System app in the fabric ecosystem, essential for OpenID Connect authentication flows.

x-fabric-request-id
string

A unique request ID.

Body

application/json

A sample request containing file details be uploaded to the generated URL.

fileName
string
required

The name of the file to be uploaded.

type
enum<string>
required

Type of data in the file. The data provided in the file must match with type for successful processing of the file.

Available options:
PRICE,
PROMOTION,
COUPON,
COUPON_CODE,
REDEMPTION,
PRICE_RANGE,
PRICELIST
additionalAttributes
object

A placeholder for additional information.

Response

200 - application/json

A sample response containing a generated URL and the file name to be processed.

url
string
required

The AWS S3 URL used to download the data, in a CSV format, of a previous import. The URL is valid for five minutes.

fileName
string
required

The name of the error file.