[HELP] How to create an invoice using a sales order / Detail of books.zoho.com/api/v3/invoices/fromsalesorder API

[HELP] How to create an invoice using a sales order / Detail of books.zoho.com/api/v3/invoices/fromsalesorder API

Hi,

I found the books.zoho.com/api/v3/invoices/fromsalesorder API to create an invoice using a sales order.
I tried it but the result is not my expectation.

The statuses of the sales order used by the API are CLOSED, Invoiced, Paid, and Fulfilled.
My unexpected are CLOSED, Paid, and Fulfilled.

So can I assign those statuses when using the API?
And how can I set the due_date parameter?

I would like to know more detail about this API and what should I do to create an invoice by a sales order actually.

Thanks for your help

[UPDATED]
I tried the API like below but not worked to set due date.
POST https://books.zoho.com/api/v3/invoices/fromsalesorder?organization_id=XXXXXXX&salesorder_id=555985000028724001&due_date=2021-06-10
POST https://books.zoho.com/api/v3/invoices/fromsalesorder?organization_id=XXXXXXX&salesorder_id=555985000028724001&payment_terms=12
POST https://books.zoho.com/api/v3/invoices/fromsalesorder?organization_id=XXXXXXX -d 
salesorder_id=555985000028724001 due_date=2021-06-10