Skip to main content
This how-to covers creating the vendor record in the Accounting System from a detected 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 DRAFT Vendor’s details and Pleo id
  • 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: a DRAFT Vendor “Greenfield Logistics” was detected in Pleo with id: c27ed4d6-3d3d-458e-8f3f-735fdf32a3bc.

Steps

1. Create the Vendor in the AS

Using the DRAFT 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 as DRAFT 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: