Skip to main content
GET
/
v1
/
app
/
affiliate
/
{affiliate-id}
Get Affiliate
curl --request GET \
  --url https://api.centralcart.com.br/v1/app/affiliate/{affiliate-id} \
  --header 'Authorization: Bearer <token>'
{
  "id": 1,
  "store_id": 1,
  "name": "Afiliado Exemplo",
  "ref_code": "AFFILIATE001",
  "percent_commission": 10,
  "balance": 150.50,
  "min_withdraw": 50.00,
  "email": "afiliado@example.com",
  "self_affiliated": false,
  "withdraw_settings": null,
  "dash_secret": "REDACTED",
  "created_at": "2024-01-16T15:12:36.000-03:00",
  "updated_at": "2024-01-16T15:12:36.000-03:00",
  "statistics": {
    "revenue": 1500.00,
    "sales": 15
  }
}
affiliate-id
string
required
ID do afiliado
statistics
string
Se true, inclui estatísticas de receita e vendas do afiliado
{
  "id": 1,
  "store_id": 1,
  "name": "Afiliado Exemplo",
  "ref_code": "AFFILIATE001",
  "percent_commission": 10,
  "balance": 150.50,
  "min_withdraw": 50.00,
  "email": "afiliado@example.com",
  "self_affiliated": false,
  "withdraw_settings": null,
  "dash_secret": "REDACTED",
  "created_at": "2024-01-16T15:12:36.000-03:00",
  "updated_at": "2024-01-16T15:12:36.000-03:00",
  "statistics": {
    "revenue": 1500.00,
    "sales": 15
  }
}