Coupons: Magento Coupons
insert update delete REST
- Catalog:
Magento - Schema:
Marketing - Primary Keys:
coupon_id - Label: Coupons
Retrieve a coupon using the specified search criteria. This call returns an array of objects, but detailed information about each object’s attributes might not be included. See https://developer.adobe.com/commerce/webapi/rest/attributes#CouponRepositoryInterface to determine which call to use to get detailed information about all attributes for an object.
Can retrieve data and change data using insert, update and delete.
Summary
Retrieve a coupon using the specified search criteria. This call returns an array of objects, but detailed information about each object’s attributes might not be included. See https://developer.adobe.com/commerce/webapi/rest/attributes#CouponRepositoryInterface to determine which call to use to get detailed information about all attributes for an object.
API Source
- Endpoint:
/V1/coupons/search - Operation:
get /V1/coupons/search
Performance Characteristics
| Characteristic | Value |
|---|---|
| Average access latency (ms) | 45 |
| Full scan rows per minute | 114,833 |
| Point query rows per minute | 1,188 |
| Write rows per minute | 599 |
The result can be cached on the client.
Parameters
| Name | Data Type | Required | Default | Documentation |
|---|---|---|---|---|
search |
`` | Current page. | ||
search |
`` | Condition type | ||
search |
`` | Field | ||
search |
`` | Value | ||
search |
`` | Page size. | ||
search |
`` | Sorting direction. | ||
search |
`` | Sorting field. |
Table Columns
The columns of the table Coupons are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.
| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|---|---|---|
code |
varchar2 |
Code | filters on the platform, writable, code |
Coupon code | |
coupon_ |
int64 |
Coupon ID | filters on the platform, writable, coupon_ |
Coupon id | |
created_ |
varchar2 |
Created At | filters on the platform, writable, created_ |
When the coupon is created | |
expiration_ |
varchar2 |
Expiration Date | filters on the platform, writable, expiration_ |
Expiration date | |
extension_ |
varchar2 |
Extension Attributes | writable | The JSON text of the nested object. | |
is_ |
char |
Is Primary | filters on the platform, writable, is_ |
The coupon is primary coupon for the rule that it's associated with | |
rule_ |
int64 |
Rule ID | filters on the platform, writable, rule_ |
The id of the rule associated with the coupon | |
times_ |
int64 |
Times Used | filters on the platform, writable, times_ |
The number of times the coupon has been used | |
type |
int64 |
Type | filters on the platform, writable, type |
Of coupon | |
usage_ |
int64 |
Usage Limit | filters on the platform, writable, usage_ |
Usage limit | |
usage_ |
int64 |
Usage per Customer | filters on the platform, writable, usage_ |
Usage limit per customer |