Payezydevelopers
Sandbox

API reference / Platform customers

Restrict or reinstate a customer

POST/v1/platforms/{orgId}/customers/{customerId}/status

Restricts (pauses outgoing payments) or reinstates a customer. Requires two-factor authentication.

When to use it

Pause a customer's outgoing payments (restrict) and resume them (reinstate). A reason is required and shown in their activity log.

Before you call it

  • Organizationplatform (active)
  • Permissionplatform:customers_manage
  • Second factorRequired for browser sessions. An API key with the scope replaces it.

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
actionenumrequiredrestrict pauses the customer's outgoing payments

One of restrict reinstate

reasonstringNo description in the spec yet.

Response 200

The customer's organization

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

One of individual business platform

namestringrequiredNo description in the spec yet.
statusenumrequiredNo description in the spec yet.

One of kyc_required kyc_pending active restricted suspended closed

status_reasonstringrequiredNo description in the spec yet.
daily_payout_limitstringrequiredUSD
single_payout_limitstringrequiredUSD
created_atstring (date-time)requiredNo description in the spec yet.

Events it causes

Errors to handle

CodeWhat it means and what to do
reason_required422Give a reason of at least 10 characters.
not_restricted409this customer is not restricted
not_active409The organization or customer is not active.

Finish verification, or reinstate the customer.

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