novinzodevelopers
Your store's APIApps referenceReseller purchases and keys

Admin Get Purchase

GET/admin/purchases/{purchaseId}

Path Parameters

purchaseId*string
Match^([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

curl -X GET "https://example.com/admin/purchases/string"
{  "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"    }  ]}