Dear @Hadi
Kindly note that developer portal is to modify the onboarding process, however you need to do the onboarding process in simulation environment at first after that move to production.
Please refer to fatoora simulation portal especially to API Documentation to find the exact APIs to used, since you are using a wrong endpoint.
Additionally, our recommendation after reviewing the educational library shared on ZATCA site Educational library (zatca.gov.sa) to start a full onboarding process in simulation environment using our SDK before starting to implement your own tool to ensure a full understanding of the actual behavior of the onboarding process.
Related to this concerns "Now i need to submit it for clerance . on the api request what hash value should i mention and should i add anything to my invoice after i created the xml "
You need to use the hash for the same invoice you want to submit, also in the educational library you can find the command that use to generateHash for your invoice, Kindly review the Educational Library.
Please do not hesitate to reach out our support team via email if you have any concerns,
SP email: sp_support@zatca.gov.sa
Thanks,
Ibrahem Daoud.