ResellersReferenceReseller API
Get Purchase
GET
/storefront-public/api/v1/purchases/{purchaseId}Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
purchaseId*string
The purchase's id (a UUID), as POST /purchases answers it in purchase.id.
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
application/json
application/json
curl -X GET "https://example.com/storefront-public/api/v1/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" } }, "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" } ]}