Skip to main content
POST
https://api-new.paineloffice.click
/
red-club
Criar RedClub
curl --request POST \
  --url https://api-new.paineloffice.click/red-club \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "enabled": true,
  "months": "<string>",
  "notes": "<string>",
  "password": "<string>",
  "sale_value": 123,
  "trial": true,
  "username": "<string>",
  "whatsapp": 123
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": 123,
    "username": "<string>",
    "email": "<string>",
    "phone": "<string>",
    "status": "<string>",
    "profile_type": "<string>",
    "expires_at": "<string>",
    "access_url": "<string>",
    "member_id": "<string>"
  }
}

Endpoint

POST /red-club
Authorization: Bearer <token>

Descrição

Cria um novo usuário RedClub no sistema.

Parâmetros

Authorization
string
required
Bearer token para autenticação
email
string
E-mail do usuário
enabled
boolean
required
Se o usuário está habilitado
months
string
required
Duração em meses
notes
string
Observações
password
string
required
Senha do usuário
sale_value
number
Valor da venda
trial
boolean
required
Para Criação do usuário a opção deve ser false
username
string
required
Nome de usuário RedClub
whatsapp
number
WhatsApp do usuário (apenas números)

Exemplo de Requisição

{
  "email": "[email protected]",
  "enabled": true,
  "months": "0.5",
  "notes": "teste",
  "password": "543564532",
  "sale_value": 0,
  "trial": false,
  "username": "797om721012",
  "whatsapp": 5511111111111
}

Resposta

success
boolean
Indica se a operação foi bem-sucedida
message
string
Mensagem de confirmação
data
object

Exemplo de Resposta

{
  "message": "Usuário RedClub criado com sucesso",
  "data": {
    "id": 4001,
    "username": "usuario_redclub_001",
    "email": "[email protected]",
    "phone": "+5511999999999",
    "status": "active",
    "profile_type": "premium",
    "expires_at": "2024-02-15T10:30:00Z",
    "access_url": "https://redclub.servidor.com/portal",
    "member_id": "RC_4001_PREMIUM"
  }
}