novinzodevelopers
Your store's APIApps referenceReseller purchases and keys

Admin List Purchases

GET/admin/purchases

The 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

status?|null
membershipId?|null
cursor?|null
page?|null
limit?|null

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}