V3代金券的背景色 background_color 字段如何填

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:11 665 0 全屏看文

AI助手支持GPT4.0

V3代金券的背景色 background_color 字段如何填

{"pattern_info":{"description":"测试使用","merchant_logo":"","merchant_name":"","background_color":"#9062c0"}}

之前直接填色号没有问题,今天突然报错{"code":"PARAM_ERROR","detail":{"location":"body","value":"#9062c0"},"message":"无法将 JSON 输入源“/body/pattern_info/background_color”映射到目标字段“背景颜色”中,此字段需要能映射到一个合法的“/body/pattern_info/background_color”枚举"}'

{"pattern_ Info ": {" description ":" test usage "," merchant "_ logo":"","merchant_ name":"","background_ Color ":" ා 9062c0 "}}}} is no problem. Today, an error {code": "param" is reported_ Error "," detail ": {location": "body", "value": "ා 9062c0"}, "message": "unable to input JSON into source" / body / pattern "_ info/background_ Color "is mapped to the target field" background color ", which needs to be mapped to a legal / body / pattern_ info/background_ Color "enumeration"} '

回答:

支付技术助手8:

为了帮助你更快的定位问题,请提供如下信息(有敏感信息可私信提供):

-请求的具体API接口(提供文档地址和请求的URL):

- 问题发生时间【必填】:

- 商户号【 必填】:

- 商户订单号【 必填】:

- 相关报错信息文案:

- 问题截图或视频:

-完整的请求和返回参数以及单号:

北望沣渭:

传16进制的值是不行的,取值范围目前只能是下面这10种值之一。

BackgroundColor:  type: string  description: 背景颜色  enum:    - Color010    - Color020    - Color030    - Color040    - Color050    - Color060    - Color070    - Color080    - Color090    - Color100

-EOF-

AI助手支持GPT4.0