Testing Retrieval of All Invoices

Prerequisites

⚠️ Previously we only demonstrated uploading “demo_invoice.png”. Please upload the remaining 2 invoice files as well!


Step 1: Create Postman Collection

  1. Open Postman application and click the "+" button to create a new collection.

Test get all invoices

  1. Select Blank Collection.

Test get all invoices

  1. Name it: InvoiceGetAPI-Tests

Test get all invoices


Step 2: Create Request

  1. Within the newly created collection, click the "+" button to add a request.

Test get all invoices

  1. Name the request: Get All Invoices.

Test get all invoices

  1. Select the POST method.

Test get all invoices

  1. Go to API Gateway and select the API: GetInvoiceAPI.

Test get all invoices

  1. Navigate to the Stages section.

Test get all invoices

  1. Click the "+" button to reveal the /invoice endpoint path as shown below:

Test get all invoices

  1. Select the GET method and copy the Invoke URL.

Test get all invoices

  1. Paste the Invoke URL into Postman as follows:

Test get all invoices

  1. Click the Send button to view results.

Test get all invoices

  1. A successful response will appear as follows:

Test get all invoices

Verify that all 3 invoices are returned to confirm success ✅