Data export
Learn how to bulk export your Accounts Payable and Accounts Receivable data from Monite, so you can use this data in an external accounting system.
Overview
Monite allows entities to export all their accounts payable, so they can integrate this data into their accounting systems.
The exported payables data are structured in CSV format and must be selected by specific statuses, and start and end dates.
Compatible accounting systems
Currently, Monite supports accounting data export to Xero. More export formats will be added in the future.
Xero
The Xero export contains just the essential data for Xero to execute the import. Monite does not validate the exported data. To check Xero’s requirements and validations, check the Xero documentation.
Considerations
-
Counterpart-related data is exported only for payables that have been submitted for approval as the information about the counterparts is inserted into the payables only at this status.
-
The prices in the exported data are tax-exclusive, that is, do not include taxes.
Export the accounting data
To export the accounting data of a specific entity, call POST /data_exports
and specify the desired format (csv_xero
), the object type name (in this example - payable
) and statuses, and the date range:
The successful response contains the data export ID:
To get the link to download the exported files, call GET /data_exports/{data_export_id}
, passing the previously obtained data export ID in the URL:
The successful response contains information about the data export and the source_url
field, which contains the URL to download the exported file:
The file is exported in the ZIP format which includes one or more CSV files, depending on the amount of entries. Each file can contain up to 100 payables with multiple line items per payable.
Bigger exports may take longer to be processed. Meanwhile, their status are presented as pending
until the export is completed and the file is available for download.
Field mapping
This is how the fields between Monite and Xero are associated:
All the fields are obtained from the payables
object, except tax_type
and account_code
, which are obtained from the /extra_data
settings.
Set default values
You can configure default values for specific fields in the exported data to streamline the CSV processing and reduce manual work.
Currently, it is possible to set default values for the account code (default_account_code
) and tax rate code (default_tax_rate_code
) fields, which are mapped to *AccountCode
and *TaxType
respectively on Xero.
Additionally, the counterpart_id
obtained from exported payables is used to search for entries corresponding to this counterpart_id
in the Monite system. If a corresponding register is found, i.e. this counterpart already exists in the Monite system, the exported data is enriched with the counterpart information.
To create a default value for a specific field, send a POST
request to the /data_exports/extra_data
endpoint specifying the :
The successful response contains information about the default value:
List all default values
To get information about all default values, call GET /data_exports/extra_data
.
Retrieve a default value
To get information about a specific default value, call GET /data_exports/extra_data/{extra_data_id}
endpoint.
Update a default value
To edit an existing default value, call PATCH /data_exports/extra_data/{extra_data_id}
endpoint.
Delete a default value
To delete an existing default value, call DELETE /data_exports/extra_data/{extra_data_id}
endpoint.
Check all data exports
To check all the requested data exports, call GET /data_exports
endpoint:
The successful response contains a list of all data exports requested: