Skip to content
View in the app

A better way to browse. Learn more.

Loyverse Town

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ITEMS API - POST to /items/{id} Fails Outside Postman — Always Returns 405

Featured Replies

Hello Team,
We've been integrating Loyverse via API and ran into a puzzling issue. We'd appreciate your help in understanding or resolving it.
What Works:
•    Creating new items via POST /v1.0/items ✅
•    Updating items via POST /v1.0/items/{id} ✅ only via Postman
•    Authorization: valid Bearer token
•    Payload: full item + variant object, conforms exactly to your API schema
What Fails:
When making the exact same update request from:
•    Supabase Edge Functions (Deno runtime)
•    Node.js script via fetch or axios
•    Local PowerShell terminal using Node.js
Result:
•    405 Method Not Allowed
•    Response body: [empty]

What We've Tried:
•    Confirmed valid token and payload by copying directly from successful Postman request
•    Matched headers 1:1 with Postman (User-Agent, Accept, etc.)
•    Tested both POST and PUT methods
•    Ran tests from local machines, not cloud or edge networks
•    Confirmed /items endpoint works for creation in all environments

Please confirm if there are known restrictions for /items/{id} ?
Let us know how to safely send update requests programmatically 
Happy to share logs or tests if helpful.
Thank you! 
— Developer who loves Loyverse!
 

  • 5 weeks later...

Hi, try to send your request from you app, and from postman to this web site, and check differences.

https://webhook.site/

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.