Shopify
E-commerce integration for orders, customers, and products
The Shopify connector provides 84 actions for managing orders, customers, products, and more.
Setup
Requirements
- Shopify store (any plan)
- Admin access to create private apps
Connect via OAuth
- Go to Settings → Integrations → Shopify
- Click Connect
- Enter your store URL (yourstore.myshopify.com)
- Authorize Keva in Shopify
- Select which store locations to access
Connect via API Key
- In Shopify Admin, go to Settings → Apps → Develop apps
- Create a new app for Keva
- Configure Admin API scopes (see below)
- Copy the API access token
- Paste in Keva's Shopify settings
Required Scopes
read_orders, write_orders
read_customers, write_customers
read_products
read_inventory
read_fulfillments, write_fulfillmentsAvailable Actions (84)
Orders
| Action | Description |
|---|---|
| Get order | Retrieve order details by ID or number |
| List orders | Get orders with filters |
| Update order | Modify order details |
| Cancel order | Cancel an order |
| Create refund | Process full or partial refund |
| Add order note | Add internal note to order |
| Get fulfillment | Check shipment status |
| Create fulfillment | Mark items as shipped |
| Update tracking | Add/update tracking info |
Customers
| Action | Description |
|---|---|
| Get customer | Retrieve customer by ID or email |
| Search customers | Find customers by criteria |
| Update customer | Modify customer info |
| Get customer orders | List all orders for customer |
| Add customer tag | Tag a customer |
| Get customer metafields | Retrieve custom data |
Products
| Action | Description |
|---|---|
| Get product | Retrieve product details |
| List products | Browse product catalog |
| Get inventory | Check stock levels |
| Get variant | Get specific variant details |
| Search products | Find products by name/SKU |
Discounts
| Action | Description |
|---|---|
| Get discount | Retrieve discount details |
| List discounts | Browse active discounts |
| Check discount eligibility | Verify if code applies |
Store
| Action | Description |
|---|---|
| Get shop info | Store name, currency, etc. |
| Get shipping zones | Available shipping options |
| Get policies | Return policy, terms, etc. |
Use Cases
Order Status Inquiry
Customer: "Where is my order 1234?"
AI:
1. Calls get_order(1234)
2. Calls get_fulfillment(order_id)
3. Returns order status with trackingResponse: "Your order #1234 shipped on March 10 via UPS. Here's your tracking number: 1Z999AA10123456784. It's currently in transit and expected to arrive by March 15."
Refund Request
Customer: "I'd like a refund for the sweater in order 1234"
AI:
1. Calls get_order(1234)
2. Identifies line item for sweater
3. Checks refund policy
4. Calls create_refund() for that itemResponse: "I've processed a refund of $49.99 for the sweater. You should see it on your card within 5-7 business days."
Inventory Check
Customer: "Is the blue version of product X available?"
AI:
1. Calls search_products("X")
2. Calls get_inventory(variant_id: blue)
3. Returns availabilityResponse: "Yes! The blue version of Product X is in stock with 12 units available. Would you like me to help you order one?"
Configuration
Order Access
Control which orders AI can access:
- All orders
- Orders from last X days
- Specific statuses only
Refund Permissions
Set refund controls:
- Maximum refund amount
- Require reason
- Auto-refund threshold
Location Access
If you have multiple locations:
- Select which locations AI can view
- Set primary location for fulfillment
Best Practices
For Order Support
- Enable all read actions
- Enable update_order for modifications
- Set refund limits appropriate for your business
- Enable fulfillment actions for shipping inquiries
For Product Support
- Enable product read actions
- Keep inventory sync frequent
- Add product info to knowledge base
Security
- Use OAuth when possible
- Only grant required scopes
- Review access logs regularly
- Rotate API keys periodically