You can add vendors in an export item, only when:
- The specific company has synchronised the list of vendors existing in their ERP/accounting system with their Pleo account. For more information, see Vendors API.
- The integration supports the capability of vendor tagging. If yes,
vendorBasedBookkeepingis set toTruein thePOST Create a new export jobendpoint.
Vendor Tagging Enabled for Specific Expenses
You can tag vendors in an export item, when the expense belongs to any of the following types:
card_purchasefeechargebackrefundcashbackinvoiceinvoice_paymentoverdraft
Vendor Tagging | Mandatory or Optional
Based on what the bookkeeping method is, tagging vendors in an export item is either mandatory or optional:
- If the bookkeeping method is
accounts_payable, tagging vendors in an export item is mandatory — this helps to bookkeep the expense in the correct vendor account as maintained in the external ERP/accounting system. IfvendorBasedBookkeepingis enabled, theGET Get Export Itemsendpoint includes vendor and bookkeeping data points. - If the bookkeeping method is
journal, tagging vendors in an export item is optional.
Important:
- If there is any problem in bookkeeping the export item to the correct vendor account (like, when the vendor
codeis not matching) in the ERP/accounting system, the integration must send a request to thePUT Update Export Job Itemsendpoint withfailureReasonspecifying that vendor record could not be identified andfailureReasonTypeset toaccounting_system_validation_failure.- In the Export API Version 2, you might find the
supplierobject, instead ofvendor. To bookkeep the export item using thesupplierobject, ensure that any of the following information is present to find the appropriate vendor in the ERP/accounting system:
codematching the supplier ID as recorded in the accounting systemaccountmatching the supplier account number as recorded in the accounting systemtaxIdentifiermatching the tax identifier of the supplier as recorded in the accounting system