WooCommerce REST:立即验证失败

时间:2019-02-27 07:19:13

标签: php wordpress woocommerce wordpress-rest-api woocommerce-rest-api

我收到此Nonce验证失败,所有api都工作正常,仅在注册新客户时遇到问题,现有客户可以无问题地登录,只需注册即可。寻求帮助以解决此问题。

请求 https://www.example.com/wp-json/wc/v2/customers?consumer_key=ck_consumer_key&consumer_secret=cs_consumer_secret

身体 {"email":"[john.doe@example.com](mailto:john.doe@example.com)","first_name":"John","last_name":"Doe","username":"john.doe","password":"Pas$w0rd","billing":{"first_name":"John","last_name":"Doe","company":"","address_1":"969 Market","address_2":"","city":"San Francisco","state":"CA","postcode":"94103","country":"US","email":"[john.doe@example.com](mailto:john.doe@example.com)","phone":"(555) 555-5555"},"shipping":{"first_name":"John","last_name":"Doe","company":"","address_1":"969 Market","address_2":"","city":"San Francisco","state":"CA","postcode":"94103","country":"US"}}

回复{"code":"nonce_verification_failed","message":"Nonce verification failed","data":{"status":400}}

1 个答案:

答案 0 :(得分:0)

关于插件的问题,我不得不启用/禁用插件才能使其正常运行know more about