Header field | Requirement | Description |
---|---|---|
Authorization | required | See Authentication. |
Content-Type | conditional | Required for POST and PUT requests, must be application/json . |
Idempotency-Key | optional | Optional for POST and PUT requests, see Idempotency. |
User-Agent | optional | |
Accept | optional | All requests must accept application/json or */* . |
Authorization
API Key
The Payssion API uses API key as Bearer Token
to authenticate requests. You can view and manage your API keys in the Payssion Dashboard.
Test mode API Key sample format: secret_test_******
Live mode API Key sample format: secret_live_******
For example:
curl https://api.payssion.com/v2/subscriptions \
-H "Authorization: Bearer secret_test_******"
Security warning
Please never expose your API secret key to public access.