Command line tools related to the VW ID.4 reservation process.
This repository contains 2 tools:
reservation-check
: Check the status of a VW ID4 Reservation. Thank you to the kind folks at vwidtalk for providing a list of useful codesstock-search
: Check all stock levels for ID.4 in the USA. See my post on vwidtalk for more details.Review the contents of .env.template
and configure your environment correctly. At a minimum, you will need to set environment variables for USERNAME
and PASSWORD
.
*nix
systems, you can run:
$ cp .env.template .env
$ vim .env
$ . .env
- On `*nix` systems, you could also use https://direnv.net/
- On windows, these can be set in Powershell using `$Env:<variable-name> = "<new-value>"`
Check the status of a VW ID4 Reservation. Thank you to the kind folks at vwidtalk for providing a list of useful codes
PAGE_LOAD_TIMEOUT_SECONDS=60
VERBOSE=1
...
Raw response data
{
"data": {
"authenticatedGetReservation": {
"__typename": "Reservation",
"configurationId": "...",
"deliveryDealerCode": "...",
"estimatedProductionDate": "...",
"fromEstmtdDlvryDate": "...",
"marketingCode": "...",
"orderStatusCode": "<See link to vwidtalk forums above for list of expected status codes>",
"publicReservationId": "...",
"reservationStatus": "ACTIVE",
"toEstmtdDlvryDate": "...",
"vin": "...",
"vwModelCodeKey": "..."
},
"getDealerById": null
}
}
./reservation-check.sh
./reservation-check.ps1
$ ./reservation-check.sh
Entering username...
Submitting username...
Entering password...
Submitting password...
Waiting for reservation page to load...
Parsing authentication token...
Parsing authentication subject...
Parsing reservation id...
Making GraphQL API: GetUserProfileByUserId
Parsing GraphQL API response
Order Status 03 (Locked)
Estimated Production Date None
Estimated Deliver Date (beginning) 2022-4-01
Estimated Deliver Date (end) 2022-5-01
VIN None
Press any key to close ...
Check all stock levels for ID.4 in the USA. See my post on vwidtalk for more details.
# full output
./stock-search.sh
# or, filter only CSV output
./stock-search.sh | grep ','