@extends('layouts.app') @section('content')

Reseller API

Create reseller API clients, manage balances and revoke tokens.

@if(session('new_api_token'))
NEW API TOKEN — copy it now:
{{ session('new_api_token') }}
@endif
@csrf

Clients

@foreach($clients as $c)@endforeach
NameUserBalanceTokenStatusAction
{{ $c->name }}{{ $c->user?->email ?? '—' }}${{ number_format($c->balance,2) }}••••{{ $c->token_last4 }}{{ $c->is_active?'Active':'Disabled' }}
@csrf
@csrf
{{ $clients->links() }}

API endpoints

GET  /api/v1/balance
GET  /api/v1/services
POST /api/v1/order
GET  /api/v1/order/{order_id}
GET  /api/v1/orders

Authorization: Bearer YOUR_API_TOKEN
Idempotency-Key: unique-request-id
@endsection