---
title: "Save the Gusto payroll booking setup"
method: PUT
path: "/payroll/setup"
tags: ["Payroll"]
---

# Save the Gusto payroll booking setup

`PUT /payroll/setup`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/payroll/setup`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Saves the setup (a draft until finished) and keeps one bank rule per liability payment so Bank Feeds and Tally suggest the liability. Books nothing.

## Request body

- object
  - `config` object, required: {groups, employees, items} as returned by GET /payroll/setup.
  - `mode` 'review' | 'auto'

## Response `200`

Same shape as GET /payroll/setup.

## Other responses

- `422`: Unknown group or account, or a held amount not aimed at a liability account.

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
