Receipt Maker API Documentation
Introduction
Our Receipt Maker API allows developers to integrate receipt generation functionality directly into their applications. With simple REST endpoints, you can create professional receipts programmatically.
API Key Required - To use our API, you'll need to sign up for an API key. Contact us at contact@games4ever.fun to request access.
API Endpoints
1. Create Receipt
POST https://api.games4ever.fun/receipts/create
Headers:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Request Body:
{
"business": {
"name": "Sample Business",
"address": "123 Main St, City",
"phone": "(123) 456-7890",
"email": "contact@sample.com"
},
"receipt": {
"number": "R-1001",
"date": "2023-06-20",
"customer": "John Doe"
},
"items": [
{
"description": "Product 1",
"quantity": 1,
"price": 19.99
},
{
"description": "Product 2",
"quantity": 2,
"price": 29.99
}
],
"tax_rate": 7.5,
"discount": 5.00,
"payment_method": "Credit Card",
"notes": "Thank you for your business!",
"template": "modern"
}
Response
{
"success": true,
"receipt_id": "rec_abc123xyz456",
"download_url": "https://api.games4ever.fun/receipts/download/rec_abc123xyz456",
"preview_url": "https://api.games4ever.fun/receipts/preview/rec_abc123xyz456"
}
2. Get Receipt
GET https://api.games4ever.fun/receipts/{receipt_id}
Headers:
Authorization: Bearer YOUR_API_KEY
Response
{
"success": true,
"receipt": {
"id": "rec_abc123xyz456",
"business": { ... },
"items": [ ... ],
"created_at": "2023-06-20T14:30:00Z",
"download_url": "https://api.games4ever.fun/receipts/download/rec_abc123xyz456",
"preview_url": "https://api.games4ever.fun/receipts/preview/rec_abc123xyz456"
}
}
3. List Receipts
GET https://api.games4ever.fun/receipts
Headers:
Authorization: Bearer YOUR_API_KEY
Query Parameters:
limit: 10 (default)
offset: 0 (default)
from_date: YYYY-MM-DD
to_date: YYYY-MM-DD
Response
{
"success": true,
"receipts": [
{
"id": "rec_abc123xyz456",
"business_name": "Sample Business",
"receipt_number": "R-1001",
"date": "2023-06-20",
"total": 79.97,
"created_at": "2023-06-20T14:30:00Z"
},
...
],
"total": 42,
"limit": 10,
"offset": 0
}
Pricing
Free
$0/month
- 100 receipts/month
- Basic templates
- PDF downloads
- No custom branding
POPULAR
Pro
$9.99/month
- 1,000 receipts/month
- Premium templates
- Custom branding
- API access
Enterprise
$29.99/month
- 10,000 receipts/month
- All premium features
- Priority support
- Custom development
Advertisement
Google AdSense