Getting Connected to the P4 Books API

P4 Books Cloud Accounting - API Integration

The P4 Books API allows you to integrate your existing systems with P4 Books. You can use the API to create and retrieve transactions, manage master data, and automate your accounting workflows.

Authentication

To connect to the P4 Books API, you will need an API key. To obtain your API key:

  1. Log in to your P4 Books account.

  2. Go to Settings > API.

  3. Click Generate API Key.

  4. Copy and store the key securely — it will only be shown once.

Include your API key in the header of every request:

Authorization: Bearer YOUR_API_KEY

Base URL

All API requests are made to:

https://tenantname.p4books.com/api/v1

Replace tenantname with your organization's tenant name.

Available Endpoints

Master Data

Method
Endpoint
Description

GET

/products

List all products

GET

/customers

List all customers

GET

/vendors

List all vendors

POST

/products

Create a product

POST

/customers

Create a customer

POST

/vendors

Create a vendor

Transactions

Method
Endpoint
Description

GET

/invoices

List all invoices

GET

/purchase-orders

List all purchase orders

GET

/sales-orders

List all sales orders

POST

/invoices

Create an invoice

POST

/purchase-orders

Create a purchase order

Example Request

Example Response

Rate Limits

API requests are limited to 100 requests per minute per API key. If you exceed this limit, you will receive a 429 Too Many Requests response.

circle-info

For assistance with the API or to request access to additional endpoints, contact P4 Books support or your local distributor.

Last updated

Was this helpful?