Retrieve Discount - Customer
Retrieve a discount applied to a specific customer.
discount
ID of the discount. String starting with dis_.
/v1/customers/discount/:discount
Retrieve Discount - Customer
curl -X get 'https://sandboxapi.rapyd.net/v1/customers/discount/dis_d41d8cd98f00b204e9800998ecf8427e' \ -H 'access_key: your-access-key-here' \ -H 'Content-Type: application/json' \ -H 'salt: your-random-string-here' \ -H 'signature: your-calculated-signature-here' \ -H 'timestamp: your-unix-timestamp-here'
{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "75105366-aa7d-4273-910e-cc5ec0da06ca" }, "data": { "id": "dis_d41d8cd98f00b204e9800998ecf8427e", "coupon": { "id": "coupon_bf6bf01a874652f2021ef58abe981b11", "amount_off": 1, "created": 1648623332, "currency": "USD", "duration": "repeating", "duration_in_months": 1, "max_redemptions": 1, "metadata": { "merchant_defined": true }, "percent_off": 0, "redeem_by": 0, "times_redeemed": 1, "discount_valid_until": 0, "discount_validity_in_months": 0, "discount_duration_in_uses": 1, "description": "", "valid": false }, "customer": "cus_9a4fc494de92aed2fc40b01d828b0b46", "end": -1, "start": 1648623586, "number_of_uses": 0, "valid": true } }