This collection is a testing tool, not a second source of API truth. Guides
explain behaviour and the OpenAPI reference defines the contract; the Postman
files make that contract quick to exercise.
Import collection URL
In Postman choose Import → Link and paste this URL. Requests are grouped
by customers, enrolments, transactions, cards, webhooks, locations, pushes,
and marketplace operations.
Import environment
Production base URL and safe placeholder variables. It contains no live
credential.
Import and connect
1
Import the collection
In Postman, choose Import → Link and paste:Import the environment file from the card above, then select Perkstar
Production in the environment menu.
2
Add a test key
Create a read-only test key in Dashboard → Settings → API keys. Replace
the
api_key environment value with that key and mark the value as secret.3
Run the connection check
Open Marketplace → Auth check + org context and send the request. A
successful response identifies the connected business and available cards.
4
Run a read-only folder
Run the Cards folder first. Collection tests verify the API version,
request ID, and absence of a server error on every response.
Write requests
POST requests use Postman’s{{$guid}} dynamic variable for a fresh
Idempotency-Key. Replace it with a stable business reference when testing a
job that may be replayed from another process. For a manual retry, keep the
resolved key from the first request instead of generating another one.
Keep it current
The collection and environment are regenerated whenever the canonical API contract changes. CI rejects a release if the checked-in files are stale or if their method and path coverage differs from the OpenAPI reference.What to run before launch
Authentication smoke test
Authentication smoke test
Run Marketplace → Auth check + org context. Confirm the response names
the intended business, reports the expected key mode, and lists the cards
your integration expects.
Read-path contract test
Read-path contract test
Run the Cards, Locations, Customers, and Enrolments folders with a read-only
test key. Collection tests verify request IDs and reject unexpected server
errors.
Write and retry test
Write and retry test
Use a test key and an existing enrolment. Send the same write twice with the
same resolved
Idempotency-Key; the second response must replay safely
rather than apply loyalty twice.Webhook receiver test
Webhook receiver test
Create a test endpoint, store the signing secret, send
webhook.test, and
verify the raw request body before parsing it. Then compare your handler
against the event catalogue.
