Upload a Coupon File to the Coupon List
Once a coupon list is created, coupons should be added to the list to be distributed through campaigns. If a coupon list has been running for some time, it may be running low after serving several campaigns.
Using this API, you can replenish an older list or populate a new list by providing the URL of a file containing the coupons, thereby enabling their distribution through various campaigns. These coupons can be provided through a file, and the API requires the URL where your coupon file is hosted.
- For convenience, a callback URL can be set up to trigger when the file’s processing is completed.
- The processing status can be checked using the Fetch a Coupon File API to get the status separately.
Rate Limit
You can upload:- 5 coupon files to a coupon list per minute or
- 50 coupon files to a coupon list per day
- Payload size limit: 64 MB for manual uploads or 100 MB for URL uploads.
- Additional limits: The maximum number of coupons per coupon list is 100 million.
Authorizations
Uses Workspace ID as username and API Key as password.
Headers
This is the workspace ID (earlier APP ID) of your MoEngage workspace. The MOE-APPKEY has to be passed in the request. You can find your MoEngage Workspace ID in the MoEngage Dashboard: Settings -> Account -> APIs -> Workspace ID (earlier app id).
Path Parameters
The unique identifier for the coupon list.
Body
This field consists of the file path of the coupon list.
This field consists of the file name of the coupon list.
This field consists of the coupon file username.
This field consists of the coupon file password.
This field consists of the name of the subscriber who uploaded the coupon file.
This field consists of the coupon file callback URL.
Response
Success The request was successful, and the coupon URL upload request was accepted.
Note: The status of the URL upload is always PENDING.
This field contains the coupon file name.
This field consists of the file path of the coupon list.
This field consists of the name of the subscriber who uploaded the coupon file.
Once the coupon URL upload request is accepted, the response displays the following status:
- PENDING - The URL is waiting for approval.
Note: To know the status of the coupon upload, you need to trigger the Fetch a Coupon File API.
This field contains the coupon list ID that you have requested to upload the coupon file to.
This field contains the coupon file ID.