Daily Python Projects

Daily Python Projects

Build an Invoice API with Python and Flask

Level: Real-World

Ardit Sulce's avatar
Ardit Sulce
May 24, 2024
∙ Paid

Intro

Many apps that we use in our daily lives get data from a REST API. For example, when we look up the weather on a web app or a mobile app, that app makes a request for data to an API. The API returns the data in JSON format and the app displays it to us in a nice format. The application that queries the data is known as the client.

Project Brief

Your task for this project is to build a REST API using Flask that serves invoice data.

Step-By-Step Instructions

  1. Download this data.db database file.

  2. The database contains an invoices table which contains the following data.

  1. Code a REST API using Flask. The API should return all the invoices (in JSON format) for a particular CustomerId.

Expected Output

Keep reading with a 7-day free trial

Subscribe to Daily Python Projects to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Ardit Sulce · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture