update gen qr

This commit is contained in:
Phuoc Nguyen
2025-11-21 17:31:49 +07:00
parent 4913a4e04b
commit 06b0834822
8 changed files with 192 additions and 44 deletions

View File

@@ -87,4 +87,32 @@ curl --location 'https://land.dbiz.com//api/method/building_material.building_ma
"price_entered": 10000 // Đơn giá
}
]
}'
}'
#create order response
Response: {message: {success: true, message: Sales Order created successfully, data: {name: SAL-ORD-2025-00078, status_color: Warning, status: Chờ phê duyệt, grand_total: 589824.0}}}
#gen qrcode
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.v1.qrcode.generate' \
--header 'X-Frappe-Csrf-Token: 6ff3be4d1f887dbebf86ba4502b05d94b30c0b0569de49b74a7171a9' \
--header 'Cookie: sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d' \
--header 'Content-Type: application/json' \
--data '{
"order_id" : "SAL-ORD-2025-00048"
}'
#gen qrcode response
{
"message": {
"qr_code": "00020101021238540010A00000072701240006970422011008490428160208QRIBFTTA53037045802VN62220818SAL-ORD-2025-00048630430F4",
"amount": null,
"transaction_id": "SAL-ORD-2025-00048",
"bank_info": {
"bank_name": "MB Bank",
"account_no": "0849042816",
"account_name": "NGUYEN MINH CHAU"
}
}
}