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,
  "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
productId
string
required
currency
enum<string>
required
Available options:
AFN,
ALL,
DZD,
AOA,
ARS,
AMD,
AWG,
AUD,
AZN,
BSD,
BDT,
BBD,
BZD,
BMD,
BOB,
BAM,
BWP,
BRL,
BHD,
GBP,
BND,
BGN,
BIF,
BYN,
KHR,
CAD,
CVE,
KYD,
KWD,
XAF,
XPF,
CLP,
CNY,
COP,
KMF,
CDF,
CRC,
HRK,
CZK,
DKK,
DJF,
DOP,
XCD,
EGP,
ETB,
EUR,
FKP,
FJD,
GMD,
GEL,
GIP,
GTQ,
GNF,
GYD,
HTG,
HNL,
HKD,
HUF,
ISK,
INR,
IDR,
ILS,
JMD,
JPY,
JOD,
KZT,
KES,
KGS,
LAK,
LBP,
LSL,
LRD,
MOP,
MKD,
MGA,
MWK,
MYR,
MVR,
MRO,
MUR,
MXN,
MDL,
MNT,
MAD,
MZN,
MMK,
NAD,
NPR,
ANG,
TWD,
NZD,
NIO,
NGN,
NOK,
OMR,
PKR,
PAB,
PGK,
PYG,
PEN,
PHP,
PLN,
QAR,
RON,
RUB,
RWF,
SHP,
SVC,
WST,
STD,
SAR,
RSD,
SCR,
SLL,
SGD,
SBD,
SOS,
ZAR,
KRW,
LKR,
SRD,
SZL,
SEK,
CHF,
TJS,
TZS,
THB,
TND,
TOP,
TTD,
TRY,
UGX,
UAH,
AED,
UYU,
USD,
UZS,
VUV,
VEF,
VND,
XOF,
YER,
ZMW,
SLE
price
number | null
required
Required range: 0 <= x <= 1.7976931348623157e+308
limit
integer | null
required
Required range: 0 <= x <= 9007199254740991
name
string
Required string length: 1 - 150
description
string
default:
cover
string
coverBlurHash
string
originalPrice
number | null
Required range: 0 <= x <= 1.7976931348623157e+308
freeProduct
boolean
default:false
region
enum<string>
Available options:
Global,
Europe,
Argentina,
United States,
Turkey,
United Kingdom,
Latin America,
Brazil,
Canada,
Mexico,
Germany,
Colombia,
France,
Saudi Arabia,
Australia,
Spain,
India,
Italy,
Netherlands,
United Arab Emirates,
North America,
Poland,
Belgium,
Asia,
Egypt,
Austria,
Singapore,
EMEA,
Ireland,
RU/CIS,
Sweden,
Portugal,
Switzerland,
New Zealand,
Malaysia,
Finland,
Greece,
Norway,
Denmark,
Japan,
Hong Kong,
Philippines,
Middle East,
Indonesia,
Czech Republic,
South Africa,
South Korea,
Luxembourg,
Slovakia,
Romania,
Slovenia,
Hungary,
Chile,
Nigeria,
Thailand,
Kuwait,
Vietnam,
Rest of the World,
Bahrain,
Qatar
platform
enum<string>
default:Global
Available options:
Meta Quest,
TV,
Music,
Tidal,
Tinder,
Zalando,
Razer,
Netflix,
Spotify,
Walmart,
Amazon,
Food,
Prepaid,
Steam,
Xbox Live,
Origin,
PSN,
Ubisoft Connect,
Nintendo,
Official Website,
GOG.com,
Epic Games,
Windows Store,
Battle.net,
Riot Games,
Steam Gift Card,
Roblox,
Green gift,
EA App,
Rockstar Games Launcher,
ArenaNet,
PUBG,
App Store,
Google Play,
Mobile,
Other,
Rockstar
recurringInterval
enum<string> | null
Available options:
day,
month,
week,
year
recurringIntervalCount
integer | null
Required range: 1 <= x <= 9007199254740991
trialInterval
enum<string> | null
Available options:
day,
month,
week,
year
trialIntervalCount
integer | null
Required range: 1 <= x <= 9007199254740991
gtin
externalId
string
variantId
string
variantIdx
integer
Required range: -9007199254740991 <= x <= 9007199254740991
fileName
string
downloadFile
string
downloadFileName
string
downloadFileSize
number
Required range: -1.7976931348623157e+308 <= x <= 1.7976931348623157e+308
downloadDescription
string
productKeys
string[]
hasDiscount
boolean
warningMessage
string
mutableQuantity
boolean
tags
object[]
downloadFileData
object | null
downloadFileType
string | null

Response

200
application/json
POST /v0/offers/create Positive response
status
string
required
Allowed value: "success"
data
object
required