limit | integer [ 0 .. 1000 ] The collection items limit. |
offset | integer >= 0 The collection items offset. |
filter | string The collection items filter requires a special format. Use "," for multiple allowed values. Use ";" for multiple fields. See the filter guide for more options and examples about this format. |
q | string The partial search of the text fields. |
sort | Array of strings The collection items sort field and order (prefix with "-" for descending sort). |
Coupons redemptions were retrieved successfully.
Pagination-Total | integer Total items count. Example: 332 |
Pagination-Limit | integer Items per page limit. Example: 100 |
Pagination-Offset | integer Pagination offset. Example: 2 |
Unauthorized access, invalid credentials were used.
Access forbidden.
$couponRedemptions = $client->couponsRedemptions()->search([ 'filter' => 'customerId:testCustomer', ]);
[- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "couponId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "additionalRestrictions": [
- {
- "type": "discounts-per-redemption"
}
], - "createdTime": "2019-08-24T14:15:22Z",
- "canceledTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
]