Skip to content

Fix stock detection bug - align with correct Apple Store API#128

Open
Kashionz wants to merge 1 commit intohteen:masterfrom
Kashionz:master
Open

Fix stock detection bug - align with correct Apple Store API#128
Kashionz wants to merge 1 commit intohteen:masterfrom
Kashionz:master

Conversation

@Kashionz
Copy link

  • Change API endpoint from /fulfillment-messages to /retail/pickup-message
  • Update query parameters: pl=true, location={storeNumber}
  • Fix JSON parsing path: body.stores instead of body.content.pickupMessage.stores
  • Correct stock detection: check isBuyable && inventory > 0

Fixes issue where program incorrectly shows 無貨 despite actual stock availability on Apple Store website.

- Change API endpoint from /fulfillment-messages to /retail/pickup-message
- Update query parameters: pl=true, location={storeNumber}
- Fix JSON parsing path: body.stores instead of body.content.pickupMessage.stores
- Correct stock detection: check isBuyable && inventory > 0

Fixes issue where program incorrectly shows 無貨 despite actual stock availability on Apple Store website.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant