Environments

Localwell provides two main environments for integration:
EnvironmentBase URLDescription
Staginghttps://dev-api-be.localwell.in/app/partnersFor testing and integration
Productionhttps://api-be.localwell.in/app/partnersLive APIs for production usage
Make sure to test all integrations in the staging environment before switching to production.

🔐 Authentication

Localwell issues two pieces of information to each integration partner (provided out-of-band via partner portal / email / account team):
  • Bearer Token (a Bearer token in Authentication Headers) — used for API authorization.
  • Pharmacy ID (x-pharmacy-id in Authentication Headers) — identifies the partner pharmacy for every request.
Both values will be supplied by Localwell. Do not try to obtain the token by calling any Localwell API unless explicitly told to do so.

Required headers (every request)

Include both headers in every request:
Authorization: Bearer YOUR_BEARER_TOKEN
x-pharmacy-id: YOUR_PHARMACY_ID