Developer Resources

API Documentation

Complete guide to integrate OctaPay into your application. Simple, powerful, and developer-friendly.

Quick Start

Get started with OctaPay API in minutes. Our RESTful API is designed to be simple, predictable, and easy to use.

Base URL
https://api.octapay.org/v1

Authentication

All API requests require authentication using your API key. Include your key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Security Warning

Keep your API keys secure! Never expose them in client-side code or public repositories. Rotate your keys immediately if you suspect a compromise.

Payments

POST /payments

Create a new payment session for your customer.

Request Body

{
  "amount": 5000,
  "currency": "EUR",
  "description": "Order #12345",
  "customer": {
    "email": "customer@example.com",
    "name": "John Doe"
  },
  "success_url": "https://yoursite.com/success",
  "cancel_url": "https://yoursite.com/cancel"
}

Response

{
  "id": "pay_1234567890",
  "status": "pending",
  "amount": 5000,
  "currency": "EUR",
  "checkout_url": "https://checkout.octapay.org/...",
  "created_at": "2024-01-15T10:30:00Z"
}
GET /payments/{id}

Retrieve details of a specific payment.

Webhooks

Receive real-time notifications about payment events.

Event Type Description
payment.succeeded Payment completed successfully
payment.failed Payment failed or was declined
refund.created Refund has been issued

Official SDKs

Node.js

v2.1.0
npm install octapay
View on GitHub →

Python

v1.4.2
pip install octapay
View on GitHub →

Need Integration Help?

Our developer support team is here to help you integrate successfully. We can review your code and help debug issues.

Contact Developer Support