update address
This commit is contained in:
28
docs/address.sh
Normal file
28
docs/address.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#get list address
|
||||
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.address.get_list' \
|
||||
--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 '{
|
||||
"limit_start" : 0,
|
||||
"limit_page_length": 0,
|
||||
"is_default" : false
|
||||
}'
|
||||
|
||||
#update/insert address
|
||||
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.address.update' \
|
||||
--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-raw '{
|
||||
"name": "Công ty Tiến Nguyễn-Billing", // bỏ trống hoặc không truyền để thêm mới
|
||||
"address_title": "Công ty Tiến Nguyễn",
|
||||
"address_line1": "Khu 2, Hoàng Cương, Thanh Ba, Phú Thọ",
|
||||
"phone": "0911111111",
|
||||
"email": "address75675@gmail.com",
|
||||
"fax": null,
|
||||
"tax_code": "12312",
|
||||
"city_code": "96",
|
||||
"ward_code": "32248",
|
||||
"is_default": false
|
||||
}'
|
||||
12
docs/auth.sh
12
docs/auth.sh
@@ -25,6 +25,18 @@ curl --location 'https://land.dbiz.com//api/method/frappe.client.get_list' \
|
||||
"limit_page_length": 0
|
||||
}'
|
||||
|
||||
GET WARD
|
||||
curl --location 'https://land.dbiz.com//api/method/frappe.client.get_list' \
|
||||
--header 'X-Frappe-Csrf-Token: a22fa53eeaa923f71f2fd879d2863a0985a6f2107f5f7f66d34cd62d' \
|
||||
--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 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"doctype": "Ward",
|
||||
"fields": ["ward_name","name","code"],
|
||||
"filters": {"city": "96"},
|
||||
"limit_page_length": 0
|
||||
}'
|
||||
|
||||
GET ROLE
|
||||
curl --location 'https://land.dbiz.com//api/method/frappe.client.get_list' \
|
||||
--header 'X-Frappe-Csrf-Token: 3d072ea39d245c2340ecc42d0825f6cbb7e674943c9c74346c8e4629' \
|
||||
|
||||
Reference in New Issue
Block a user