> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.bentoweb.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# วิธีปรับสถานะ payment ของ order ที่เป็นการโอนเงิน (transfer)

กรณีที่ลูกค้าไม่ได้อัพโหลดสลิปหรือแจ้งการโอนเงินเข้ามา จะมีขั้นตอนตามนี้นะครับ กรณีที่ payment เป็น transfer

1. ต้องมีรายชื่อธนาคารในร้านเราก่อน ให้ดึงได้ที่ 
https://open-api.bentoweb.com/bentoweb-api-prod/#/Banks/get_bank_stores__store_id_
2. ต้องมี list id ธนาคาร ดึงได้ที่
https://open-api.bentoweb.com/bentoweb-api-prod/#/Banks/get_bank
3. ให้เราทำการแนบสลิปโดยใช้ endpoint นี้
https://open-api.bentoweb.com/bentoweb-order-prod/#/Order/post_order_submit_attach_transfer_slip

โดยใส่ข้อมูลให้ครบตามรูปนี้
transfer_to ใช้ stp_id ที่ได้จาก /api/bank/stores/{store_id}
from_bank ใช้ bank_id จาก /api/bank

![](https://storage.crisp.chat/users/helpdesk/website/-/1/4/e/7/14e70c59388c7000/image_1l6hhvd.png)
หลังจากทำการยิงแนบสลิป-แจ้งโอนเงินไปแล้ว ให้ทำการยิง valid payment โดยใช้ API นี้
https://open-api.bentoweb.com/bentoweb-order-prod/#/Order/post_order_valid_payment

![](https://storage.crisp.chat/users/helpdesk/website/-/1/4/e/7/14e70c59388c7000/image_faj8rh.png)
สถานะออเดอร์จะปรับเป็นการขำระเงินสำเร็จ แล้วมี log ตามนี้
![](https://storage.crisp.chat/users/helpdesk/website/-/1/4/e/7/14e70c59388c7000/image_8uqiu2.png)

** กรณีที่ลูกค้ามีแจ้งโอนเงินเข้ามา ให้ข้ามขั้นตอนแรกได้เลย เรียกใช้แค่ endpoint /api/order/valid-payment ก็พอ