Settings
Theme, eBay connection, and default business policies.
Appearance
Light, dark, or match your system preference. Saved in this browser.
Sandbox setup checklist
Do these in order. Steps 1–2 are on your side; step 3 is one click in this app.
- 1. App keys in .env
EBAY_CLIENT_ID, EBAY_CLIENT_SECRET, EBAY_REDIRECT_URI = your RuName, EBAY_ENV=sandbox. Restart the server after edits.
- 2. Connect sandbox seller (you)
OAuth token is stored. You can re-connect anytime if it expires.
- 3. Auto-create location + policies (app)
Creates warehouse location + shipping/payment/return policies via eBay APIs and saves the IDs here.
- 4. Mock publish off
Live publish is enabled (mock flag not set).
Why Auth Accepted URL rejects localhost
eBay only allows https:// URLs (not http://localhost). That’s why the field “disappears” after you type it — the portal rejects and clears it. Use Option A (easiest) or Option B (HTTPS tunnel) below.
Option A — Paste portal OAuth token (what you have)
Get a User Token → OAuth → Copy to clipboard only gives you the User Access Token (~2 hours). That is not a refresh token — using it as a refresh token causes invalid_grant. This app now accepts that single token and uses it directly.
- Application Keys → Sandbox keyset matching
EBAY_CLIENT_ID - User Tokens → Get a User Token Now → OAuth
- Sign in as sandbox seller → accept → Copy token
- Paste below immediately → Save portal token
- Then run Auto-setup (before the ~2 hour expiry)
Optional .env (must be double-quoted because of #):EBAY_USER_ACCESS_TOKEN="v^1.1#…"
Option B — Use Connect button with free HTTPS tunnel
Only needed if you want the in-app “Connect eBay account” redirect flow.
- Install ngrok (free account) and run, with the app already on port 3000:
ngrok http 3000
- Copy the
https://….ngrok-free.appURL ngrok prints - In eBay RuName settings set:
- Auth Accepted URL:
https://YOUR-SUBDOMAIN.ngrok-free.app/api/ebay/oauth/callback - Auth Declined URL:
https://YOUR-SUBDOMAIN.ngrok-free.app/settings?error=declined
- Auth Accepted URL:
- Leave
EBAY_REDIRECT_URIas your RuName (not the ngrok URL) - Open the app via the ngrok https URL (not only localhost), then click Connect eBay account
Option C — paste authorization code
Only if a redirect URL in the browser contains code= (after Option B). Codes expire in a few minutes.
Connection status
- xAI: configured
- eBay app keys: configured
- Environment: sandbox
- User OAuth: token present
- Mock publish: off
RuName (env EBAY_REDIRECT_URI): must match developer portal — currently Ben_Franklin-BenFrank-Roll2L…
Auth Accepted URL (portal only — not the RuName):
https://roll2list.com/api/ebay/oauth/callbackAuth Declined URL:
https://roll2list.com/settings?error=declinedListing defaults
Filled automatically by Auto-setup. You can edit and Save if needed.