{"version":1,"resources":["http://stablemerch.dev/api/shirt","http://stablemerch.dev/api/mug","http://stablemerch.dev/api/heavyweight-shirt"],"mppResources":["http://stablemerch.dev/api/shirt","http://stablemerch.dev/api/mug","http://stablemerch.dev/api/heavyweight-shirt"],"description":"Custom merch API protected by the x402 payment protocol. Create shirts and mugs from your AI prompts or yourown images. Supports optional referral commissions added on top of the base price.","instructions":"\n# StableMerch API\n\nCreate custom t-shirts and mugs from your own images.\n\n## Endpoints\n\n### POST /api/shirt\nCreate a shirt from your own image. Requires:\n- imageUrl: HTTP URL or base64 data URL\n- size: S, M, L, XL, 2XL, 3XL, 4XL, 5XL\n- color: Black or White\n- address_to: Shipping address object (see below)\n\nPrice: $20.00 per shirt\n\n### POST /api/heavyweight-shirt\nCreate a heavyweight shirt (Shaka Wear SHMHSS, 7.5oz USA cotton, oversized/relaxed fit) from your own image. Requires:\n- imageUrl: HTTP URL or base64 data URL\n- size: S, M, L, XL, 2XL, 3XL, 4XL, 5XL, 7XL\n- color: Black, Brown, Burgundy, Cardinal, Charcoal Grey, Dark Grey, Gold, Heather Grey, Hunter Green, Kelly Green, Khaki, Navy, Olive, Orange, Powder Blue, Powder Pink, Purple, Red, Royal, Sky Blue, Turquoise, or White\n- placement: front or back (default: front)\n- address_to: Shipping address object (see below)\n\nNote: Not all size/color combinations are available. Cardinal, Powder Blue, and Powder Pink go up to 4XL. Gold, Khaki, Olive, Orange, and Sky Blue go up to 5XL. All other colors go up to 7XL.\n\nPrice: $25.00 per heavyweight shirt\n\n### POST /api/mug\nCreate a mug from your own image. Requires:\n- imageUrl: HTTP URL or base64 data URL\n- address_to: Shipping address object (see below)\n\nPrice: $15.00 per mug\n\n## Commissions\n\nAll endpoints accept optional commission fields. When provided, the commission is added on top of the base price — the buyer pays more, and the commission amount is forwarded to the specified address after the order completes.\n\n- commission_address: EVM wallet address to receive the commission\n- commission_rate: Decimal between 0 and 1 (e.g. 0.1 = 10%)\n\nExample: A shirt with commission_rate 0.1 costs the buyer $22.00 ($20.00 base + $2.00 commission).\n\nBoth fields must be provided together for commission to apply. If omitted, the buyer pays only the base price.\n\n## address_to Object (all required unless noted)\n- first_name: Recipient's first name\n- last_name: Recipient's last name\n- email: Recipient's email address\n- phone: Phone number for shipping notifications (7-32 chars, optional)\n- country: ISO-3166-1 alpha-2 country code (e.g., \"US\", \"CA\", \"GB\")\n- region: State/province code (e.g., \"NY\", \"CA\", \"ON\")\n- address1: Street address\n- address2: (optional) Apt, suite, unit, etc.\n- city: City name\n- zip: Postal/ZIP code\n"}