Testing Invoice Category Update

Step 1: Create Request

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

Update Invoice Tags

  1. Name the request: Update Invoice Tags.

Update Invoice Tags

  1. Select the PATCH method.

Update Invoice Tags

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

  2. Navigate to the Stages section.

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

Update Invoice Tags

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

Update Invoice Tags

  1. Paste the Invoke URL into Postman as follows:

Update Invoice Tags

  1. Replace {id} in the API endpoint with an actual Invoice ID from DynamoDB:
https://x4uqolxky6.execute-api.us-east-1.amazonaws.com/dev/invoice/tags/<InvoiceId_from_DynamoDB>

Update Invoice Tags

  1. Go to the Body tab → Select raw → Choose JSON.

Update Invoice Tags

  1. Paste the following JSON code into Postman to update invoice categories:
{
    "tags": ["VIP", "Urgent"]
}
  1. Click the Send button to view results.

Update Invoice Tags

  1. The response will appear as follows:

Update Invoice Tags

  1. Check the Tags field in DynamoDB to verify the update.

Update Invoice Tags