Skip to main content
GET
https://api.centralcart.com.br
/
v1
/
app
/
affiliate
List Affiliate
curl --request GET \
  --url https://api.centralcart.com.br/v1/app/affiliate
{
  "meta": {
    "total": 1,
    "per_page": 15,
    "current_page": 1,
    "last_page": 1,
    "first_page": 1,
    "first_page_url": "/?page=1",
    "last_page_url": "/?page=1",
    "next_page_url": null,
    "previous_page_url": null
  },
  "data": [
    {
      "id": 1,
      "store_id": 1,
      "name": "Afiliado Exemplo",
      "ref_code": "AFFILIATE001",
      "percent_commission": 10,
      "balance": 150.50,
      "min_withdraw": 50.00,
      "email": "[email protected]",
      "self_affiliated": false,
      "withdraw_settings": null,
      "revenue": 1500.00,
      "sales": 15,
      "created_at": "2024-01-16T15:12:36.000-03:00",
      "updated_at": "2024-01-16T15:12:36.000-03:00"
    }
  ]
}
page
number
Número da página para paginação
Busca por nome ou email do afiliado
email
string
Filtrar por email específico do afiliado
all
boolean
Se true, retorna todos os afiliados sem paginação
{
  "meta": {
    "total": 1,
    "per_page": 15,
    "current_page": 1,
    "last_page": 1,
    "first_page": 1,
    "first_page_url": "/?page=1",
    "last_page_url": "/?page=1",
    "next_page_url": null,
    "previous_page_url": null
  },
  "data": [
    {
      "id": 1,
      "store_id": 1,
      "name": "Afiliado Exemplo",
      "ref_code": "AFFILIATE001",
      "percent_commission": 10,
      "balance": 150.50,
      "min_withdraw": 50.00,
      "email": "[email protected]",
      "self_affiliated": false,
      "withdraw_settings": null,
      "revenue": 1500.00,
      "sales": 15,
      "created_at": "2024-01-16T15:12:36.000-03:00",
      "updated_at": "2024-01-16T15:12:36.000-03:00"
    }
  ]
}