Export giveaway codes of a giveaway pool

GET {{baseUrl}}/v1/giveaways/pools/:poolId/export?createdBefore=2022-11-08T00:11:22.082Z&createdAfter=2022-11-08T00:11:22.082Z

Download a CSV file containing the giveaway codes of a specific giveaway pool.

Tip: If the exported CSV file is too large to view, you can split it into multiple files.

The CSV file contains the following columns:

  • id: The internal ID of the giveaway.
  • poolid: The internal ID of the giveaway pool.
  • code: The giveaway code.
  • startdate: The validity start date in RFC3339 of the giveaway (can be empty).
  • enddate: The validity end date in RFC3339 of the giveaway (can be empty).
  • attributes: Any custom attributes associated with the giveaway code (can be empty).
  • used: An indication of whether the giveaway is already awarded.
  • importid: The ID of the import which created the giveaway.
  • created: The creation time of the giveaway code.
  • profileintegrationid: The third-party integration ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded.
  • profileid: The internal ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded or an internal ID does not exist.

Request Params

KeyDatatypeRequiredDescription
createdBeforestringTimestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string.
createdAfterstringTimestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring