POST
/
v0
/
discounts
/
create
curl --request POST \
  --url https://api.fungies.io/v0/discounts/create \
  --header 'Content-Type: application/json' \
  --header 'x-fngs-public-key: <api-key>' \
  --header 'x-fngs-secret-key: <api-key>' \
  --data '{
  "type": "<string>",
  "name": "<string>",
  "amount": 8.988465674311579e+307,
  "amountType": "fixed",
  "discountCode": "<string>",
  "validFrom": 4503599627370495,
  "validUntil": 4503599627370495,
  "purchaseLimit": "<string>",
  "excludedOffers": [
    "<string>"
  ],
  "includedOffers": [
    "<string>"
  ],
  "currency": "AFN",
  "status": "active",
  "includesAllOffers": true,
  "timezone": "<string>"
}'
{
  "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
x-fngs-secret-key
string
header
required

Body

application/json
POST /v0/discounts/create Request body

The body is of type object.

Response

200
application/json
POST /v0/discounts/create Positive response

The response is of type object.