Manage payables
Learn how to manage your payables.
Change payable status
You can manually change the status of the payables and move them through the lifecycle until their payment. See Manual transition for more information.
Alternatively, we recommend that you implement approval policies to manage the payables transitions.
/*
Get payables analytics
You can obtain aggregated statistics for the total number and sum total amount of all existing payables, along with the breakdown per payable status. To do this, send a GET
request to the /payables/analytics
endpoint.
The results can be filtered by a specific time period, counterpart, or other search filters. For the full list of available sort and filter parameters, see the GET /payables/analytics
endpoint.
For example, to get statistics about all payables in the approve_in_progress
and waiting_to_be_paid
statuses, call GET /payables/analytics?status__in=approve_in_progress&status__in=waiting_to_be_paid
:
The successful response contains the total number and sum total amount of all existing payables:
Some other examples of statistics:
GET /payables/analytics?created_at__gte=2023-10-01T14%3A48%3A00Z&created_at__lte=2023-10-31T14%3A48%3A00Z
- Get statistics about all payables for a specific period.GET /payables/analytics?counterpart_name=Acme%20Inc.
- Get statistics about all payables for a specific counterpart. */
List all payables
It is possible to view all the payables in the Monite space. To allow the right level of access to the authorized users, Monite allows certain entity users to view them but not change uploads.
To list all payables, call GET /payables
. You can sort and filter the results by the amount, status, and other fields. For the full list of available sort and filter parameters, see the GET /payables
endpoint.
Some examples:
GET /payables?search_text=Acme%20Inc.
- applies theicontains
condition to search for the text “Acme Inc.” in thedocument_id
andcounterpart_name
fields in the payables.GET /payables?counterpart_name=Acme%20Inc.
- get all payables issued to Acme Inc.GET /payables?amount__gte=15000
- get all payables where the total amount is 150$ or more.GET /payables?status__in=draft&status__in=new
- get alldraft
andnew
payables.GET /payables?created_at__gte=2022-01-01T00%3A00%3A00
- get all payables created on or after January 1, 2022.GET /payables?&ocr_status=error
- get all payables that have failed to be recognized by the OCR.GET /payables?tag_ids=df715ea3-e8a9-44d0-845c-2beceeb5589e
- get all payables containing a specific tag.
Sample request to fetch 100 payables:
The successful response returns a paged series of all payables that the entity has access to. For example:
The prev_pagination_token
and next_pagination_token
fields in the response are pagination tokens.
Retrieve a payable
Once a payable is uploaded, the entity and entity users can review the information extracted from the payable by the OCR system.
To retrieve a payable, call GET /payables/{payable_id}
:
The successful response contains the payable attributes:
Update a payable
Payables in the draft
and new
statuses can be updated, for example, to provide additional details or fix the information extracted by OCR. To update a payable, send a PATCH
request to the /payables/{payable_id}
endpoint with the request body containing the new field values. For example, to update the description
field:
Delete a payable
Payables in any status can be deleted by calling the DELETE /payables/{payable_id}
endpoint:
This action is irreversible, and once deleted, payables can no longer be accessed.