Does erpnext have APIs to create Purchase Order and Sales Order?

I want to use some APIs to create PO and SO.

https://frappe.github.io/frappe/user/guides/integration/rest_api.html