novinzodevelopers
Your store's APIApps referenceReseller catalog

Create Product

POST/admin/products

A new product resellers may buy keys of, at one or more durations. Each duration is a SKU: durationMinutes is how long its keys last once activated, and null makes lifetime keys. listPriceMinor is the price before tier discounts and price rules. The provider product cannot change afterwards. With connectionId "store" the product sells the store's own keys: providerProductId is one of ListStoreKeyProducts, and it sells at one duration, which you state as its keys last.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

connectionId*|
providerProductId*string
Length1 <= length <= 200
name*string
visibility*||
skus*array<>
Items1 <= items <= 20

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/admin/products" \  -H "Content-Type: application/json" \  -d '{    "connectionId": "store",    "providerProductId": "string",    "name": "string",    "visibility": {      "_tag": "Everyone"    },    "skus": [      {        "durationMinutes": 1,        "listPriceMinor": 0,        "minOrderQuantity": 1      }    ]  }'
{  "id": "string",  "name": "string",  "connectionId": "string",  "providerProductId": "string",  "visibility": {    "_tag": "Everyone"  },  "skus": [    {      "id": "string",      "productId": "string",      "connectionId": "string",      "providerProductId": "string",      "name": "string",      "durationMinutes": 1,      "listPriceMinor": 0,      "minOrderQuantity": 1,      "visibility": {        "_tag": "Everyone"      },      "archivedAt": "string",      "createdAt": "string",      "updatedAt": "string"    }  ],  "archivedAt": "string",  "createdAt": "string",  "updatedAt": "string"}