Professional Documents
Culture Documents
API For A Bills Payment Service: Data Model
API For A Bills Payment Service: Data Model
API For A Bills Payment Service: Data Model
Create an API for a bills payment service in Django REST Framework.
Data Model
Feel free to add as needed.
1. Customer
a. Name
b. Has one or more invoices
c. Has one or more receipts
2. Merchant
a. Name
b. Has one or more invoices
c. Has one or more receipts
3. Invoice
a. Merchant
b. Customer
c. Amount payable
d. Due date
e. Receipt
4. Receipt
a. Merchant
b. Customer
c. Invoice
d. Amount paid
e. Date of payment
Functional Requirements
1. Customer must be able to view all his pending invoices
2. Customer must be able to view all his receipts
3. Customer must be able to pay 1 invoice at a time
4. Customer is only allowed to pay the exact amount
5. Merchant must be able to view all payments received per day
6. Merchant must be able to view all payments received per week
7. Merchant must be able to create new invoices to anyone with an email address