---
title: "Trigger a Procountor sync"
method: POST
path: "/procountor-connections/{connection_id}/sync"
tags: ["Connections"]
---

# Trigger a Procountor sync

`POST /procountor-connections/{connection_id}/sync`

## Request

- Base URL: `https://api.app.lastaccountingcompany.com/portal`
- URL: `https://api.app.lastaccountingcompany.com/portal/procountor-connections/{connection_id}/sync`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api/docs/procountor-connections/:connection_id/sync/post.ts> (a function with typed inputs; its response is checked against the schema)

Pulls data from the Procountor connection, optionally constrained to a date window or a full backfill. Requires a write-scoped key.

## Path parameters

- `connection_id` string, required

## Request body

- ConnectionSyncInput: Options for a provider sync.
  - `customer_id` string: Target company. Optional for API keys.
  - `date_from` string: Start of the sync window, `YYYY-MM-DD`.
  - `date_to` string: End of the sync window, `YYYY-MM-DD`.
  - `backfill` boolean: Pull the full available history.

## Response `200`

Sync result.

- ConnectionSyncResult: Result of a provider sync run.
  - `customer_id` string
  - `result` object

## Other responses

- `401`: Missing or invalid bearer token.
- `403`: Insufficient scope or role — e.g. a read-scoped key on a mutating method, or an API key on an admin/approver-only endpoint.

---

[API](https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api.md) - [All operations](https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api/revisions/52e277b4f031?raw)
