A table that displays the list of payable invoices that are available to the entity user with the access token. The component supports filtering and pagination between these payables. The UI for each table row depends on the payable status on that row. For example, payables in the waiting_to_be_paid status have a customizable “Pay” button to pay the payable. To pay a payable via the “Pay” button, use the onPay prop on the PayablesTable component. For more information, see Props.
Use in the PayablesTable component in your application as shown:
Copy
Ask AI
import { PayablesTable } from "@monite/sdk-react";// This component must be rendered within the MoniteProvider wrapperconst PayablesTablePage = () => { return <PayablesTable />;};
The payables.requiredColumns setting defines a list of columns that must always be visible in the UI. Columns listed here cannot be hidden by users. The example below shows all possible values:
You can select additional tabs to be added to the payables table, which will display the results of specific filters. See an example with tabs/filters for unpaid, scheduled, and paid payables:
The required fields must be informed in the payables.summaryCardFilters field . Here is an example: