Retrieves a list of coupon redemptions.
limit | integer [ 0 .. 1000 ] Limits the number of collection items to be returned. |
offset | integer >= 0 Specifies the starting point within the collection of items to be returned. |
filter | string Filters the collection items. This field requires
a special format. Use For more information, see Using filter with collections. |
q | string Use this field to perform a partial search of text fields. |
sort | Array of strings Sorts and orders the collection of items. To sort in descending
order, prefix with |
List of coupon redemptions retrieved.
Unauthorized access. Invalid credentials used.
Access forbidden.
$couponRedemptions = $client->couponsRedemptions()->search([ 'filter' => 'customerId:testCustomer', ]);
[- {
- "id": "cpn_rdm_0YVCNKF81GD778N4YNVGDJK558",
- "couponId": "cpn_0YVCNKF81GD778N4YNVGDJK558",
- "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
- "additionalRestrictions": [
- {
- "type": "discounts-per-redemption",
- "quantity": 0
}
], - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "canceledTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}
]