cURL
curl --request PATCH \ --url https://api.revenda.nexus/users/credits/{id} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "credits": 123, "notes": "<string>" } '
{ "id": 136, "username": "revendedor123", "credits": 50, "recharge": "2025-01-16T16:45:00.000Z", "message": "Créditos adicionados com sucesso." }
Este endpoint permite adicionar créditos a um revendedor na plataforma Nexus.
PATCH https://api.revenda.nexus/users/credits/136 Headers: { "Authorization": "Bearer seu_token_aqui", "Content-Type": "application/json" } Payload: { "credits": 10, "notes": "Recarga mensal de créditos" }
Show Mostrar objeto