Retrieves a list of coupon redemptions.
Retrieves a list of coupon redemptions.
limit | integer [ 0 .. 1000 ] Limits the number of collection items to be returned. |
offset | integer [ 0 .. 1000 ] 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 |
$couponRedemptions = $client->couponsRedemptions()->search([ 'filter' => 'customerId:testCustomer', ]);
200
List of coupon redemptions retrieved.
401
Unauthorized access. Invalid credentials used.
403
Access forbidden.
[ { "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" } ] } ]