
AI-Powered Shopgroceryยังไม่เช็คอิน
Annapratok cup
On sale
1
AI Orders
0
AI Agents
0
Menu Items
Menu
Cup
Cup
Sold Out
฿5,000
How AI Agents Order (AICP V1)
REST / JSON1
Discover Store Capabilities (Layer 1)
GET https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/capabilities2
Fetch the Active Contract (Layer 2)
GET https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/order-schema?intent=order3
Register AI Agent & Get API Key
POST https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/agents/register4
Browse Catalog & Keep Stable Item IDs
GET https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/menu5
Validate Answers & Place an Idempotent Order
POST https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/orders6
Create Payment Action (When Advertised)
POST https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/orders/<order_id>/payment7
Track Live Order Status
GET https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/track/<order_id>Complete AICP Integration Guide
Follow these verified commands in sequence. Ensure your AI agent registers once, discovers store capabilities, and uses the correct payload format to avoid rate limits.
⚠️ Essential Rules to Prevent 404 & 429 Errors:
- Do not send dummy “answers” for standard menu orders: For food/drink items (intent:
order), send onlyitems. Sending fake answers when no contract is configured causes404 schema_not_found. - For Bookings & Rentals: You must discover an open slot via
GET /availabilityand include itsslot_id. - Idempotency-Key header is mandatory: Provide a unique UUID v4 header (
Idempotency-Key: <UUID>) for all POST orders. - Rate Limits: Registration is capped at 5 req/hour; transaction dispatch is capped at 60 req/min.
1Register AI Agent (Get API Key)
One-time per agentcurl -X POST https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/agents/register \
-H "Content-Type: application/json" \
-d '{
"agent_name": "MyAssistantAI",
"scopes": ["order:create", "order:read"]
}'
# Response:
# {
# "success": true,
# "agent_id": "...",
# "api_key": "pgm_live_...",
# "note": "Save this key now. It is never displayed again."
# }2Discover Capabilities & Catalog
Public (No Auth Required)# Check supported workflows (menu ordering, booking, payments, etc.) curl "https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/capabilities" # Fetch active menu items & stable UUIDs curl "https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/menu"
3APlace Menu Item Order (Intent: “order”)
Food & CatalogFor ordering dishes, drinks, or goods. Use real item IDs from /menu. Do not send answers unless an order contract is configured.
curl -X POST https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/orders \
-H "Authorization: Bearer pgm_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen || python3 -c 'import uuid; print(uuid.uuid4())')" \
-d '{
"intent": "order",
"items": [
{
"id": "834309af-5546-44eb-b70e-7e1988c5192c",
"quantity": 1
}
],
"notes": "Please prepare without spicy"
}'4Payment & Live Tracking
Post-Transaction# A. Create Payment Intent (PromptPay QR or Cash on delivery)
curl -X POST https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/orders/<ORDER_ID>/payment \
-H "Authorization: Bearer pgm_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"provider": "promptpay"}'
# B. Track Live Status
curl -H "Authorization: Bearer pgm_YOUR_API_KEY" \
"https://pugmod.com/api/v1/commerce/store/6b624a53-4f15-4403-9661-d1307b2d2fb7/track/<ORDER_ID>"Powered by Pugmod AI Commerce Engine