Example API Page with Custom Styling
This page demonstrates the custom styling and components available for your API documentation.
API Endpoints
GET
/api/merchants/:merchantId/transactionsRetrieves a list of transactions for a specific merchant.
POST
/api/merchants/:merchantId/invoicesCreates a new invoice for the specified merchant.
PUT
/api/merchants/:merchantId/team/:memberIdUpdates a team member's role.
DELETE
/api/merchants/:merchantId/team/:memberIdRemoves a team member from the merchant's team.
Tables with Modern Styling
| Parameter | Type | Required | Description |
|---|---|---|---|
merchantId | String | Yes | The ID of the merchant. |
amount | Number | Yes | Transaction amount in kobo/cents. |
currency | String | Yes | Three-letter currency code (NGN). |
reference | String | No | Optional transaction reference. |
Code Samples
# Example cURL request with syntax highlighting
curl -X POST "https://api.skypay.com/api/merchants/123456/invoices" \
-H "Authorization: Bearer your-jwt-token" \
-H "Content-Type: application/json" \
-d '{
"customerEmail": "customer@example.com",
"customerName": "Jane Doe",
"lineItems": [
{
"description": "Web Development Service",
"amount": 15000000,
"quantity": 1
}
]
}'
// JavaScript example
fetch('https://api.skypay.com/api/merchants/123456/invoices', {
method: 'POST',
headers: {
'Authorization': 'Bearer your-jwt-token',
'Content-Type': 'application/json'
},
body: JSON.stringify({
customerEmail: 'customer@example.com',
customerName: 'Jane Doe',
lineItems: [
{
description: 'Web Development Service',
amount: 15000000,
quantity: 1
}
]
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Cards
Quick Start
Get up and running with SkyPay in minutes.
API Reference
Detailed information about all API endpoints.
SDKs
Client libraries for popular programming languages.