v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Get Uploaded Coupons' Status

Retrieves the status of a coupon upload job.

get/coupon/api/v1/upload/getUploadStatus/{couponSeriesId}

Path parameters

couponSeriesIdinteger required

The unique ID of the coupon series to get the status.

Response

200

successboolean
statusinteger

Example response

{
  "success": true,
  "status": 200,
  "result": {
    "orgId": 2345,
    "couponSeriesId": 253543,
    "uploadJobStatuses": [
      {
        "jobId": 93477,
        "uploadStatus": "FINISHED",
        "createdOn": "1603101625000",
        "updatedOn": "1603101632000",
        "errorFileUrl": "error_1619_2532342020_10_19_15_30_32",
        "uploadedFileUrl": "couponCode_1603101623721_253234.csv",
        "totalUploadedCount": 3,
        "actualRowCount": 3,
        "errorCount": 3,
        "uploadTableName": "temp_1619_20201019_153531582",
        "uploadedFileName": "couponCode.csv"
      }
    ]
  }
}