Developer Platform

REST APIs

Build powerful integrations with P4 Books. Complete RESTful APIs, OAuth 2.0 security, real-time webhooks, and SDKs for every major language.

200+
API Endpoints
99.9%
API Uptime
<100ms
Avg Response
// Fetch orders with filters
GET /api/v1/orders
Authorization: Bearer eyJhbGciOiJIUzI1...
Content-Type: application/json

// Query Parameters
?status=pending
&date_from=2024-01-01
&limit=50

// Response: 200 OK
{
  "data": [
    {
      "id": "ord_4R5tY7uI8oP",
      "number": "SO-2024-0847",
      "status": "pending",
      "total": 15750.00,
      "currency": "USD"
    }
  ],
  "meta": { "total": 847 }
}

Comprehensive API Coverage

Full CRUD operations across all P4 Books modules. Build any integration you need.

GET /api/v1/orders

Sales Orders

Create, retrieve, update sales orders. Manage line items, pricing, and fulfillment status.

CRUD Filtering Pagination
POST /api/v1/invoices

Invoices

Generate invoices from orders, manage payments, and retrieve aging reports.

Create Void PDF
GET /api/v1/inventory

Inventory

Query stock levels, track lot/serial numbers, manage warehouse locations.

Real-time Multi-location Lots
PUT /api/v1/customers/{id}

Customers

Manage customer records, contacts, shipping addresses, and credit terms.

CRUD Search Merge
POST /api/v1/journal-entries

General Ledger

Post journal entries, query account balances, generate trial balances.

Post Reverse Reports
DELETE /api/v1/products/{id}

Products

Create products, manage variants, set pricing tiers, and configure BOMs.

CRUD Variants Pricing

Enterprise-Grade API Platform

Built for developers. Designed for scale. Secured for enterprise.

OAuth 2.0 Security

Industry-standard authentication with access tokens, refresh tokens, and granular scopes for secure API access.

Real-Time Webhooks

Subscribe to events and receive instant notifications when orders are placed, payments received, or inventory changes.

Interactive Documentation

Complete API reference with live examples, try-it-now console, and code snippets in multiple languages.

Official SDKs

Native libraries for JavaScript, Python, C#, Java, PHP, and Ruby. Type-safe with full autocomplete support.

Rate Limiting

Generous rate limits with clear headers. Burst allowances for batch operations. Enterprise tiers available.

Sandbox Environment

Full-featured test environment with sample data. Develop and test integrations without affecting production.

Real-Time Webhooks

Don't poll for changes. Get instant notifications when events occur in P4 Books.

  • Instant delivery (<1 second latency)
  • Automatic retries with exponential backoff
  • Signature verification for security
  • Event logs with replay capability
order.created
New sales order received
Active
payment.received
Customer payment posted
Active
inventory.low_stock
Item below reorder point
Active
customer.created
New customer registered
Active

Official SDK Libraries

Native libraries for your favorite language. Type-safe, well-documented, and actively maintained.

JavaScript
Python
C# / .NET
Java
PHP
Ruby

Start Building Today

Get API access and start integrating with P4 Books in minutes.