Build with SmartFuelPay

Developer Documentation

Powerful APIs, SDKs, and webhooks to integrate fuel payments into your applications

RESTful
API Design
100ms
Avg Response Time
6
SDKs Available
99.99%
API Uptime

Cards API

Issue, block, top-up, and manage cards and groups

POST /cards/issue
PUT /cards/{id}/balance
POST /cards/{id}/freeze
GET /cards/{id}/transactions

Transactions API

Query transactions, refunds, and settlements

GET /transactions
POST /transactions/refund
GET /settlements
POST /transactions/authorize

Terminal API

Configure terminals, firmware, and routing

GET /terminals
PUT /terminals/{id}/config
POST /terminals/{id}/update
GET /terminals/{id}/health

Webhooks

Real-time events for authorization, top-ups, and alerts

transaction.authorized
card.issued
terminal.offline
fraud.detected

Quick Start

1
Request API Access
Get your sandbox credentials instantly
2
Install SDK
Choose from our 6 official SDKs
3
Make Your First Call
Issue a test card in under 5 minutes
4
Go Live
Deploy to production with confidence
// JavaScript Example
// Issue a new fuel card
const client = new SmartFuelPay({ apiKey: 'sk_live_...' });

const card = await client.cards.issue({
  type: 'physical',
  currency: 'EUR',
  initialBalance: 1000,
  customer: {
    name: 'John Doe',
    email: 'sales@smartfuelpay.com'
  },
  limits: {
    daily: 500,
    transaction: 100
  }
});

console.log('Card issued:', card.id);

Connected Car APIs

Build Connected Car payment experiences that integrate with in‑vehicle systems and mobile apps. Use our APIs and webhooks to authorize transactions, pair vehicles, and receive real‑time events.

Key endpoints
POST /transactions/authorize
POST /vehicles/pair
GET /stations/nearby
GET /cards/{id}/transactions
Webhooks
transaction.authorized
vehicle.paired
terminal.offline
fraud.detected

SDKs & Libraries

JavaScript/TypeScript
@smartfuelpay/sdk
v2.4.0
Python
smartfuelpay
v2.4.0
Java
com.smartfuelpay:sdk
v2.4.0
Go
github.com/smartfuelpay/go-sdk
v2.4.0
PHP
smartfuelpay/php-sdk
v2.4.0
.NET
SmartFuelPay.SDK
v2.4.0

Webhook Events

Receive real-time notifications for important events in your fuel payment system. All webhooks are delivered via HTTPS POST with signature verification.

HMAC signature verification
Automatic retries with exponential backoff
Event replay and debugging tools
// Webhook Handler
// Handle webhook events
app.post('/webhook', async (req, res) => {
  const event = req.body;
  
  switch(event.type) {
    case 'transaction.authorized':
      // Process authorized transaction
      await processTransaction(event.data);
      break;
      
    case 'card.issued':
      // Handle new card issuance
      await sendWelcomeEmail(event.data.customer);
      break;
      
    case 'fraud.detected':
      // Handle fraud detection
      await alertSecurityTeam(event.data);
      break;
  }
  
  res.json({ received: true });
});

Developer Resources

Everything you need to build powerful fuel payment integrations

API Reference
Complete API documentation
Code Examples
Sample implementations
Sandbox
Test environment
GitHub
Open source tools

Start Building Today

Join developers worldwide who are building the future of fuel payments