This endpoint accepts a JSON payload with the following structure:
{
"number": 10.22456,
"delete_from_sentence": null,
"currency": "دينار",
"decimal_currency": "مليم",
"separator": "و",
"decimal": 3,
"language": "ar"
}
- number (required): The numeric value to convert to words.
- delete_from_sentence (optional): A word to delete from the generated sentence.
- currency (optional): The currency to append to the result.
- decimal_currency (optional): The currency for the decimal part.
- separator (optional): A separator for the integer and decimal parts.
- decimal (optional): The number of decimal places.
- language (required): The language for the conversion.
Response :
{
"message": "عشرة دينار و مئتان و خمسة و عشرون مليم"
}