Shopify's GraphQL Admin API version 2026-10 removes the deprecated priceRule field from the DraftOrderDiscountNotAppliedWarning object. Apps querying priceRule in draft order discount warnings (from mutations like draftOrderCalculate) must migrate to the direct discountTitle and discountCode fields before upgrading. This also removes the legacy PriceRule object and related types from the public schema in 2026-10 and later. Older API versions continue to expose the field until end of life.
Nguồn: https://shopify.dev/changelog/remove-pricerule-from-draft-order-discount-warning. 8sync News chỉ tóm tắt và dẫn link; bản quyền nội dung thuộc tác giả và nguồn gốc.
REST và GraphQL là hai kiến trúc API phổ biến cho nhà phát triển. REST hoạt động dựa trên tài nguyên và phương thức HTTP tiêu chuẩn, trong khi GraphQL cho phép truy vấn dữ liệu linh hoạt theo nhu cầu. Mỗi phương pháp đều có ưu điểm, hạn chế và trường hợp sử dụng phù hợp riêng.
Nếu bạn đang xây dựng ứng dụng cần quản lý dữ liệu phức tạp hoặc tối ưu hóa hiệu suất truy vấn, hiểu rõ REST và GraphQL sẽ giúp bạn lựa chọn kiến trúc API phù hợp, tránh lãng phí thời gian và nguồn lực trong thiết kế hệ thống.
Shopify is deprecating the cart tools on its Storefront MCP server in favor of new UCP-conforming Cart MCP tools. The new tools implement the UCP cart capability (dev.ucp.shopping.cart, version 2026-04-08) and expose four operations: create, get, update (PUT semantics), and cancel a cart. Developers must migrate their integrations before August 31, 2026, update endpoints, include a meta object with ucp-agent.profile in every request, add an idempotency key for cart creation, and send the complete line items array on every update rather than patching individual fields.