POST
/
v0
/
offers
/
create
curl --request POST \
  --url https://api.fungies.io/v0/offers/create \
  --header 'Content-Type: application/json' \
  --header 'x-fngs-public-key: <api-key>' \
  --header 'x-fngs-secret-key: <api-key>' \
  --data '{
  "productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "",
  "cover": "<string>",
  "coverBlurHash": "<string>",
  "currency": "AFN",
  "price": 8.988465674311579e+307,
  "originalPrice": 8.988465674311579e+307,
  "freeProduct": false,
  "limit": 4503599627370495,
  "region": "Global",
  "platform": "Global",
  "recurringInterval": "day",
  "recurringIntervalCount": 4503599627370496,
  "trialInterval": "day",
  "trialIntervalCount": 4503599627370496,
  "gtin": "<string>",
  "externalId": "<string>",
  "variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "variantIdx": 0,
  "fileName": "<string>",
  "downloadFile": "<string>",
  "downloadFileName": "<string>",
  "downloadFileSize": 0,
  "downloadDescription": "<string>",
  "productKeys": [
    "<string>"
  ],
  "hasDiscount": true,
  "warningMessage": "<string>",
  "mutableQuantity": true,
  "taxBehavior": "exclusive",
  "tags": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ],
  "downloadFileData": {
    "chunks": [
      {
        "chunk": "<string>",
        "metadata": {
          "number": 0,
          "start": 0,
          "end": 0,
          "size": 0
        }
      }
    ],
    "totalChunks": 0,
    "totalSize": 0
  },
  "downloadFileType": "<string>"
}'
{
  "status": "<string>",
  "data": {
    "offer": {
      "object": "offer",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "internalId": null,
      "price": 0,
      "originalPrice": null,
      "recurringInterval": null,
      "recurringIntervalCount": null,
      "trialInterval": null,
      "trialIntervalCount": null,
      "currency": "AFN",
      "limit": null,
      "soldItems": 0,
      "status": "DRAFT",
      "name": null,
      "description": null,
      "region": null,
      "platform": null,
      "gtin": null,
      "warningMessage": null
    }
  }
}

Authorizations

x-fngs-public-key
string
header
required
x-fngs-secret-key
string
header
required

Body

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

The body is of type object.

Response

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

The response is of type object.