Payezydevelopers
Sandbox

API reference / Platform customers

Set a customer's external reference

PATCH/v1/platforms/{orgId}/customers/{customerId}

Sets or clears external_ref, your own identifier for the customer. It must be unique among your active customers.

Before you call it

  • Organizationplatform (active)
  • Permissionplatform:customers_manage

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.
customerIdpath, uuidrequiredA customer organization linked to your platform.

Request body

FieldWhat it does
external_refstringrequiredNo description in the spec yet.

Response 204

Updated

No body.

Errors to handle

CodeWhat it means and what to do
external_ref_exists409Another active customer of your platform already has this external_ref.

The response's details.customer_id is the existing customer - use it instead of creating a duplicate. This is what makes retried imports safe.

Every error is a Problem document. Branch on code; quote request_id to support.