Store
Manage store including items, cart, and orders.
Available Endpoints
| Method |
Path |
Description |
| GET |
/api/store/items |
List store items |
| GET |
/api/store/items/{id} |
View item details |
| POST |
/api/store/cart/items |
Add item to cart |
| GET |
/api/store/cart/items/count |
Cart item count |
| GET |
/api/store/cart/items |
List cart items |
| PATCH |
/api/store/cart/items/{id} |
Update cart item |
| DELETE |
/api/store/cart/items/{id} |
Remove item from cart |
| GET |
/api/store/orders/process |
Process order |
| GET |
/api/store/orders/items |
List order items |
| GET |
/api/store/orders/items/{id} |
View order item details |
| POST |
/api/store/orders/items |
Save order item |
| PATCH |
/api/store/orders/items/sort |
Sort order items |
| DELETE |
/api/store/orders/items/{id} |
Remove item from order |
| POST |
/api/store/orders |
Place order |
| GET |
/api/store/orders/{order_id}/preview |
Order preview |
Example Request
curl -X GET "https://example.com/api/store/items" \
-H "Authorization: Bearer {token}"
Success Response (200)
{
"records": [],
"meta": {
"total": 0,
"current_page": 1,
"per_page": 20
}
}
Errors
| Code |
Description |
| 401 |
Invalid token |
| 403 |
Access denied |
| 404 |
Record not found |
| 422 |
Validation error |