Finalizes and records delegated permission usage after service delivery.
cURL
curl --request POST \ --url https://api.sandbox.nevermined.dev/api/v1/x402/settle \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "accessToken": "x402_eyJhbGciOiJIUzI1NiIs...", "agentId": "did:nv:abc123...", "creditsUsed": 5 } '
{ "success": true, "permissionHash": "<string>", "creditsSettled": 123, "remainingCredits": 123, "txHash": "<string>" }
Your Nevermined API Key (starts with 'nvm:'). Get one at nevermined.app under Settings > API Keys.
Settlement request
Settlement complete