GET
/api/v1/merchantReturns merchant account details for the authenticated key or session.
Auth: Session or API key
Server-to-server integrations use API keys. Dashboard routes use session cookies.
Test keys — tp_test_…
pl_test_ payment links. Use during development.Live keys — tp_live_…
Send your API key as a Bearer token or via X-API-Key. Keys are scoped to one project — the URL :projectIdmust match the key's project.
| Context | Method |
|---|---|
| Dashboard (browser) | NextAuth session cookie |
| Server-to-server | Authorization: Bearer tp_test_xxxxxxxxxxxxxxxx |
| Alternative | X-API-Key: tp_test_xxxxxxxxxxxxxxxx |
/api/v1/merchantReturns merchant account details for the authenticated key or session.
curl -s "https://pay.andgroupco.com/api/v1/merchant" \
-H "Authorization: Bearer tp_test_xxxxxxxxxxxxxxxx"Keys are created in the dashboard (session auth only) with granular permissions. Common scopes:
orders:read / orders:writepayments:read / payments:writewebhooks:read / webhooks:writeMerchant verification
merchant_not_verified (403). Configure collection QR, keys, and webhooks while pending.