Bulk Create Coupon Codes
POSThttps://a.klaviyo.com/api/coupon-code-bulk-create-jobs
Create a coupon-code-bulk-create-job to bulk create a list of coupon codes.
Max number of coupon codes per job we allow for is 1000. Max number of jobs queued at once we allow for is 100.
- Revision header
revision: 2025-01-15required- Scopes
coupon-codes:write- Rate limits
- Burst:
75/sSteady:700/m
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2025-01-15
Request body
Content type: application/vnd.api+jsonrequired
Show 2 fields
Show 1 field
Array of coupon codes to create.
Show 1 field
Show 3 fields
Show 2 fields
This is a unique string that will be or is assigned to each customer/profile and is associated with a coupon.
The datetime when this coupon code will expire. If not specified or set to null, it will be automatically set to 1 year.
Responses
202Success
Content type: application/vnd.api+json
Show 5 fields
Unique identifier for retrieving the job. Generated by Klaviyo.
Show 8 fields
Status of the asynchronous job.
The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).
The total number of operations to be processed by the job. See
completed_countfor the job's current progress.The total number of operations that have been completed by the job.
The total number of operations that have failed as part of the job.
Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).
Array of errors encountered during the processing of the job.
Show 5 fields
Unique identifier for the error.
A code for classifying the error type.
A high-level message about the error.
Specific details about the error.
Show 1 field
A pointer to the source of the error in the request payload.
Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).
Show 1 field
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json