Customer Records
Dashboard routes for customer records, summaries, exports, checkpoints, and verification packages.
These routes are dashboard (JWT-authenticated) customer record endpoints.
Base URL: https://balance-api.pacspace.io
Required header:
bash
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Optional environment scope:
bash
-H "X-Environment: sandbox"
Valid values: sandbox or production.
List Customer Records
bash
curl "https://balance-api.pacspace.io/dashboard/customers?page=1&limit=25&search=cust_" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Customer Summary
bash
curl https://balance-api.pacspace.io/dashboard/customers/summary \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Returns aggregate totals, including counts, balances, and verification metrics.
Customer Detail
bash
curl "https://balance-api.pacspace.io/dashboard/customers/cust_123?deltaPage=1&deltaLimit=20&status=verified" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Supported filters include status, reason, startDate, endDate, search, sortBy, and sortOrder.
Export Customer Activity (CSV)
bash
curl "https://balance-api.pacspace.io/dashboard/customers/cust_123/export?status=verified" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-o customer-record.csv
Generate Receipt
bash
curl "https://balance-api.pacspace.io/dashboard/customers/cust_123/receipt?period=2026-04" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Deprecated alias still available:
GET /dashboard/customers/:customerId/invoice-proof
Checkpoints
Create Checkpoint
bash
curl -X POST https://balance-api.pacspace.io/dashboard/customers/cust_123/checkpoint \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"period": "2026-04"
}'
List Checkpoints
bash
curl "https://balance-api.pacspace.io/dashboard/customers/cust_123/checkpoints?period=2026-04&limit=50" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
List Checkpoint Fingerprint Candidates
bash
curl "https://balance-api.pacspace.io/dashboard/customers/cust_123/checkpoint-fingerprints?period=2026-04" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Legacy aliases:
GET /dashboard/customers/:customerId/checkpoints/fingerprintsGET /dashboard/customers/:customerId/fingerprints
Verification Package
Create a shareable verification package for spot-check workflows.
bash
curl -X POST https://balance-api.pacspace.io/dashboard/customers/cust_123/verification-package \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"period": "2026-04",
"sampleSize": 10
}'
Batch Checkpoint Export
Export checkpoints across customers in CSV or JSON.
bash
curl "https://balance-api.pacspace.io/dashboard/customers/batch-checkpoints/export?period=2026-04&format=csv" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-o checkpoints.csv
Endpoints Summary
| Endpoint | Method | Description |
|---|---|---|
/dashboard/customers | GET | List customer records |
/dashboard/customers/summary | GET | Aggregate customer summary |
/dashboard/customers/batch-checkpoints/export | GET | Export checkpoint data across customers |
/dashboard/customers/:customerId | GET | Customer detail and activity |
/dashboard/customers/:customerId/export | GET | Export customer activity CSV |
/dashboard/customers/:customerId/receipt | GET | Generate receipt |
/dashboard/customers/:customerId/invoice-proof | GET | Deprecated alias of receipt |
/dashboard/customers/:customerId/checkpoint | POST | Create customer checkpoint |
/dashboard/customers/:customerId/checkpoints | GET | List checkpoints |
/dashboard/customers/:customerId/checkpoint-fingerprints | GET | List fingerprint candidates |
/dashboard/customers/:customerId/checkpoints/fingerprints | GET | Deprecated alias |
/dashboard/customers/:customerId/fingerprints | GET | Deprecated alias |
/dashboard/customers/:customerId/verification-package | POST | Create verification package |