Can't able to create invoice with given endpoint

use “Sales%20Invoice” in api endpoint instead of “Sales Invoice” , include Items and payments in your request body, for more detail visit. REST API POST for Customer and Sales Invoice DocType Challange