#get user info
curl --location --request POST 'https://land.dbiz.com//api/method/building_material.building_material.api.user.get_user_info' \
--header 'Cookie: sid=a0c9a51c8d1fbbec824283115094bdca939bb829345e0005334aa99f; full_name=phuoc; sid=a0c9a51c8d1fbbec824283115094bdca939bb829345e0005334aa99f; system_user=no; user_id=vodanh.2901%40gmail.com; user_image=https%3A//secure.gravatar.com/avatar/753a0e2601b9bd87aed417e2ad123bf8%3Fd%3D404%26s%3D200' \
--header 'X-Frappe-Csrf-Token: a22fa53eeaa923f71f2fd879d2863a0985a6f2107f5f7f66d34cd62d' \
--data ''

#response user info
{
    "message": {
        "full_name": "phuoc",
        "phone": "0978113710",
        "email": "vodanh.2901@gmail.com",
        "date_of_birth": null,
        "gender": null,
        "avatar": "https://secure.gravatar.com/avatar/753a0e2601b9bd87aed417e2ad123bf8?d=404&s=200",
        "company_name": "phuoc",
        "tax_code": null,
        "id_card_front": null,
        "id_card_back": null,
        "certificates": [],
        "membership_status": "Đã được phê duyệt",
        "membership_status_color": "Success",
        "is_verified": true,
        "credential_display": false
    }
}

#update user info
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.user.update_user_info' \
--header 'Cookie: sid=a0c9a51c8d1fbbec824283115094bdca939bb829345e0005334aa99f; full_name=phuoc; sid=a0c9a51c8d1fbbec824283115094bdca939bb829345e0005334aa99f; system_user=no; user_id=vodanh.2901%40gmail.com; user_image=https%3A//secure.gravatar.com/avatar/753a0e2601b9bd87aed417e2ad123bf8%3Fd%3D404%26s%3D200' \
--header 'X-Frappe-Csrf-Token: a22fa53eeaa923f71f2fd879d2863a0985a6f2107f5f7f66d34cd62d' \
--header 'Content-Type: application/json' \
--data '{
    "full_name"  : "Ha Duy Lam",
    "date_of_birth" : "2025-12-30",
    "gender" : "Male",
    "company_name" : "Ha Duy Lam",
    "tax_code" : "0912313232",
    "avatar_base64": null,
    "id_card_front_base64: null,
    "id_card_back_base64: null,
    "certificates_base64": []
}'