API Reference
Complete API documentation for integrating Pi payments into your application
Introduction
Zyrapayprovides a simple REST API for creating Pi payment checkouts, managing wallets, and handling transactions. All API requests are made to api.zyrapay.net and require authentication using your API key.
Authentication
All API requests require authentication using your API key in the request headers.
Headers Required
apikey - Your project API keyContent-Type - application/jsonCheckout
Create checkout sessions for Pi payments and manage payment processing.
/checkoutCreate a new checkout session for Pi payments
Request Body
Response
/checkout/{checkoutId}Get details of a specific checkout session
Response
Wallets
Create and manage Pi wallets for your users.
/walletCreate a new Pi wallet
Response
Transactions
View and manage payment transactions.
/transactionsList all transactions for your account
Response
Error Handling
Zyrapayuses conventional HTTP response codes to indicate success or failure of API requests.
Error Response Format
Common Error Codes
400 - Bad Request401 - Unauthorized404 - Not Found429 - Rate Limited500 - Server Error