Testing Invoice Retrieval by Customer Name

Step 1: Create Request

  1. In the InvoiceGetAPI-Tests Collection, click the "+" button to create a new request.

Get Invoices By Name

  1. Name the request: Get Invoices By Name.

Get Invoices By Name

  1. Select the GET method.

Get Invoices By Name

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

  2. Navigate to the Stages section.

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

Get Invoices By Name

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

Get Invoices By Name

  1. Paste the Invoke URL into Postman as follows:

Get Invoices By Name

  1. Append the following query parameter to the API endpoint:
?name=<customer_name>
  1. Enter the customer name you want to search for in the invoices.

Get Invoices By Name

  1. Click the Send button to view results.

Get Invoices By Name

  1. The response will appear as follows:

Get Invoices By Name