Authentication
API keys, scopes, and test vs live isolation
POST— (header on every /v1/* merchant route)
Create keys in Merchant Console → Developers. The full secret is shown once. Keys are stored as prefix + SHA-256 hash only.
Authorization: Bearer tp_test_<prefix>.<secret>Key prefixes
| Field | Type | Req | Description |
|---|---|---|---|
tp_test_… | Key | — | Test ledger (livemode: false) |
tp_live_… | Key | — | Live ledger (livemode: true). Creating live keys may require MFA. |
Scopes
| Field | Type | Req | Description |
|---|---|---|---|
payments:write | Scope | — | Create intent, create payout, simulate webhook |
payments:read | Scope | — | Get/list payments, get payout, balance |
Test keys cannot read or mutate live intents. Live keys require ≥1 API IP allowlist entry; empty allowlist rejects all live /v1 calls. When the allowlist is non-empty, non-listed IPs are rejected for both test and live.