Order Save

To save the b2b sales order.

Save Order

POST {{apiUrl}}b2b/save

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
    }
}

Last updated