Discounts

Get discount details

Retrieve detailed information about a specific discount by its ID. Returns the full discount object including usage statistics and associated products/offers.

Authorization

Public key
x-fngs-public-key<token>

In: header

Path Parameters

discountId*string

GET /v0/discounts/:discountId Parameter

Formatuuid

Response Body

application/json

application/json

GET
/v0/discounts/{discountId}
curl -X GET "https://example.com/v0/discounts/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "status": "success",  "data": {    "discount": {      "object": "discount",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "type": "code",      "name": null,      "amount": "string",      "amountType": "fixed",      "discountCode": null,      "validFrom": null,      "validUntil": null,      "purchaseLimit": null,      "timesUsed": 0,      "status": "active",      "includesAllOffers": false,      "excludedOffers": [        "string"      ],      "currency": "AFN"    }  }}