P4Warehouse REST API

Authentication

All REST API calls and queries require system API key. To obtain the key, navigate to Setup > System > User as shown below.

From the list of available users, click on the 'system' user.

In the user detail page, click the drop down icon to access API key for your tenant.

Endpoints and Requests

API endpoints are organized by resource type. Use different endpoints depending on your API call requirements.

Here are couple example of API endpoints used throughout the P4W system.

'CreateOrUpdate' and 'DeleteBatch' follow this pattern:

https://{tenant_name}.p4warehouse.com/api/{Resource}Api/CreateOrUpdate

https://{tenant_name}.p4warehouse.com/api/{Resource}Api/DeleteBatch

Replace {Resource} with Product, Client, Vendor, PickTicket, PurchaseOrder, etc.

Replace {tenant_name} with your tenant's domain.

OData

For querying database, P4W uses OData protocol.

"https://{tenant_name}.p4warehouse.com/odata/PickTicket?$expand={Resources&Parameters}

Replace {tenant_name} with your tenant's domain.

All requests produce HTTP response status code.

Four Wall Report

FourWallReport endpoint provides a simple way to retrieve full inventory list including individual products quantities.

https://{tenant_name}.p4warehouse.com/api/Report/FourWallReport

Replace {tenant_name} with your tenant's domain.

Execute

'Execute' endpoint is used in conjunction with Audit reports.

Payload

API calls containing payload utilize JSON format across the board.

Last updated