Payezydevelopers
Sandbox

API reference / Recipients

Update a recipient

PATCH/v1/orgs/{orgId}/counterparties/{counterpartyId}

Change a recipient's name, email or category. Categories are filters only.

Before you call it

  • Permissioncounterparties: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.
counterpartyIdpath, uuidrequiredA recipient from createCounterparty or listCounterparties.

Request body

FieldWhat it does
namestringNo description in the spec yet.
emailstringNo description in the spec yet.
categoryenumNo description in the spec yet.

One of vendor customer contractor employee other

Response 200

Updated

FieldWhat it does
idstring (uuid)requiredNo description in the spec yet.
namestringrequiredNo description in the spec yet.
kindenumrequiredNo description in the spec yet.

One of individual business self

emailstringrequiredNo description in the spec yet.
categoryenumrequiredNo description in the spec yet.

One of vendor customer contractor employee other

screening_statusenumrequiredNo description in the spec yet.

One of clear review blocked

accountsExternalAccount[]requiredNo description in the spec yet.
accounts[].idstring (uuid)requiredNo description in the spec yet.
accounts[].typeenumrequiredNo description in the spec yet.

One of bank wallet

accounts[].is_defaultbooleanrequiredThe account preselected when paying this recipient
accounts[].labelstringrequiredNo description in the spec yet.
accounts[].bank_namestringNo description in the spec yet.
accounts[].routing_numberstringNo description in the spec yet.
accounts[].account_last4stringNo description in the spec yet.
accounts[].account_typestringNo description in the spec yet.
accounts[].railsstring[]requiredNo description in the spec yet.
accounts[].networkstringNo description in the spec yet.
accounts[].addressstringNo description in the spec yet.
created_atstring (date-time)requiredNo description in the spec yet.

Errors to handle

CodeWhat it means and what to do
invalid_category422category must be one of

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