API referenceSections

Move a customer to another reseller or to the provider, inside the new owner's allocation

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/tenants/{tid}/customers/{cid}/transfer

Move a customer to another reseller or to the provider, inside the new owner's allocation (ADR 0087)

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
cidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • to_tenant_id string optional

    Empty for the provider

  • plan_id string required
  • preview boolean optional
Example
{
  "to_tenant_id": "string",
  "plan_id": "string",
  "preview": true
}

Responses

200 The customer after the move, or as it would be

Content type: application/json

object
  • customer object optional
  • from_tenant_id string required
  • to_tenant_id string required
  • exceeded array<object> required
  • applied boolean required
Example
{
  "customer": {},
  "from_tenant_id": "string",
  "to_tenant_id": "string",
  "exceeded": [
    {}
  ],
  "applied": true
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required