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": "54e132c9-8e03-4293-9c43-62e3c116deef" }, "data": { "id": "dis_d41d8cd98f00b204e9800998ecf8427e", "coupon": { "id": "coupon_4ab30530e8a7352ffe715deecfab57b9", "amount_off": 2, "created": 1646825743, "currency": "USD", "duration": "forever", "duration_in_months": 0, "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": 0, "description": "", "valid": false }, "customer": "cus_c62e8561f1f9217676819dce60accc08", "end": -1, "start": 1646834885, "number_of_uses": 0, "valid": true } }