eVitalRx
  • API - powered by eVitalRx
  • Getting Started with eVitalRx
  • API FOR Product Catalogue
    • Introduction
    • Medicines
      • Search Product
      • Product Details
      • Search Content
      • Request Product
      • Get Categories
      • Get Category Products
  • API FOR Patient App
    • Introduction
    • Login/Signup
      • Signup send OTP
      • Signup
      • Login
      • Forgot password send OTP
      • Reset password
      • Change password
    • Patients
      • Add Patient
      • Update Patient
      • Get Patient
      • Add Patient family member
    • Addresses
      • List Addresses
      • Add-Update Address
      • Set Default Address
      • Delete Address
    • Medicines
      • Search Products
      • Search Manufacturer
      • Product Details
      • Get Stock details
      • Get Product Batch
      • Search Content
      • Branded to Generic
      • Get Categories
      • Get Category Products
      • Get Entity Categories
      • Get Entity Category Products
    • Orders
      • Place Order
      • Cancel Order
      • Save
      • Order Details
      • Order List
      • Mark as Accept
      • Mark as Reject
      • Get Reject Reasons
      • Get Chemist Order Settings
      • â›”Mark as Shipped
      • Mark as Delivered
      • Order Return
      • Order Return Details
  • API FOR EMR/HMIS SOFTWARE
    • Introduction
    • Medicines
      • Search Products
      • Product Details
      • Get Inventory Status
      • Get Inventory Items
      • Get Alternatives
      • Get Product Batch
      • Get Expired Batches
      • Request Product
      • Branded to Generic
      • Search Content
      • Add Favorite Medicine
    • Patients
      • Add Patient
      • Get Patient
      • Update Patient
      • Add Patient family member
    • Orders
      • Push Prescription
      • Order Details
      • Order List
      • â›”Update Order
      • Save
  • API FOR Custom Fields
    • Introduction
    • Add Custom Fields
    • Update Custom Field
    • Delete Custom Fields
    • List Custom Fields
  • API FOR MASTER
    • Reports
      • Margin Report
      • Stock Summary
  • API FOR FULFILLMENT
    • Introduction
    • Medicines
      • Search Products
      • Product Details
    • Orders
      • â›”Check Serviceability
      • Check Serviceability V3
      • â›”Checkout V2
      • Checkout V3
      • â›”Place Order V2
      • Place Order V3
      • â›”Order Details
      • Order Details V2
      • â›”Cancel Order
      • Cancel Order V2
      • Get Reject Reasons
    • Patients
      • Add Patient
      • Get Patient
  • API FOR B2B
    • Introduction
    • Orders
      • Order Save
      • Order Save as Draft
      • Order List
      • Order Details
      • Order Return Save
      • Order Return List
      • Order Return Details
    • Customers
      • Add / Update Customer
      • Customer List
  • Webhook Responses
    • Introduction
    • Medicine Webhook
    • Transaction Webhook
    • Draft Save
    • Draft Edit
    • Order Save
    • Order Edit
    • Order Accepted
    • Order Rejected
    • Order Shipped
    • Order Delivered
    • Order Split
  • Others
    • Terms & Conditions
Powered by GitBook
On this page

Was this helpful?

  1. API FOR B2B
  2. Customers

Add / Update Customer

To add patients with mobile number, name and address.

PreviousCustomersNextCustomer List

Last updated 5 months ago

Was this helpful?

Add Patient

POST

Request Body

Name
Type
Description

pharmacy_name*

String

Name of the pharmacy

mobile*

Number

Mobile number of pharmacy

address*

String

Address of the pharmacy

apikey*

String

Authentication token

id

Number

Unique ID of address, If provided, it will update the address associated with this ID.

If this ID is not provided, then new address will be inserted.

pharmacist_name

String

Name of the Pharmacist

gstn_number

String

The GSTN Number of the pharmacy

pan_no

String

The PAN Number of the pharmacy

discount_percentage

Number

Default discount percentage for the pharmacy

license_number_20

String

Drug License of pharmacy

license_number_21

String

Wholesale License of pharmacy

address_line2

String

Street or Landmark of the pharmacy address

email

String

Email of the pharmacy

area

String

The area where the pharmacy is located

phone

String

The phone number of the pharmacy

entity_type

String

The type of entity; must be one of 'chemist', 'doctor', or 'b2b_customer' defaults to 'chemist'

{
    "status_code": "1",
    "status_message": "New Pharmacy Added Successfully",
    "datetime": "2024-10-01 15:56:54",
    "data": {
        "chemist_id": "kg/N9s0A0Y03GXuiuo/Iqw==", // ID of newly added/existing B2B Chemist/Customer
        "pharmacy_name": "Sharma Medical Store",
        "pharmacist_name": "Sdsadasdsd",
        "mobile": "1414141414",
        "gstn_number": "10AKEPK5905A1ZZ",
        "pan_no": "4445454588",
        "area": "Motera",
        "city": ""
    }
}
{
    "status_code": "0",
    "status_message": "Please enter valid GSTIN format",
    "datetime": "2024-10-01 15:58:41",
    "data": null
}

{{apiUrl}}b2b/add_update_pharmacy