Skip to main content
This how-to covers unarchiving a Pleo Vendor whose matching AS vendor is active again. Run this after How to Fetch and Match Vendors found a matching Pleo Vendor in ARCHIVED state for an active AS vendor.

Prerequisites

Before you begin:

Scenario

This how-to continues from the How to Fetch and Match Vendors scenario: “Nordic Freight” (EXT-002) is active in the AS, but its matching Pleo Vendor is ARCHIVED.

Steps

1. Unarchive the Vendor

API Endpoint: POST /v1/vendors/{id}:activate Example Pseudo:
The “Nordic Freight” Vendor is unarchived in this example.
This endpoint returns 204 No Content on success. The Vendor’s state is now ACTIVE.

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 “Nordic” to search.
“Nordic Freight” is now searchable in the Vendor field on an expense, confirming it is no longer archived.
Vendor dropdown on an expense showing unarchived Nordic Freight


Handling Edge Cases

Vendor is already ACTIVE: 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: