novinzodevelopers
ResellersReferenceReseller API

List Purchases

GET/storefront-public/api/v1/purchases

The caller's purchases, newest first: its own orders and what it pays for its sub-resellers' orders. q matches the start of a purchase id, or part of its note or of a product name. subResellerId names one of the caller's direct sub-resellers; any other membership is not found.

Authorization

bearer
AuthorizationBearer <token>

In: header

Query Parameters

q?|null
skuId?|null
kind?|null
subResellerId?|null
cursor?|null
page?|null
limit?|null

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"
{  "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"      }    }  ],  "nextCursor": "string",  "total": 0}