Overview This API endpoint allows you to update stock in the Pabau CRM system by making a simple POST request.
Endpoint
POST https://crm.pabau.com/OAuth2/financials/stock_api.php
Parameters
Below are a list of the attributes you can currently pass into Pabau.
Our API Endpoint expects these parameters:
-
api_key(string)
-
company ID
- location ID
-
product ID
- quantity
- barcode
- SKU
Example
The search for products and consequent quantity movements (add or decrease) will follow the priority of the fields:
1. Barcode
2. SKU
3. Product ID
If barcode is correct, then product is located and movement is done. If barcode is incorrect, then false message and no stock movement. Next in line if barcode is missing is the SKU field, and then if SKU is missing is Product ID. If none of these fields are populated, then false message is displayed and no movement will occur.
If no data is entered in the location_id field, then it will move stock in/out to (from) the No Location, i.e. Unknown Location field, because it doesn’t have location ID.
0 quantity if entered in the field won’t produce any movement.