API for store -- 2

Closed Posted 2 years ago Paid on delivery
Closed Paid on delivery

There is an All-in-One Store that sells everything from groceries, medicines, clothes, books, music CDs, imported commodities, etc. Standard tax rates apply on these commodities as below.

- 5% on medicines and Food

- 5% on clothes below 1000 INR and 12% above 1000INR purchase

- 3% on music CDs/DVDs

- Flat 18% on the imported commodities.

- Books are exempted from tax.

- On every purchase, I get a receipt that has the below information :

- Date and Time of purchase

- List of commodities, each with their final price, tax amount with the applicable rate

- Total amount payable

- Additionally, a 5% discount is applied by the store if the bill exceeds 2000INR.

The bill is sorted in the ascending order of the commodity names.

Write an API that computes the taxes and the final bill amount. Sample inputs are given below. The output should have the total amount, total tax.

Input 1:

[{

"item": "Headache pills",

"itemCategory": "Medicine",

"quantity": 5,

"price": 50

},

{

"item": "Sandwich",

"itemCategory": "Food",

"quantity": 2,

"price": 200

},

{

"item": "Perfume",

"itemCategory": "Imported",

"quantity": 1,

"price": 4000

},

{

"item": "Black Swan",

"itemCategory": "Book",

"quantity": 1,

"price": 300

}

]

Input 2 :

[{

"item": "Classical Songs Collection",

"itemCategory": "Music",

"quantity": 1,

"price": 500

},

{

"item": "Pants",

"itemCategory": "Clothes",

"quantity": 2,

"price": 1200

}

]

Considerations:

The solution will not be considered if done completely with the help of the available package.

Use any version control platform to share the completed code.

The Repository should have instructions on how to run the application locally.

Candidates are expected to handle minimal errors/corner cases that can occur when using the built application. If an application fails to run or crashes in an expected workflow, it would be rejected.

Host the application on any of the platforms and include a link to the solution along with the code.

Styling is not a major consideration for evaluation, minimal design is sufficient.

Plagiarism is not entertained, in case you refer to a code snippet from sites like StackOverflow, do comment on the link and short description on what problem does it solve.

Python SQL API RESTful API

Project ID: #32770391

About the project

2 proposals Remote project Active 2 years ago

2 freelancers are bidding on average ₹825 for this job

flaiti97

lets talk. I am a full stack developer with 5 years of experience. I can easily build this. Thanks, Pranay

₹1050 INR in 7 days
(3 Reviews)
3.4
Anupam96786

Previously I've already worked on this types of projects. So I have experience and i can easily build the API within 12hours.

₹600 INR in 1 day
(0 Reviews)
0.0