Create Credit Product
/admin/credit-productsCreates 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.
1 <= length <= 630 < value <= 9007199254740991items <= 10Response 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"}Assign Top Up POST
Credits an unclaimed top-up to a reseller: its amountMinor and its bonusMinor on top. For a sub-reseller, every upline above it is credited the same, since the store took the payment that each level owes the one above. Only an unclaimed top-up can be assigned.
Dismiss Top Up POST
Closes an unclaimed top-up without crediting anyone, once the seller refunded its order in core.
