1
這是我在customer.updated webhook上獲得的JSON有效載荷。如何在woocommerce webhook中添加自定義字段?
{"customer":{"id":35,"created_at":"2015-10-09T06:51:25Z","email":"[email protected]","first_name":"Sagar","last_name":"Surwade","username":"connect91insagar","role":"customer","last_order_id":null,"last_order_date":null,"orders_count":0,"total_spent":"0.00","avatar_url":"http:\/\/1.gravatar.com\/avatar\/?s=96","billing_address":{"first_name":"","last_name":"","company":"","address_1":"","address_2":"","city":"","state":"","postcode":"","country":"","email":"","phone":""},"shipping_address":{"first_name":"","last_name":"","company":"","address_1":"","address_2":"","city":"","state":"","postcode":"","country":""}}}
我需要密碼字段也是在這個JSON,因爲我將使用此同步兩個不同的系統。
謝謝。
這不起作用,它返回'null' - ''customer「:{」found_password「:null}}' – Dan