The discountedUnitPrice field on the DraftOrderLineItem object in Shopify's Customer Account API is now deprecated as of the 2026-07 release. Developers should migrate to the new approximateDiscountedUnitPrice field, which calculates the discounted total divided by quantity to provide an approximate per-unit price.
Nguồn: https://shopify.dev/changelog/discountedunitprice-on-draftorderlineitem-customer-account-api-deprecation. 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.
Bài viết so sánh 7 nền tảng CMS headless dành cho doanh nghiệp B2B SaaS: Prismic, Contentful, Sanity, Strapi, Storyblok, Hygraph và Kontent.ai, dựa trên nhu cầu cụ thể như landing page ICP, ABM, localization, tích hợp marketing stack và công cụ AI. Mỗi nền tảng có ưu thế riêng: Prismic cho SEO/AI, Contentful cho doanh nghiệp, Sanity cho linh hoạt kỹ thuật, Strapi cho mã nguồn mở, Storyblok cho chỉnh sửa trực quan, Hygraph cho GraphQL federation, Kontent.ai cho quản trị AI quy mô lớn. Bài viết cũng cung cấp thông tin về giá cả và hạn chế của từng nền tảng.
Những doanh nghiệp SaaS B2B cần tìm giải pháp quản lý nội dung phù hợp với quy mô và yêu cầu chuyên nghiệp hóa, từ việc tối ưu SEO cho landing pages đến tích hợp AI và công cụ ABM, để xây dựng trải nghiệm người dùng chuyên nghiệp và hiệu quả.
REST và GraphQL là hai kiến trúc API phổ biến, mỗi loại có nguyên tắc, ưu điểm, nhược điểm và trường hợp sử dụng riêng. REST hoạt động dựa trên tài nguyên và phương thức HTTP, trong khi GraphQL cho phép client truy vấn dữ liệu linh hoạt theo nhu cầu. Việc lựa chọn giữa hai phương pháp phụ thuộc vào yêu cầu dự án và hiệu suất mong muốn.
Một lập trình viên nên đọc bài này để so sánh rõ ràng giữa REST và GraphQL, giúp họ chọn kiến trúc API phù hợp với dự án hiện tại, tối ưu hóa hiệu suất và tránh những sai lầm thường gặp trong thiết kế hệ thống API.
Shopify's GraphQL Admin API GiftCard object now includes a new lineItem field that references the line item from the order that created the gift card. The field returns null for manually issued gift cards not tied to an order. This change is part of the 2026-07 API version.
Shopify's GraphQL Customer Account API version 2026-07 adds discount application data to draft orders. Developers can now query the new discountApplications field on DraftOrder to retrieve applied discounts (both discount codes and manual discounts), and the discountAllocations field on DraftOrderLineItem to see how discounts are distributed across individual line items. A sample GraphQL query is provided showing how to retrieve discount type, allocation method, target selection, value, and per-line-item allocation amounts.
Shopify is deprecating merchant-owned delivery profile APIs in the Admin GraphQL API as part of a shift to market-driven shipping. When a shop uses market-driven shipping, legacy delivery profile fields and mutations no longer reflect live shipping configuration — reads may return stale data and writes won't update live settings. App-owned delivery profiles are unaffected. Developers must follow the upgrade guide to detect affected shops, stop using legacy APIs, and migrate to Contextual Product Feeds, app-owned delivery profiles, or Markets APIs.
Shopify's GraphQL Admin API version 2026-07 adds a new legalEntityId field to the BusinessEntity type. This field returns a stable Central Legal Entity ID from Shopify's Organizations Platform, allowing Partners to consistently identify the same legal entity across multiple shops, markets, and sales channels. Previously, business entities were scoped per shop, causing the same company to appear with different IDs. The new field enables partners to map merchant legal entities to internal systems, correlate data across shops, and match identifiers used in tax webhook payloads.
Shopify's Hydrogen developer preview now supports one-click deployment to Vercel. A new Deploy button creates a GitHub repo from a Next.js starter template, sets up a Vercel project, and builds it automatically — no local setup needed. The starter includes the typed Storefront API client, cart, and product/collection pages pre-configured. Store credentials from the Headless channel can be added to connect your own products.
Shopify's 2026-07 API version introduces deposit fields for draft orders in both the GraphQL Admin API and Customer Account API. Developers can now set a deposit amount when creating or updating draft orders, enabling split-payment flows where part of the total is due at checkout and the remainder is due later (e.g., due-on-fulfillment terms). The Customer Account API exposes read-only deposit details including amounts due now and later. This feature is limited to Shopify Plus stores.