create order -> upload bill
This commit is contained in:
@@ -115,4 +115,25 @@ curl --location 'https://land.dbiz.com//api/method/building_material.building_ma
|
||||
"account_name": "NGUYEN MINH CHAU"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#upload bill
|
||||
curl --location 'https://land.dbiz.com//api/method/upload_file' \
|
||||
--header 'Cookie: sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d' \
|
||||
--header 'X-Frappe-Csrf-Token: 6ff3be4d1f887dbebf86ba4502b05d94b30c0b0569de49b74a7171a9' \
|
||||
--form 'file=@"/C:/Users/tiennld/Downloads/logo_crm.png"' \
|
||||
--form 'is_private="1"' \
|
||||
--form 'folder="Home/Attachments"' \
|
||||
--form 'doctype="Sales Order"' \
|
||||
--form 'docname="SAL-ORD-2025-00058-1"' \
|
||||
--form 'optimize="true"'
|
||||
|
||||
|
||||
#order detail
|
||||
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.sales_order.get_detail' \
|
||||
--header 'Cookie: sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d' \
|
||||
--header 'X-Frappe-Csrf-Token: 6ff3be4d1f887dbebf86ba4502b05d94b30c0b0569de49b74a7171a9' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"name" : "SAL-ORD-2025-00058-1"
|
||||
}'
|
||||
Reference in New Issue
Block a user