Your store's APIApps referenceReseller purchases and keys
Approve Purchases
POST
/admin/purchases/approveApproves several purchases, each as ApprovePurchase would, one after another, and answers what became of each.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
purchaseIds*array<>
Items
1 <= items <= 20Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/admin/purchases/approve" \ -H "Content-Type: application/json" \ -d '{ "purchaseIds": [ "string" ] }'[ { "_tag": "Done", "id": "string", "value": { "purchase": { "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" } }, "licenses": [ { "id": "string", "code": "string", "skuId": "string", "skuName": "string", "purpose": "sale", "purchaseId": "string", "status": "unused", "durationMinutes": 1, "activatedAt": "string", "expiresAt": "string", "holderDisplay": "string", "lastSeenAt": "string", "note": "string", "tags": [ "string" ], "refreshedAt": "string", "createdAt": "string" } ] } }]