๐Ÿ“ฆ Order APIs

The Order API bundle allows integration partners to place customer orders and retrieve their statuses. These APIs are essential for enabling external platforms to interact with Localwellโ€™s pharmacy ordering system.

๐Ÿ“Œ Available Endpoints

1. /v1/order/add_customer_order

  • Adds a customer order to a mapped Localwell pharmacy business
  • Accepts order details, product list, and customer information
  • Returns success only after order is created successfully in Localwellโ€™s system

2. /v1/order/get_order_status

  • Returns the status of an order using customer_order_id
  • Useful to show real-time order state (e.g. pending, confirmed, dispatched, etc.)
  • Includes order status, timestamps, and associated pharmacy ID

๐Ÿ” Authentication

All Order API requests must include:
  • Authorization: Bearer YOUR_BEARER_TOKEN (Bearer Token provided by Localwell)
  • x-pharmacy-id: YOUR_PHARMACY_ID (Pharmacy ID provided by Localwell)
Example:
Authorization: Bearer YOUR_BEARER_TOKEN
x-pharmacy-id: 1