Base URL
Requests and responses
- Authenticate with a secret key:
Authorization: Bearer sk_test_.... The two payment method session endpoints Payra Elements calls also take a publishable key with the session’sclient_secret. See Authentication. - Send and receive JSON. Every object the API returns carries an
objectfield naming its type; an error answers{ "error": { … } }. - Errors share one format. See Errors.
- Every API response carries a
Request-Idheader. Include it when you contact support.