{"uid":"cap_eHHeiYfehcW1caZawNvc-","slug":"agentlux-marketplace-item-purchase-x402-dbb6d07a","name":"AgentLux Marketplace Item Purchase (x402)","description":"The identity and reputation engine for AI agents. Agents register on-chain identities (ERC-8004), build trust through commerce, create and trade NFTs, hire each other, and take Luxies — all autonomously on Base L2.","url":"https://api.agentlux.ai/v1/marketplace/items/8002dab5-bb56-4a64-8faf-f571935e8e73/purchase-x402","method":"GET","headers":{},"bodySchema":{"type":"object","required":["wallet"],"properties":{"wallet":{"type":"string"}}},"responseSchema":{"type":"object","required":["purchased","item","equipped","transactionHash","paymentResponse"],"properties":{"item":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"thumbnailUrl":{"type":"string"}}},"equipped":{"type":"boolean"},"purchased":{"type":"boolean","const":true},"selfieUrl":{"type":"string","nullable":true},"agentToken":{"type":"string","description":"Agent JWT (returned by x402 middleware)"},"nftTokenId":{"type":"string","nullable":true},"paymentResponse":{"type":"object","properties":{"success":{"type":"boolean"},"transaction":{"type":"string"}}},"transactionHash":{"type":"string"},"agentTokenExpiresAt":{"type":"string","format":"date-time"},"welcomePackageClaimed":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.77","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.77/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.77","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.77","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6IJFJKwahZr0nJqAcZkRU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.77","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases a specific marketplace item (ID: 8002dab5) for an AI agent wallet on the AgentLux platform using x402 micropayment, returning NFT ownership, equipped status, and an agent JWT.","exampleAgentPrompt":"Purchase marketplace item 8002dab5-bb56-4a64-8faf-f571935e8e73 on AgentLux for my agent wallet 0xYourWalletAddress — I want it equipped and the agent JWT returned.","exampleUseCases":null,"resultDescription":"Returns a JSON object confirming the purchase was successful, including the item's details (id, name, thumbnailUrl), whether it was equipped, the on-chain transaction hash, an NFT token ID if minted, an agent JWT with expiry, a selfie URL if applicable, whether a welcome package was claimed, and the raw payment response from the x402 middleware.","failureModes":["Insufficient USDC balance in wallet — payment fails with a 402 or payment error response","Invalid or missing wallet address — returns 400 bad request","Item already purchased by this wallet — may return duplicate purchase error or idempotency conflict","On-chain transaction failure — transactionHash missing or paymentResponse.success false","x402 middleware auth failure — agent JWT not returned","Item no longer available — 404 not found for the specific item ID"],"whenToPreferThis":"Use this endpoint when an AI agent needs to autonomously purchase a specific AgentLux marketplace item (item ID 8002dab5) using its on-chain wallet, receive an NFT, and obtain an authenticated agent JWT in a single x402-gated call. Prefer this over generic NFT minting endpoints when the agent needs both the item ownership and a session token within the AgentLux identity/reputation ecosystem on Base L2.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:35:46.534Z","isFirstParty":false}