DRAFT Pleo Vendor.
Run this after How to Detect Draft Vendors, which covers detecting the DRAFT Vendor in Pleo.
Prerequisites
Before you begin:- You have completed How to Detect Draft Vendors and have the
DRAFTVendor’s details and Pleoid - Your integration can call the target Accounting System’s own API to create a vendor record
Scenario
This how-to continues from the How to Detect Draft Vendors scenario: aDRAFT Vendor “Greenfield Logistics” was detected in Pleo with id: c27ed4d6-3d3d-458e-8f3f-735fdf32a3bc.
Steps
1. Create the Vendor in the AS
Using theDRAFT Vendor’s name, country, defaultCurrency, registrationNumber, and taxRegistrationNumber, create the corresponding vendor record in the Accounting System.
Example Pseudo:
Example Result
Handling Edge Cases
AS creation fails: do not call activate. Leave the Vendor asDRAFT in Pleo and retry on the next detection cycle.
Result
The table below recaps the outcome for this Vendor so far.
The vendor now exists in the Accounting System, with an AS-assigned
externalId and, optionally, a code. It remains DRAFT in Pleo until you report these identifiers back via activation.
What Comes Next?
this how-to is part of:
Related Reading
- How to Detect Draft Vendors
- How to Activate a Vendor in Pleo
- Create and Activate Vendors Integration Design
- Platform Capabilities: Vendor Creation