POST
/
v0
/
products
/
create
Create a new product
curl --request POST \
  --url https://api.fungies.io/v0/products/create \
  --header 'Content-Type: application/json' \
  --header 'x-fngs-public-key: <api-key>' \
  --header 'x-fngs-secret-key: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "",
  "cover": "<string>",
  "coverBlurHash": "<string>",
  "coverVideo": "<string>",
  "gallery": [
    {
      "value": "<string>",
      "blurHash": "<string>"
    }
  ],
  "trailer": "<string>",
  "featureCoverVideo": true,
  "genres": [
    "Action"
  ],
  "features": [
    {
      "value": "<string>"
    }
  ],
  "status": "DRAFT",
  "externalId": "<string>",
  "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "systems": [
    "Windows"
  ],
  "offers": [
    {
      "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>"
    }
  ],
  "variants": [
    {
      "name": "<string>",
      "description": "",
      "features": [
        {
          "value": "<string>"
        }
      ],
      "cover": "<string>",
      "coverBlurHash": "<string>",
      "coverVideo": "<string>",
      "externalId": "<string>"
    }
  ],
  "customFields": [
    {
      "id": "<string>",
      "type": "<string>",
      "label": "<string>",
      "placeholder": "<string>",
      "regex": "<string>",
      "validationUrl": "<string>",
      "validationUrlSecret": "<string>",
      "values": "<any>"
    }
  ],
  "productRedeemMessage": "<string>",
  "tags": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ],
  "type": "<string>",
  "requirements": "<any>",
  "developer": "<any>",
  "publisher": "<any>",
  "pegiRating": "<any>",
  "releaseDate": "<any>"
}'
{
  "status": "<string>",
  "data": {
    "product": {
      "object": "product",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "DigitalDownload",
      "internalId": null,
      "name": "",
      "description": "",
      "developer": null,
      "publisher": null,
      "pegiRating": null,
      "releaseDate": null,
      "systems": null,
      "genres": null,
      "status": "DRAFT",
      "customFields": null
    }
  }
}

Authorizations

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

Body

application/json

POST /v0/products/create Request body

name
string
required
Required string length: 1 - 150
projectId
string<uuid>
required
type
string
required
Allowed value: "VirtualItem"
description
string
default:""
cover
string
coverBlurHash
string
coverVideo
Maximum length: 10
trailer
featureCoverVideo
boolean
genres
enum<string>[]
features
object[]
status
enum<string>
Available options:
DRAFT,
ACTIVE,
HIDDEN
externalId
string
systems
enum<string>[]
offers
object[]
variants
object[]
customFields
object[]
productRedeemMessage
string
tags
object[]
requirements
any

This value will never be returned in this type

developer
any

This value will never be returned in this type

publisher
any

This value will never be returned in this type

pegiRating
any

This value will never be returned in this type

releaseDate
any

This value will never be returned in this type

Response

POST /v0/products/create Positive response

status
string
required
Allowed value: "success"
data
object
required