Retrieve Discount - Subscription
Retrieve a discount applied to a specific subscription.
discount
ID of the discount. String starting with dis_.
/v1/subscriptions/discount/:discount
Retrieve Discount - Subscription
curl -X get 'https://sandboxapi.rapyd.net/v1/subscriptions/discount/dis_86d22bbca7d8cab52692dab3d3f10177' \ -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": "a1a473a7-4fec-46e4-9ba0-43419a369aa1" }, "data": { "id": "dis_86d22bbca7d8cab52692dab3d3f10177", "coupon": { "id": "coupon_ec743a04cbaf362e55695efe868d4c3b", "amount_off": 2.75, "created": 1763464621, "currency": "USD", "duration": "repeating", "duration_in_months": 1, "max_redemptions": 1, "metadata": {}, "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 }, "end": -1, "start": 1763464676, "subscription": "sub_1219e2329c4c5b26f08203d826a59d92", "number_of_uses": 0, "valid": true } }