Rest api Buying

Hi

Dose anyone have a guide or explain what the endpoints are for creating a purchase receipt of a order and then to create a invoice from that order?

I was able to create a Purchase order via the api but i am not sure of next steps

My goal is to create a bridge from our current erp to erpNext so we can start testing while still using the old erp