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

x-fngs-public-key
string
header
required

Path Parameters

discountId
string
required

GET /v0/discounts/:discountId Parameter

Response

200
application/json
GET /v0/discounts/:discountId Positive response
status
string
required
Allowed value: "success"
data
object
required