legacy-knowledge-base
公開されました Jun. 30, 2025

ヘッドレスAPIでデフォルトSKUに価格を追加する方法は?

written-by

Pooja Bhambani

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • ヘッドレスAPIで商品を投稿する際に、商品のリクエストボディに価格(デフォルトSKU)を追加する必要があります。

Environment

  • Liferay DXP 7.4
  • Commerce 4.0

解決策

  • ヘッドレスAPIの「デフォルトSKU」フィールドは、ユーザーが作成したい特定のSKUを持っていない場合に、デフォルトSKUを汎用的に作成するために使用することを目的としています。
  • デフォルトのSKUが作成されると、ユーザーはUIまたはヘッドレスAPIでSKUを変更できます(ERCまたはIDに簡単にアクセスできます)。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base