> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Accounts payable

> Automate accounts payable workflows for SMEs including OCR-based payable creation, approval flows, and bill payments.

**Accounts payable** refers to the money a company owes to its suppliers or vendors for products or services that have been received but have yet to be paid for by the company.

Some of the document types used in accounts payable are:

* **Payable** - an invoice that the organization receives from its supplier or vendor that lists the products or services the company received and the amount due to the supplier or vendor.
* **Purchase order** - a document sent to a supplier or vendor detailing the products or services the company wishes to purchase, including quantities and agreed-upon prices.
* **Credit notes** - reduces the amount due on a payable.

With Tesouro API, partners can automate the accounts payable processes for SMEs to enable them to:

* automatically create payables by extracting and processing data from invoices via OCR;
* track payables through various statuses such as draft, new, canceled, approval pending, refused, approved, partially paid, and paid;
* implement approval workflows for payables, ensuring compliance and smooth operations.

<Tip>
  The `payable` object contains the `payable_origin` field that indicates how the invoice was created. Its possible values are `upload`, `email`, and `einvoicing`.

  For credit notes, the field is called `origin` and its possible values are `upload` and `einvoicing`.
</Tip>

## Learn more

### Payables

* [Payable lifecycle](/finops/guides/accounts-payable/payables/index)
* [Collect payables](/finops/guides/accounts-payable/payables/collect)
* [Approval policies](/finops/guides/accounts-payable/approvals/index)
* [Payables history](/finops/guides/accounts-payable/payable-history)

### Purchase orders

* [Purchase orders](/finops/guides/accounts-payable/purchase-orders)

### Credit notes

* [Credit notes](/finops/guides/accounts-payable/credit-notes/index)
