LLMs Context Files
AI-friendly documentation files for building with Paysera Checkout.
We provide machine-readable context files optimized for Large Language Models (LLMs) like ChatGPT, Claude, and other AI assistants. These files help AI tools understand our API and generate accurate code.
Available Context Files​
| File | Description | URL |
|---|---|---|
| Paysera Checkout | Complete API reference for Paysera Checkout | /llms-checkout.txt |
| Checkout Classic | Legacy Checkout API reference | /llms-checkout-classic.txt |
| Full Documentation | All Paysera APIs combined | /llms-full.txt |
| Index | Overview of all available context files | /llms.txt |
How to Use​
With ChatGPT / Claude​
- Download the context file or copy its URL
- Paste the content into your conversation or reference the URL
- Ask questions about integration, code generation, or troubleshooting
Example prompt:
Using the Paysera Checkout API documented at /llms-checkout.txt,
write PHP code to create a payment order for €25.00 with
reference "ORDER-123" and handle the webhook callback.
With GitHub Copilot / Cursor​
Add the context file to your project or reference it in your prompt:
# See /llms-checkout.txt for Paysera Checkout API reference
# Create a payment order
def create_payment_order(amount_cents, reference):
...
With Custom AI Applications​
Fetch the context file programmatically:
curl https://developers-old.paysera.com/llms-checkout.txt
Include the content in your LLM prompt for accurate API understanding.
Context File Contents​
Each context file includes:
- Critical Information - Amount format (minor units), timestamp format (Unix epoch), status types
- Authentication - OAuth2 client credentials flow
- API Endpoints - Complete request/response examples
- Webhooks - Event types, signature verification, retry policy
- Status Reference - Order, Payment, and Payment Link statuses
- Error Handling - HTTP codes and error formats
- Code Examples - PHP SDK and direct API usage
- Documentation URLs - Links to detailed documentation pages
Why Use Context Files?​
Benefits for AI Assistants​
- Accurate code generation - AI understands exact request/response formats
- Correct amount handling - Uses minor units (cents), not decimals
- Proper status checks - Knows to check
paidnotcompleted - Valid authentication - Generates correct OAuth2 flow
- Working webhooks - Proper signature verification code
Common AI Mistakes Without Context​
| Without Context | With Context |
|---|---|
"amount": "25.00" | "amount": "2500" |
status === 'completed' | status === 'paid' |
| ISO 8601 timestamps | Unix epoch timestamps |
| Basic auth | OAuth2 client credentials |
Keeping Context Updated​
The context files are automatically updated when documentation changes. Always reference the latest version from the documentation site rather than cached copies.
Related Documentation​
- Payment Orders - Create and manage orders
- Webhooks - Handle payment notifications
- Payment Statuses - Complete status reference
- Error Codes - Error handling reference