{"name":"Purch API","version":"1.0.0","description":"x402-enabled e-commerce API for creating crypto-powered product orders","protocol":"x402","documentation":"https://x402.purch.xyz/docs","endpoints":[{"path":"POST /orders/solana","description":"Create an order payable with USDC on Solana","payment":{"required":true,"protocol":"x402","price":"$0.01","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","token":"USDC"},"requestBody":{"email":"string (required)","payerAddress":"string (required, Solana base58 address)","productUrl":"string (required, URL)","physicalAddress":{"name":"string (required)","line1":"string (required)","line2":"string (optional)","city":"string (required)","state":"string (optional)","postalCode":"string (required)","country":"string (required, ISO 3166-1 alpha-2)"},"locale":"string (optional)"},"headers":{"Location":"string (URL to the created order resource)"},"response":{"orderId":"string (UUID)","serializedTransaction":"string (base64 encoded Solana transaction)"}},{"path":"GET /orders/:orderId","description":"Get order status by ID","payment":{"required":false,"protocol":"Authorization header validated against bcrypt hash"},"headers":{"Authorization":"string (required, client secret)"},"response":{"orderId":"string (UUID)","status":"string (pending | processing | completed | failed)","createdAt":"string (ISO 8601 timestamp)"}},{"path":"GET /health","description":"Health check endpoint","payment":{"required":false}},{"path":"GET /docs","description":"OpenAPI specification","payment":{"required":false}}],"links":{"x402Protocol":"https://x402.org","repository":"https://github.com/purch-xyz/purch-api"}}