Products

Create a new product

Create a new product with the specified details. Set `type` to one of: DigitalDownload, Game, GiftCard, SoftwareKey, VirtualCurrency, VirtualItem, Subscription, OneTimePayment. The type determines which other fields the request body accepts. After creation, add offers to make the product purchasable.

Authorization

Public key Secret key
x-fngs-public-key<token>

In: header

x-fngs-secret-key<token>

In: header

Request Body

application/json

POST /v0/products/create Request body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

POST
/v0/products/create
curl -X POST "https://example.com/v0/products/create" \  -H "Content-Type: application/json" \  -d '{    "name": "Premium Subscription",    "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",    "type": "VirtualItem"  }'
{  "status": "success",  "data": {    "product": {      "object": "product",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "type": "DigitalDownload",      "internalId": null,      "name": "",      "description": "",      "developer": null,      "publisher": null,      "pegiRating": "3",      "releaseDate": null,      "systems": null,      "genres": null,      "status": "DRAFT",      "customFields": null    }  }}