Admin List Purchases
/admin/purchasesThe store's reseller purchases, newest first. Without membershipId, only those of the store's own resellers, which pay the store: a sub-reseller's order shows as its upline's resale purchase, at the upline's price. With status pending_approval, only those waiting for the store, not those waiting for an upline. totalMinor is what was ordered; chargedMinor is what it cost after releases of keys not minted.
Query Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/admin/purchases"{ "items": [ { "id": "string", "status": "pending_approval", "totalMinor": 0, "chargedMinor": 0, "currency": "AED", "lines": [ { "id": "string", "skuId": "string", "skuName": "string", "quantity": 1, "unitPriceMinor": 0, "lineTotalMinor": 0, "status": "pending", "mintedCount": -9007199254740991, "failureReason": "string" } ], "note": "string", "tags": [ "string" ], "idempotencyKey": "string", "createdAt": "string", "completedAt": "string", "resale": { "buyer": { "membershipId": "string", "displayName": "string" }, "soldFor": { "totalMinor": 0, "chargedMinor": 0 } }, "awaitingApproval": { "_tag": "Store" }, "reseller": { "membershipId": "string", "displayName": "string" } } ], "nextCursor": "string", "total": 0}Admin List Keys GET
Every key of the store, or the keys of the reseller named by membershipId, each with the reseller who holds it.
Admin List Trials GET
The provider products the seller may mint trial keys of: each one a live product listing sells, with the longest a trial may last. With none, the first step of the store's trial setup that is missing. Fails with the provider's error when a connection's provider cannot list its products. A reseller may mint trials of those a live product listing they can see sells, while every policy of their chain allows trial and its quota is not used up; a trial lasts up to the product's maxMinutes, whatever the durations its listings sell.
