novinzodevelopers
Your store's APIApps referenceReseller finance

Create Credit Product

POST/admin/credit-products

Creates a product on the store with one variant priced at minorPerUnit and sells that variant as reseller credit, as PutCreditVariant does: a unit costs what it credits. The product stays hidden until it is sold as credit, and stays hidden when selling or publishing it fails; a retry then creates another product.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

name*string
Length1 <= length <= 63
minorPerUnit*integer
Range0 < value <= 9007199254740991
bonusRules*array<>
Itemsitems <= 10

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/admin/credit-products" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "minorPerUnit": 1,    "bonusRules": [      {        "minUnits": 1,        "bonusBps": 0      }    ]  }'
{  "variantId": "string",  "minorPerUnit": 1,  "bonusRules": [    {      "minUnits": 1,      "bonusBps": 0    }  ],  "createdAt": "string",  "updatedAt": "string"}