Skip to main content

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​

FileDescriptionURL
Paysera CheckoutComplete API reference for Paysera Checkout/llms-checkout.txt
Checkout ClassicLegacy Checkout API reference/llms-checkout-classic.txt
Full DocumentationAll Paysera APIs combined/llms-full.txt
IndexOverview of all available context files/llms.txt

How to Use​

With ChatGPT / Claude​

  1. Download the context file or copy its URL
  2. Paste the content into your conversation or reference the URL
  3. 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​

  1. Accurate code generation - AI understands exact request/response formats
  2. Correct amount handling - Uses minor units (cents), not decimals
  3. Proper status checks - Knows to check paid not completed
  4. Valid authentication - Generates correct OAuth2 flow
  5. Working webhooks - Proper signature verification code

Common AI Mistakes Without Context​

Without ContextWith Context
"amount": "25.00""amount": "2500"
status === 'completed'status === 'paid'
ISO 8601 timestampsUnix epoch timestamps
Basic authOAuth2 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.