Assign Top Up
/admin/top-ups/{topUpId}/assignCredits 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.
Path Parameters
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/admin/top-ups/string/assign" \ -H "Content-Type: application/json" \ -d '{ "membershipId": "string" }'{ "id": "string", "orderId": "string", "variantId": "string", "customerEmail": "string", "units": 1, "amountMinor": 0, "bonusMinor": 0, "currency": "AED", "status": "credited", "membershipId": "string", "note": "string", "createdAt": "string", "resolvedAt": "string", "refundedAt": "string"}Adjust Balance POST
Credits or debits the reseller's balance with the store. A sub-reseller's balance is with their upline, which records what they pay it: refused with 400 `InvalidRequestError`.
Create Credit Product POST
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.
