discounts
Get discount by ID
discounts
Get discount by ID
Retrieve detailed information about a specific discount by its ID.
GET
/
v0
/
discounts
/
{discountId}
curl --request GET \
--url https://api.fungies.io/v0/discounts/{discountId} \
--header 'x-fngs-public-key: <api-key>'
{
"status": "<string>",
"data": {
"discount": {
"object": "discount",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "code",
"name": null,
"amount": "<string>",
"amountType": "fixed",
"discountCode": null,
"validFrom": null,
"validUntil": null,
"purchaseLimit": null,
"timesUsed": 0,
"status": "active",
"includesAllOffers": false,
"currency": "AFN"
}
}
}
Authorizations
Path Parameters
GET /v0/discounts/:discountId Parameter
Response
200
application/json
GET /v0/discounts/:discountId Positive response
The response is of type object
.
curl --request GET \
--url https://api.fungies.io/v0/discounts/{discountId} \
--header 'x-fngs-public-key: <api-key>'
{
"status": "<string>",
"data": {
"discount": {
"object": "discount",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "code",
"name": null,
"amount": "<string>",
"amountType": "fixed",
"discountCode": null,
"validFrom": null,
"validUntil": null,
"purchaseLimit": null,
"timesUsed": 0,
"status": "active",
"includesAllOffers": false,
"currency": "AFN"
}
}
}