Skip to main content
This how-to covers archiving a Pleo Vendor whose corresponding AS vendor is no longer active, or no longer exists. Run this after How to Fetch and Match Vendors found a Pleo Vendor with no matching active AS vendor.

Prerequisites

Before you begin:

Scenario

This how-to continues from the How to Fetch and Match Vendors scenario: “Old Print Shop” (EXT-005) is active in Pleo, but no longer active in the AS.

Steps

1. Archive the Vendor

API Endpoint: POST /v1/vendors/{id}:archive Do not delete Vendors. Archiving is non-destructive and reversible. Example Pseudo:
The “Old Print Shop” Vendor is archived in this example.
This endpoint returns 204 No Content on success. The Vendor’s state is now ARCHIVED.

What it looks like in Pleo Web App

  1. Select Accounting from the main left-hand navigation.
  2. Select Export from the sub-menu.
  3. Click on a row to open the details panel for that expense.
  4. Select the Vendor drop-down menu and type “Old Print” to search.
“Old Print Shop” no longer appears in the Vendor field on an expense, confirming it was archived and excluded from active search results.
Vendor dropdown on an expense no longer showing Old Print Shop

Handling Edge Cases

Vendor is already ARCHIVED: treat the call as a no-op rather than an error. This can happen if a previous sync run partially completed. See Handling Edge Cases on How to Create Vendors for partial-failure and unknown-outcome handling, which applies here too.

Result


What Comes Next?


this how-to is part of: