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,
vendorBasedBookkeeping
is set toTrue
in thePOST Create a new export job
endpoint.
You can tag vendors in an export item when the expense belongs to any of the following types:
card_purchase
fee
chargeback
refund
cashback
invoice
invoice_payment
overdraft
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. IfvendorBasedBookkeeping
is enabled, theGET Get Export Items
endpoint 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
code
is not matching) in the ERP/accounting system, the integration must send a request to thePUT Update Export Job Items
endpoint withfailureReason
specifying that vendor record could not be identified andfailureReasonType
set toaccounting_system_validation_failure
.- In the Export API Version 2, you might find the
supplier
object, instead ofvendor
. To bookkeep the export item using thesupplier
object, ensure that any of the following information is present to find the appropriate vendor in the ERP/accounting system:
code
matching the supplier ID as recorded in the accounting systemaccount
matching the supplier account number as recorded in the accounting systemtaxIdentifier
matching the tax identifier of the supplier as recorded in the accounting system