πŸ“¦ Customer APIs

The Customer API bundle allows integration partners to add or update customer. These APIs are essential for enabling external platforms to interact with Localwell’s pharmacy ordering system.

πŸ“Œ Available Endpoints

1. /v1/customer/add_customer

  • Adds a customer in the business system.
  • Performs validation, duplicate call protection.
  • Returns the added customer id along with success or error responses.

2. /v1/customer/edit_customer

  • Updates a customer in the business system.
  • Performs validation.
  • Returns the synced customer id along with success or error responses.

πŸ” 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