Skip to main content

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/transactions

Retrieves a list of transactions for a specific merchant.

POST/api/merchants/:merchantId/invoices

Creates a new invoice for the specified merchant.

PUT/api/merchants/:merchantId/team/:memberId

Updates a team member's role.

DELETE/api/merchants/:merchantId/team/:memberId

Removes a team member from the merchant's team.

Tables with Modern Styling

ParameterTypeRequiredDescription
merchantIdStringYesThe ID of the merchant.
amountNumberYesTransaction amount in kobo/cents.
currencyStringYesThree-letter currency code (NGN).
referenceStringNoOptional 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.