# PestPac API Documentation

This is the complete API documentation for connecting to the PestPac API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **PestPac connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/pestpac/actions/{actionSlug}/run
```

## PestPac actions

- GET `company-setup` CompanySetup
- POST `create-contact` Create Contact
- POST `create-document` Create Document
- POST `create-location` Create Location
- POST `create-payment` Create Payment
- POST `get-access-token` Get Access Token
- GET `get-activity-log` Get Activity Log
- GET `get-bill` Get Bill
- GET `get-documents-by-location-id` Get Documents by Location ID
- GET `get-invoices` Get Invoices
- GET `get-locations` Get Locations
- GET `get-payment-history-by-bill-to-id` Get Payment History By BillToId
- GET `get-payments` Get Payments
- GET `get-service-order-attributes` Get Service Order Attributes
- GET `get-orders` Get Service Orders
- GET `get-service-orders-by-id` Get Service Orders by id
- GET `get-service-setups` Get Service Setups
- GET `get-services` Get Services
- GET `get-test` Get Test
- GET `web-hooks` Get Webhooks
- GET `leads` Leads
- GET `list-contacts` List Contacts
- GET `list-contacts-by-location-id` List Contacts by Location Id
- GET `list-employees` List Employees
- GET `list-invoices-by-id` List Invoices by ID
- GET `list-location-i-ds` List Location IDs
- GET `list-schedules` List Schedules
- GET `list-service-orders` List Service Orders
- GET `list-service-orders-by-location-id` List Service Orders by Location ID
- GET `list-service-setups-by-location-id` List Service Setups by Location ID
- GET `list-unpaid-invoices-by-location-id` List Unpaid Invoices by Location Id
- GET `lookups` Lookups
- PUT `update-contact` Update Contact
- PUT `update-document` Update Document
- PUT `update-location` Update Location
- PUT `update-webhook` Update Webhook
- PUT `upload-document` Upload Document
- GET `user-def-fields` UserDefFields
