# Accounts payable automation

Create an approved supplier bill, record its payment, and reconcile the outstanding balance.

For teams building bill pay, procurement, and AP approval products.

[API endpoints](https://developers.apideck.com/apis/accounting/reference?useCase=accounts-payable) · [Build this workflow](https://developers.apideck.com/guides/accounts-payable-automation)

## What you can build

Push approved bills into your customer’s ledger and record payments against the right supplier.

Workflow: Approve in your product → Sync to the ledger → Reconcile the payment

## Where your product takes over

Creating a bill payment records a payment in the ledger; your payment provider owns money movement. Approval policies remain in your product.

## From connection to a working integration

### 1. Connect the right company

Use a tenant-scoped consumer and Vault connection. Confirm the supplier, company, and permitted write operations before importing approved bills.

[Explore this step](https://developers.apideck.com/guides/vault)

### 2. Map and create the bill

Resolve supplier IDs, ledger accounts, tax rates, and tracking dimensions. Persist the returned bill ID alongside your approval record.

[Explore this step](https://developers.apideck.com/guides/accounts-payable-automation)

### 3. Record and verify payment

After your payment provider confirms settlement, record the supported bill payment and read back its allocation. Reconcile ambiguous responses before retrying.

[Explore this step](https://developers.apideck.com/apis/accounting/reference?useCase=accounts-payable)

## The API behind the workflow

Support, fields, and permissions vary by connector. Verify operation coverage and setup before implementation.

- [Suppliers](https://developers.apideck.com/apis/accounting/reference/suppliers?useCase=accounts-payable)
- [Bills](https://developers.apideck.com/apis/accounting/reference/bills?useCase=accounts-payable)
- [Bill payments](https://developers.apideck.com/apis/accounting/reference/bill-payments?useCase=accounts-payable)

[Select a connector and plan implementation](https://developers.apideck.com/integration-plan?useCase=accounts-payable)

## Know when it works

- The bill appears in the intended company with the expected supplier, currency, tax, and totals.
- A retry of the same approval does not create a duplicate bill.
- The payment allocation reconciles with the bill and your payment provider’s settlement record.

## Start building

- [Implementation guide](https://developers.apideck.com/guides/accounts-payable-automation)
- [API endpoints](https://developers.apideck.com/apis/accounting/reference?useCase=accounts-payable)
- [Workflow context for your agent](https://developers.apideck.com/api/context/accounting/accounts-payable.md)
- [Explore the demo](https://procurement.apideck.dev/)

The demo illustrates a product flow. Its data and connection setup depend on the demo; verify your target connector before implementation.
