Checkout

To check availability of the items.

Get availability of medicines

POST https://api.evitalrx.in/v1/fulfillment/orders/checkout

For the medicines which are out of stock, available alternative medicines will be provided.

Request Body

NameTypeDescription

apikey*

String

Authentication Token

medicine_ids*

String

Stringified Array of medicine_ids.

medicine_ids should contain at least 1 medicine_ids.

MIN: 1 (medicines)

MAX: 15 (medicines)

Example:

["otUfMtG4nIpWSc+oWoX7Lw=="]

latitude

Number

Latitude of the customer

longitude

Number

Longitude of the customer

full_address

String

Required If lat-long is not provided. This address is used to get the lat-long to find the nearest pharmacy store.

Only zipcode can also be passed in this param.

like { "full_address": "560008" }

{
    "status_code": "1",
    "status_message": "Success",
    "datetime": "2023-02-15 12:33:58",
    "data": {
        "availability": [
            {
                "medicine_id": "y8P5ElKQqfn/Dkb0uhE9Sg==",
                "in_stock": "yes"
            },
            {
                "medicine_id": "+ZqERHcCTAeuxsJheIXjyw==",
                "in_stock": "no",
                "alternatives": []
            },
            {
                "medicine_id": "I446Nql4z13v8fTxtjx63g==",
                "in_stock": "no",
                "alternatives": [
                    {
                        "medicine_id": "y8P5ElKQqfn/Dkb0uhE9Sg==",
                        "medicine_name": "Ltk 50 Tablet",
                        "mrp": 50,
                        "packing_size": "1 Strip of  10 Tablet",
                        "manufacturer_name": "Unison Pharmaceuticals Pvt Ltd",
                        "content": "Losartan (50mg)"
                    }
                ]
            }
        ]
    }
}

Last updated