PestPro Smart CRM Product Log API
Chemical/product usage logging for regulatory compliance
Chemical/product usage logging for regulatory compliance
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/pestprocrm-com:pestprocrm-com-product-log-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PestPro Smart CRM Product Log API
version: 1.0.0
description: 'PestPro Smart CRM REST API for pest control business management.
## Authentication
All API endpoints require authentication using either:
1. **Bearer Token** (Firebase Auth): Include the Firebase ID token in the Authorization header
```
Authorization: Bearer
```
2. **API Key**: Include your API key in the X-API-Key header
```
X-API-Key: pk_live_xxxxx
```
## Rate Limiting
API requests are rate limited to 100 requests per minute per user.
## Response Format
All responses follow a consistent format:
```json
{
"data": { ... },
"meta": {
"pagination": { "page": 1, "limit": 25, "total": 100, "totalPages": 4 },
"requestId": "req_abc123",
"timestamp": "2024-01-15T10:30:00Z"
},
"errors": null
}
```
## Pagination
List endpoints support pagination via query parameters:
- `page`: Page number (default: 1)
- `limit`: Items per page (default: 25, max: 100)
## Filtering & Sorting
- `fields`: Comma-separated list of fields to return
- `sort`: Field to sort by
- `order`: Sort order (asc or desc)
- `q` or `search`: Text search query'
contact:
name: PestPro Smart CRM Support
email: support@pestprocrm.com
license:
name: Proprietary
url: https://www.pestprocrm.com/terms
servers:
- url: /api/v1
description: API v1
security:
- bearerAuth: []
- apiKey: []
tags:
- name: Product Log
description: Chemical/product usage logging for regulatory compliance
paths:
/product-log/{id}:
get:
summary: Get product log entry
description: Returns a single product usage log entry by ID
tags:
- Product Log
security:
- bearerAuth: []
- apiKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Product log ID
- $ref: '#/components/parameters/fieldsParam'
responses:
'200':
description: Product log details
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/ProductLog'
meta:
$ref: '#/components/schemas/Meta'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
operationId: getProductLogById
x-operation-id-source: derived
put:
summary: Update product log entry
description: Updates an existing product usage log entry. Only provided fields are updated.
tags:
- Product Log
security:
- bearerAuth: []
- apiKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ProductLogCreate'
responses:
'200':
description: Product log updated
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/ProductLog'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
operationId: putProductLogById
x-operation-id-source: derived
delete:
summary: Soft-delete product log entry
description: Soft-deletes (retains) a product usage log entry. Compliance records are never hard-deleted; the document is kept with deletedAt/deletedBy set and an appended audit-trail entry.
tags:
- Product Log
security:
- bearerAuth: []
- apiKey: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Product log deleted
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: string
deleted:
type: boolean
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
operationId: deleteProductLogById
x-operation-id-source: derived
/product-log/import:
post:
summary: Import operator chemical/product usage logs (bring-your-own list)
description: Validated bulk import. Every row is checked against the operator's country jurisdiction profile (registration-number format, unit/method enums, numeric coercion, required fields). Valid rows are stored; invalid rows are rejected with per-row errors and are NOT stored.
tags:
- Product Log
security:
- bearerAuth: []
- apiKey: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
rows:
type: array
description: Array of row objects keyed by CSV headers (client parses the CSV).
items:
type: object
responses:
'200':
description: Import summary
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
operationId: postProductLogImport
x-operation-id-source: derived
/product-log:
get:
summary: List product/chemical usage logs
description: Returns a paginated list of product usage logs for regulatory compliance. Supports filtering by date range, applicator, and pest type.
tags:
- Product Log
security:
- bearerAuth: []
- apiKey: []
parameters:
- $ref: '#/components/parameters/pageParam'
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/sortParam'
- $ref: '#/components/parameters/orderParam'
- $ref: '#/components/parameters/fieldsParam'
- $ref: '#/components/parameters/searchParam'
- $ref: '#/components/parameters/startDateParam'
- $ref: '#/components/parameters/endDateParam'
- name: applicatorId
in: query
schema:
type: string
description: Filter by technician/applicator ID
- name: targetPest
in: query
schema:
type: string
description: Filter by target pest
responses:
'200':
description: List of product usage logs
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ProductLog'
meta:
$ref: '#/components/schemas/Meta'
'401':
$ref: '#/components/responses/Unauthorized'
operationId: getProductLog
x-operation-id-source: derived
post:
summary: Create product usage log
description: Creates a new product/chemical usage log entry for regulatory compliance tracking
tags:
- Product Log
security:
- bearerAuth: []
- apiKey: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ProductLogCreate'
responses:
'201':
description: Product log created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/ProductLog'
meta:
$ref: '#/components/schemas/Meta'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
operationId: postProductLog
x-operation-id-source: derived
components:
parameters:
searchParam:
name: q
in: query
description: Search query
schema:
type: string
limitParam:
name: limit
in: query
description: Items per page
schema:
type: integer
default: 25
minimum: 1
maximum: 100
fieldsParam:
name: fields
in: query
description: Comma-separated list of fields to return
schema:
type: string
endDateParam:
name: endDate
in: query
description: End date filter (YYYY-MM-DD)
schema:
type: string
format: date
sortParam:
name: sort
in: query
description: Field to sort by
schema:
type: string
pageParam:
name: page
in: query
description: Page number
schema:
type: integer
default: 1
minimum: 1
startDateParam:
name: startDate
in: query
description: Start date filter (YYYY-MM-DD)
schema:
type: string
format: date
orderParam:
name: order
in: query
description: Sort order
schema:
type: string
enum:
- asc
- desc
default: desc
schemas:
WeatherConditions:
type: object
properties:
temp:
type: number
description: Temperature in Fahrenheit
humidity:
type: number
description: Humidity percentage
wind:
type: string
description: Wind conditions
Pagination:
type: object
properties:
page:
type: integer
description: Current page number
limit:
type: integer
description: Items per page
total:
type: integer
description: Total items
totalPages:
type: integer
description: Total pages
hasNextPage:
type: boolean
description: Has more pages
hasPrevPage:
type: boolean
description: Has previous page
ProductLog:
type: object
properties:
id:
type: string
description: Unique product log ID
serviceRecordId:
type: string
description: Associated service record ID
productName:
type: string
description: Name of product used
manufacturer:
type: string
description: Product manufacturer
EPA_registration_number:
type: string
description: EPA registration number for compliance
activeIngredient:
type: string
description: Active ingredient(s)
concentration:
type: string
description: Concentration of active ingredient
amountUsed:
type: number
description: Amount of product used
unit:
type: string
description: Unit of measurement (oz, ml, gal, etc.)
applicationMethod:
type: string
description: Method of application
targetPest:
type: string
description: Target pest for treatment
applicatorId:
type: string
description: Technician/applicator ID
applicatorName:
type: string
description: Technician name
licenseNumber:
type: string
description: Applicator license number
date:
type: string
format: date-time
description: Date of application
propertyAddress:
type: string
description: Address where product was applied
propertyId:
type: string
description: Property ID
customerId:
type: string
description: Customer ID
weatherConditions:
$ref: '#/components/schemas/WeatherConditions'
notes:
type: string
description: Additional notes
createdAt:
type: string
format: date-time
description: Created timestamp
updatedAt:
type: string
format: date-time
description: Updated timestamp
required:
- id
- productName
- EPA_registration_number
- amountUsed
- unit
- applicationMethod
- propertyAddress
Error:
type: object
properties:
message:
type: string
description: Error message
details:
type: object
description: Additional error details
required:
- message
Meta:
type: object
properties:
pagination:
$ref: '#/components/schemas/Pagination'
requestId:
type: string
description: Unique request identifier
timestamp:
type: string
format: date-time
description: Response timestamp
ProductLogCreate:
type: object
properties:
serviceRecordId:
type: string
description: Associated service record ID
productName:
type: string
description: Name of product used
manufacturer:
type: string
description: Product manufacturer
EPA_registration_number:
type: string
description: EPA registration number for compliance
activeIngredient:
type: string
description: Active ingredient(s)
concentration:
type: string
description: Concentration of active ingredient
amountUsed:
type: number
description: Amount of product used
unit:
type: string
description: Unit of measurement
applicationMethod:
type: string
description: Method of application
targetPest:
type: string
description: Target pest for treatment
applicatorId:
type: string
description: Technician/applicator ID
applicatorName:
type: string
description: Technician name
licenseNumber:
type: string
description: Applicator license number
date:
type: string
format: date-time
description: Date of application
propertyAddress:
type: string
description: Address where product was applied
propertyId:
type: string
description: Property ID
customerId:
type: string
description: Customer ID
weatherConditions:
$ref: '#/components/schemas/WeatherConditions'
notes:
type: string
description: Additional notes
required:
- productName
- EPA_registration_number
- amountUsed
- unit
- applicationMethod
- propertyAddress
responses:
BadRequest:
description: Invalid request
content:
application/json:
schema:
type: object
properties:
data:
type: 'null'
meta:
$ref: '#/components/schemas/Meta'
errors:
type: array
items:
$ref: '#/components/schemas/Error'
NotFound:
description: Resource not found
content:
application/json:
schema:
type: object
properties:
data:
type: 'null'
meta:
$ref: '#/components/schemas/Meta'
errors:
type: array
items:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Authentication required
content:
application/json:
schema:
type: object
properties:
data:
type: 'null'
meta:
$ref: '#/components/schemas/Meta'
errors:
type: array
items:
$ref: '#/components/schemas/Error'
example:
data: null
meta:
requestId: req_abc123
timestamp: '2024-01-15T10:30:00Z'
errors:
- message: Authentication required
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Firebase ID token
apiKey:
type: apiKey
in: header
name: X-API-Key
description: API key for programmatic access