Skip to main content
This how-to covers updating a Pleo Vendor’s details to match its corresponding active AS vendor. Run this after How to Fetch and Match Vendors found a matching Pleo Vendor whose details differ from the AS.

Prerequisites

Before you begin:

Scenario

This how-to continues from the How to Fetch and Match Vendors scenario: “Kaffehuset AS” (EXT-004) is active in both systems, but its country and currency differ (Pleo has SE/SEK, the AS has DK/DKK).

Steps

1. Update the Vendor

API Endpoint: PUT /v1/vendors/{id} The “Kaffehuset AS” Vendor’s country and currency are updated from SE/SEK to match the AS values of DK/DKK in this example. Example Pseudo:

Example Response

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 “Kaffehuset” to search.
“Kaffehuset AS” now shows Denmark, confirming the country/currency update was applied.
Vendor dropdown on an expense showing Kaffehuset AS updated to Denmark

Handling Edge Cases

See Handling Edge Cases on How to Create Vendors for partial-failure and unknown-outcome handling, which applies to this write too.

Result


What Comes Next?


this how-to is part of:


FAQs

Which values must a PUT update include for unchanged Vendor fields?

Include the current values for every field, including externalId and state. Only the fields that changed get new values. In the example, state is sent as ACTIVE. See How to Update Vendors.