收藏
回答

此字段需要能映射到一个合法的“/body/pattern_info/background_color

返回异常:

PARAM_ERROR---无法将 JSON 输入源“/body/pattern_info/background_color”映射到目标字段“背景颜色”中,此字段需要能映射到一个合法的“/body/pattern_info/background_color”枚举

=============================== 这是什么错误呀?

创建批次参数:

{

    "stock_name":"微信支付代金券批次",

    "comment":"批次信息",

    "belong_merchant":"1495112822",

    "available_begin_time":"2020-08-08T13:29:35+08:00",

    "available_end_time":"2020-09-01T13:29:35+08:00",

    "stock_use_rule":{

        "max_coupons":10,

        "max_amount":5000,

        "max_amount_by_day":1000,

        "max_coupons_per_user":3,

        "natural_person_limit":true,

        "prevent_api_abuse":false

    },

    "pattern_info":{

        "description":"代金券批次test01",

        "merchant_logo":"https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEI1qUibGfkJ4N6Tg0ib4L87bJlSR02ZV1c2bNYLMfSSweBA/0",

        "merchant_name":"代金券批次test02",

        "background_color":"Color050",

        "coupon_image":"https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEI1qUibGfkJ4N6Tg0ib4L87bJlSR02ZV1c2bNYLMfSSweBA/0"

    },

    "coupon_use_rule":{

        "coupon_available_time":{

            "fix_available_time":{

                "available_week_day":[

                    0

                ],

                "begin_time":0,

                "end_time":3600

            },

            "second_day_available":true,

            "available_time_after_receive":null

        },

        "fixed_normal_coupon":{

            "coupon_amount":500,

            "transaction_minimum":1000

        },

        "disscount_coupon":{

            "discount_amount_max":0,

            "discount_percent":0,

            "transaction_minimum":null

        },

        "exchange_coupon":{

            "single_price_max":0,

            "exchange_price":0

        },

        "goods_tag":[

            "1"

        ],

        "trade_type":[

            "PPAY"

        ],

        "combine_use":true,

        "available_items":[

            "1"

        ],

        "unavailable_items":[


        ],

        "available_merchants":[

            "1495112822"

        ]

    },

    "no_cash":true,

    "stock_type":"NORMAL",

    "out_request_no":"14951128222020080619538",

    "ext_info":""

}


回答关注问题邀请回答
收藏

1 个回答

  • 微信支付技术助手8
    微信支付技术助手8
    2020-08-06

    background_color,字段全部用大写。重新请求一下。

    2020-08-06
    有用
    回复 2
    • Edwon
      Edwon
      2020-08-19
      能不能给一个完整的例子?BACKGROUND_COLOR:Color010 这样吗?
      2020-08-19
      回复
    • 微信支付技术助手8
      微信支付技术助手8
      2020-08-20回复Edwon
      COLOR030,类似这样的。
      2020-08-20
      回复
登录 后发表内容
问题标签