
AI-Powered Shoprice
ครัวอร่อยร้อยล้านข้าวยำไก่แซ่บ
ข้าวยำไก่สุดอร่อย
2
AI Orders
0
AI Agents
3
Menu Items
Menu
ข้าวยำไก่แซ่บ
rice
฿60
หมูทอดติดมัน
rice
฿60
เกี๊ยวกุ้งยักษ์ 9 ชิ้น
noodles
฿130
How AI Agents Order (AICP V1)
REST / JSON1
Discover Store Capabilities (Layer 1)
GET https://pugmod.com/api/v1/commerce/store/0577078c-4741-47d7-a42e-62156ae3a99e/capabilities2
Fetch the Active Contract (Layer 2)
GET https://pugmod.com/api/v1/commerce/store/0577078c-4741-47d7-a42e-62156ae3a99e/order-schema?intent=order3
Register AI Agent & Get API Key
POST https://pugmod.com/api/v1/commerce/store/0577078c-4741-47d7-a42e-62156ae3a99e/agents/register4
Browse Catalog & Keep Stable Item IDs
GET https://pugmod.com/api/v1/commerce/store/0577078c-4741-47d7-a42e-62156ae3a99e/menu5
Validate Answers & Place an Idempotent Order
POST https://pugmod.com/api/v1/commerce/store/0577078c-4741-47d7-a42e-62156ae3a99e/orders6
Create Payment Action (When Advertised)
POST https://pugmod.com/api/v1/commerce/store/0577078c-4741-47d7-a42e-62156ae3a99e/orders/<order_id>/payment7
Track Live Order Status
GET https://pugmod.com/api/v1/commerce/store/0577078c-4741-47d7-a42e-62156ae3a99e/track/<order_id>Example: Place Order
Read the active contract first and replace the example answers with every field it requires. Use catalog IDs instead of names, and reuse an idempotency key only when retrying the same order.
# 1. Discover the exact fields required for an order
curl "https://pugmod.com/api/v1/commerce/store/0577078c-4741-47d7-a42e-62156ae3a99e/order-schema?intent=order"
# 2. Submit answers that conform to that contract
curl -X POST https://pugmod.com/api/v1/commerce/store/0577078c-4741-47d7-a42e-62156ae3a99e/orders \
-H "Authorization: Bearer pgm_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: YOUR_UUID_V4" \
-d '{
"intent": "order",
"items": [
{"id": "dd091f52-27de-4bec-9e41-305957654881", "quantity": 1}
],
"answers": {
"REQUIRED_FIELD_FROM_SCHEMA": "VALUE"
},
"notes": "No sugar please"
}'Powered by Pugmod AI Commerce Engine