Skip to main content
POST
Import orders
このエンドポイントを使用すると、トランザクション注文のリストを Kameleoon アカウントにインポートできます。データベースにすでに存在する注文とそのプロパティを更新するためにもこのエンドポイントを使用できます。データは JSON 文字列としてリクエスト本文に含めて送信する必要があります。

クエリパラメーターのリスト

orders オブジェクトのパラメーターリスト

value オブジェクトのパラメーターリスト

payment_structure オブジェクトのパラメーターリスト

value.total == payment_structure.cash + payment_structure.bonuses + payment_structure.delivery - payment_structure.discount となるようにしてください。

items オブジェクトのパラメーターリスト

items オブジェクトは注文を作成する際に必須です。注文のステータスを更新する際には、空の配列として送信できます。

JSON リクエスト例

注文のキャンセル

注文のインポートエンドポイントは注文の作成と更新の両方に使用されるため、キャンセルされた注文を登録するためにも使用できます。 キャンセルされた注文を登録するには、次を指定します。

クエリパラメーター

orders オブジェクトのパラメーター

キャンセル用 JSON リクエスト例

ボディ

application/json
shop_id
string
必須

Store Key. Find this in Recommendations > Settings > Store settings in the Kameleoon app. Contact your Customer Success Manager for the key if necessary.

shop_secret
string
必須

Secret Key. Find this in Recommendations > Settings > Store settings in the Kameleoon app. Contact your Customer Success Manager for the key if necessary.

orders
object[]
必須

List of orders.

レスポンス

Orders imported or updated. Verified against a live response on 2026-09-24.

status
enum<string>

Request outcome.

利用可能なオプション:
success