In Retool: add a REST API resource with base URL https://api.paystack.co, add header Authorization: Bearer sk_live_your_key. Create queries: GET /transaction for transaction list, GET /transaction/verify/{{reference}} for lookup, POST /refund for refunds. Drag UI components (Table, TextInput, Button) onto the canvas and bind them to your queries.
Paystack. Base URL: https://api.paystack.co.Authorization = Bearer {"{{"}secrets.PAYSTACK_SECRET_KEY{"}}"}. Store your key in Retool Secrets.Now you can create queries in any Retool app that use this resource. Queries run on Retool's server — your Paystack secret key is never exposed to the browser.
| Query | Method | Endpoint | Use |
|---|---|---|---|
| List Transactions | GET | /transaction?perPage=50&page={{pageNum.value}} | Transaction table with pagination |
| Search by Email | GET | /transaction?customer={{emailInput.value}} | Find all payments for a customer |
| Verify Payment | GET | /transaction/verify/{{referenceInput.value}} | Look up a single transaction |
| Refund Payment | POST | /refund | Initiate a refund with body {transaction: reference} |
| List Transfers | GET | /transfer?perPage=50 | Payout history |
For the Refund query, set the HTTP body to {"{"}"transaction": "{{transactionRef}}", "amount": {{refundAmount}}{"}"}"}}. Add a Confirmation dialog before the query runs so finance team must confirm before submitting.
Get weekly developer tips
Join 25,000+ developers. Practical guides, job tips, and new content — straight to your inbox.
No spam. Unsubscribe anytime.
See the Paystack integrations guide for all integration options.
KES 2,999
The definitive guide to building payment systems with Paystack — from your first transaction to production-grade payment infrastructure across Africa. 9 modules, 47 lessons. Free preview available.
Start Paystack Course