Docker Image for Form 1099-A


These instructions assume you are familiar with Docker technology
including deploying Docker containers as microservices.

One-Time Authorization Setup

Download the image to your computer

docker pull us-central1-docker.pkg.dev/taxdochub-endpoints/tax-doc-server-tax1099a/tax1099a-generator:latest

Run the Docker app on your computer

docker run --publish 8080:8080 us-central1-docker.pkg.dev/taxdochub-endpoints/tax-doc-server-tax1099a/tax1099a-generator:latest

Produce a sample PDF form.

Open a browser window and enter the below URL

https://localhost:8080/sample

POST JSON to the microservice

POST TaxDataList object as application/json. Download sample JSON

Accept application/pdf

Example IntelliJ .http file

POST http://localhost:8080/fdx/v5/tax-forms
Content-Type: application/json
Accept: application/pdf
< Tax1099A.TaxDataList.fdx.json

Example curl command

curl -X POST --location "http://localhost:8080/fdx/v5/tax-forms" \
    -H "Content-Type: application/json" \
    -H "Accept: application/pdf" \
    -d Tax1099A.TaxDataList.fdx.json

Build and Deploy Container

Follow the procedures applicable to your server hosting service.