Skip to main content
https://.thoughtindustries.com

Bulk Import Coupon

Bulk-imports coupons from an uploaded asset file. Submit the asset path to validate each row and enqueue a background job that processes the import

Bulk-imports coupons from an uploaded asset file. Submit the asset path to validate each row and enqueue a background job that processes the import.

POSThttps://example.thoughtindustries.com/incoming/v2/coupons/bulkImport

Example request

curl -X POST "https://example.thoughtindustries.com/incoming/v2/coupons/bulkImport" \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "bulkImportAssetPath": "string"
}'

Parameters

NameTypeRequiredLocationDescription
bulkImportAssetPathstringYesbodyThe storage path of the uploaded asset file containing the coupon rows to import.

Example response

{
  "backgroundJob": {
    "id": "00000000-0000-0000-0000-000000000000",
    "description": "string",
    "errorMessage": "string",
    "status": "string"
  }
}

Response fields

FieldTypeDescription
backgroundJobobjectThe background job processing the coupon import.
backgroundJob.iduuidIdentifier of the background job.
backgroundJob.descriptionstringHuman-readable description of the job.
backgroundJob.errorMessagestringError message if the job failed to start or run.
backgroundJob.statusstringCurrent status of the background job.