YOCHDA API Documentation
RESTful API v1 for marketing agents and integrations
Base URL: https://yongstore-k7tqzivf.manus.space/api/v1
Authentication
All API requests require an API key. Include it in one of these ways:
Header: X-API-Key: ycd_your_api_key_here
Query: /api/v1/products?api_key=ycd_your_api_key_here
readCan read data (GET requests)
writeCan create/update data (POST/PUT requests)
Quick Start
# List all products
curl -H "X-API-Key: ycd_your_key" \
https://yongstore-k7tqzivf.manus.space/api/v1/products
# Get order statistics
curl -H "X-API-Key: ycd_your_key" \
https://yongstore-k7tqzivf.manus.space/api/v1/analytics/overview
# Create a coupon (requires write permission)
curl -X POST -H "X-API-Key: ycd_your_key" \
-H "Content-Type: application/json" \
-d '{"code":"SUMMER20","discountType":"percentage","discountValue":20}' \
https://yongstore-k7tqzivf.manus.space/api/v1/couponsAPI Endpoints
Products
GET
/api/v1/productsList all products
GET
/api/v1/products/:idOrSlugGet product by ID or slug (includes review stats)
PUT
/api/v1/products/:idUpdate product (name, price, stock, images, videoUrl, faqs, etc.)write
Orders
GET
/api/v1/ordersList orders
GET
/api/v1/orders/:orderNumberGet order by order number
PUT
/api/v1/orders/:orderNumberUpdate order status/trackingwrite
GET
/api/v1/orders/stats/summaryOrder statistics and revenue summary
Reviews
GET
/api/v1/reviewsList product reviews
Coupons
GET
/api/v1/couponsList all coupons
POST
/api/v1/couponsCreate a new couponwrite
Blog
GET
/api/v1/blogList blog posts
POST
/api/v1/blogCreate a blog postwrite
Subscribers
GET
/api/v1/subscribersList newsletter subscribers
B2B Quotes
GET
/api/v1/quotesList B2B quote requests
PUT
/api/v1/quotes/:idUpdate quote statuswrite
Inventory
GET
/api/v1/inventoryGet all product stock levels (includes low stock alerts)
PUT
/api/v1/inventory/:idUpdate product stockwrite
Analytics
GET
/api/v1/analytics/overviewBusiness overview (orders, revenue, reviews, subscribers, quotes)
Response Format
// Success response
{
"success": true,
"data": { ... },
"pagination": {
"total": 42,
"limit": 50,
"offset": 0,
"hasMore": false
}
}
// Error response
{
"error": "Missing API key. Provide X-API-Key header or api_key query parameter."
}Rate Limits & Best Practices
Each API key has a configurable rate limit (default: 1,000 requests/day). Contact admin to increase limits.
Use pagination parameters (limit, offset) for large datasets. Maximum limit per request is 100.
Cache product data locally and use the since parameter on orders to fetch only new data.
For marketing campaigns, create platform-specific coupon codes (e.g., TIKTOK10, FB20, YT15) to track conversion by channel.
