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
- Organization
platform (active) - Permission
platform:customers_manage - Second factorRequired for browser sessions. An API key with the scope replaces it.
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The 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, uuidrequired | A customer organization linked to your platform. |
Request body
| Field | What it does |
|---|---|
actionenumrequired | restrict pauses the customer's outgoing payments One of |
reasonstring | No description in the spec yet. |
Response 200
The customer's organization
| Field | What it does |
|---|---|
idstring (uuid)required | No description in the spec yet. |
typeenumrequired | No description in the spec yet. One of |
namestringrequired | No description in the spec yet. |
statusenumrequired | No description in the spec yet. One of |
status_reasonstringrequired | No description in the spec yet. |
daily_payout_limitstringrequired | USD |
single_payout_limitstringrequired | USD |
created_atstring (date-time)required | No description in the spec yet. |
Events it causes
Errors to handle
| Code | What it means and what to do |
|---|---|
reason_required422 | Give a reason of at least 10 characters. |
not_restricted409 | this customer is not restricted |
not_active409 | The 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.