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. Orders

Order Save

To save the b2b sales order.

PreviousOrdersNextOrder Save as Draft

Last updated 5 months ago

Was this helpful?

Save Order

POST

Request Body

Name
Type
Description

bill_date*

date

Date of the bill.

Format: YYYY-MM-DD

buyer_chemist_id*

String

Id to uniquely identify the chemist for whom the order is placed

items*

Stringified Array

List of items with quantity (in pills).

All the params are required shown below.

Medicine Id and batch should have unique combination.

i.e. [{"medicine_id":"TF7Wm49nceLV+NmoM6HJYw==","batch":"WER321","expiry":"2030-02-01","mrp":23.5,"price_to_retailer":15.85,"quantity":10,"free":0,"hf":0,"base_price":15.85,"discount_percentage":0,"scheme_amount":0,"gst_percentage":12,"cess_percentage":5}]

apikey*

String

Authentication token

payment_status*

Number

To choose payment mode of the order.

1: CASH

2: CREDIT

3: UPI

4: CHEQUE

5: PAYTM

6: CC/DC

7: RTGS/NEFT

payment_due_date

date

Date of the bill.

Format: YYYY-MM-DD (Required but conditional i.e. if payment_status is 2 then)

bill_no

String

The bill number, can be empty, or if you have any specific bill to save

wholesale_draft_id

number

The ID of the wholesale draft (If draft order is being saved)

bill_base

String

Base for billing, accepts: 1. mrp 2. ptr (default)

shipping

String

The cost of shipping if made

remark

String

Note for the Prescription

delivery_note

String

Delivery notes if any

doctor_id

String

Doctor ID

{
    "status_code": "1",
    "status_message": "Bill created successfully",
    "datetime": "2024-10-01 12:50:37",
    "data": {
        "chemist_order_id": "QlOCazEdBCkSk9qdEQF2qA==" // Order ID
    }
}
{
    "status_code": "0",
    "status_message": "Something broken. Please try again later.",
    "datetime": "2024-10-01 12:51:23",
    "data": null
}

{{apiUrl}}b2b/save