调用 alipay.marketing.card.formtemplate.set 接口报错 form_field_invalid(表单字段无效)。
{"alipay_marketing_card_formtemplate_set_response":{"code":"40004","msg":"business failed","sub_code":"form_field_invalid","sub_msg":"表单字段无效"},"sign":"***
fields 中表单参数值存在问题。
(会员卡开卡表单模板配置接口)
检查传入的参数值是否正确,是否存在空格。
建议可参考以下示例:
request.setbizcontent("{" "\\"template_id\\":\\"20170228000000000210102000300974\\"," "\\"fields\\":{" "\\"required\\":\\"{\\\\\\"common_fields\\\\\\":[\\\\\\"open_form_field_mobile\\\\\\"]}\\"," "\\"optional\\":\\"{\\\\\\"common_fields\\\\\\":[\\\\\\"open_form_field_gender\\\\\\"]}\\"" "}" "}");