API Overview
LedePay provides a REST-based payments API. All requests return JSON. Authentication uses a Bearer token.
Authentication
Send your API key in the Authorization header (Authorization: Bearer <key>). The test environment uses sk_test_-prefixed keys.
Pagination
GET /v1/payments?limit=10&starting_after=pi_xxxReturns the next batch. The list response contains object and data fields.
| Endpoint | Method | Description |
|---|---|---|
| /v1/payments | POST | Create Payment |
| /v1/refunds | POST | Create a refund |
| /v1/balances | GET | Query balance & settlement |