Plaid沙盒身份验证:测试Ben Wyatt场景时手机号验证失败
问题描述
按Plaid沙盒测试文档测试Ben Wyatt的文档验证失败案例时,提交手机号+16667778888后收到错误提示:user.phone_number must be a valid phone number。
请求JSON
{ "client_user_id": "2161", "gave_consent": false, "is_idempotent": true, "is_shareable": true, "template_id": "idvtmp_19kzyuHmLVjEsT", "user": { "address": { "city": "Sherman Oaks", "country": "US", "postal_code": "94123", "region": "CA", "street": "620 Worster Ave Apt 101" }, "date_of_birth": "1975-01-18", "id_number": { "type": "us_ssn", "value": "111223333" }, "name": { "family_name": "Wyatt", "given_name": "Ben" }, "phone_number": "+16667778888" } }
(注:原请求中的datetime.date(1975, 1, 18)需转为JSON兼容的字符串格式)
响应信息
plaid.exceptions.ApiException: Status Code: 400 Reason: Bad Request HTTP response headers: HTTPHeaderDict({'Server': 'nginx', 'Date': 'Wed, 06 Nov 2024 23:08:39 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '230', 'Connection': 'keep-alive'}) HTTP response body: { "display_message": null, "error_code": "INVALID_FIELD", "error_message": "user.phone_number must be a valid phone number.", "error_type": "INVALID_REQUEST", "request_id": "sowlqt49yPHLFhl", "suggested_action": null }
内容的提问来源于stack exchange,提问作者markw
相关产品推荐
相关产品推荐

