cURL
curl --request GET \ --url https://api.centralcart.com.br/v1/app/affiliate/{affiliate-id}/metrics
{ "affiliate": { "id": 1, "name": "Afiliado Exemplo", "ref_code": "AFFILIATE001", "balance": 150.00 }, "commissions": { "total_count": 25, "total_value": 500.00, "graph": [ { "date": "2024-01-01T00:00:00.000Z", "count": 5, "total": 100.00 }, { "date": "2024-01-02T00:00:00.000Z", "count": 3, "total": 60.00 } ] }, "withdraws": { "total_count": 2, "total_value": 200.00, "graph": [ { "date": "2024-01-01T00:00:00.000Z", "count": 1, "total": 100.00 }, { "date": "2024-01-02T00:00:00.000Z", "count": 1, "total": 100.00 } ] }, "store_revenue": { "total_count": 50, "total_value": 5000.00, "graph": [ { "date": "2024-01-01T00:00:00.000Z", "count": 10, "total": 1000.00 }, { "date": "2024-01-02T00:00:00.000Z", "count": 8, "total": 800.00 } ] } }
Retorna as métricas de um afiliado em um período específico.
YYYY-MM-DD
total_count
total_value
graph