プロモーションコードのプロモーションを作成します。
| external_id required | string Default: "coupon_external_id" 一意のプロモーションID。 |
required | object Default: {"de-DE":"Gutscheintitel","en-US":"Coupon title"} プロモーションの名前。キーと値のペアを含む必要があります。 キーは"^[a-z]{2}-[A-Z]{2}$"形式のロケール、値は文字列です。 |
Array of type = string (object) or type = number (object) or type = date (object) [ 1 .. 100 ] items ユーザー属性を検証するための条件。 ユーザー属性が指定されたすべての条件に一致するかどうかに基づいて、プロモーションの可用性を決定します。 | |
Array ([ 1 .. 100 ] items) One of: | |
Array of objects or null | |
object or null | |
Array of objects or null プロモーションコードによる割引が適用されるアイテムリスト。 | |
| excluded_promotions | Array of integers このプロモーションを適用する際に除外するプロモーションIDのリスト。 |
Array of objects or null カートの中の特定のアイテムにプロモーションを適用するための価格範囲を設定する条件を持つオブジェクトの配列。 | |
Array of objects or null カート全体にプロモーションを適用するための価格帯を設定する条件を持つオブジェクトの配列。 | |
Array of objects プロモーションの有効期間。複数の期間を指定する場合は、 | |
| redeem_code_limit | integer or null Default: 10 コードごとの引き換え回数。 |
| redeem_total_limit | integer or null Default: 10 クーポンの総数を制限します。 |
| redeem_user_limit | integer or null Default: 10 一人のユーザーが引き換えできるクーポンの総数を制限します。 |
プロモーションコードが正常に作成されました。
基本認証が不合格または不正です。基本認証または正しい認証情報を使用したことを確認してください。
無効なリクエストです。
{- "attribute_conditions": [
- {
- "attribute": "account_status",
- "can_be_missing": false,
- "operator": "eq",
- "type": "string",
- "value": "golden"
}
], - "discount": {
- "percent": "10.10"
}, - "external_id": "coupon_external_id",
- "name": {
- "de-DE": "Neujahrsrabatt",
- "en-US": "New Year Discount"
}, - "promotion_periods": [
- {
- "date_from": "2020-04-15T18:16:00+05:00",
- "date_until": "2020-04-25T18:16:00+05:00"
}
], - "redeem_code_limit": 1,
- "redeem_total_limit": 100,
- "redeem_user_limit": 1
}{- "external_id": "coupon_external_id"
}