Retrieves the coupon with the given ID.
Request
Send your HTTP requests with an Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:Authorization: Basic *****************
Request samples
curl --location --request GET 'https://apitest.wooshpay.com/v1/coupons/' \
--header 'Accept;' \
--header 'Authorization: Basic Og=='
Responses
application/json {
"id": "string",
"amount_off": 0,
"currency": "string",
"duration": "forever",
"duration_in_months": 0,
"duration_in_weeks": "string",
"duration_in_days": "string",
"object": "string",
"created": 0,
"livemode": true,
"metadata": {},
"name": "string",
"percent_off": 0,
"max_redemptions": 0,
"redeem_by": 0,
"times_redeemed": 0,
"valid": true,
"applies_to": {
"products": [
"string"
]
}
}
Modified at 2024-05-14 07:22:50