Checkout

To check availability of the items.

Get the availability of medicines

POST {{apiUrl}}fulfillment/orders/checkout

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

Request Body

Name
Type
Description

apikey*

String

Authentication Token

items*

String

Stringified Array of Items.

Items should contain at least 1 object.

MIN: 1 (medicines)

MAX: 20 (medicines)

Example:

"[{\"quantity\":1,\"medicine_id\":\"vVgL6Ggy5tYhqQr1qXOAzA==\"},{\"quantity\":2,\"medicine_id\":\"BXGcaezmfzcQEdh7fZVmUg==\"}]"

latitude

Number

Latitude of the customer

longitude

Number

Longitude of the customer

{
    "status_code": "1",
    "status_message": "Success",
    "datetime": "2024-09-18 11:52:03",
    "data": {
        "shipping_charges": 124,
        "items": [
            {
                "medicine_id": "BXGcaezmfzcQEdh7fZVmUg==",
                "mrp": 36.1,
                "price": 36.1,
                "available": "yes",
                "alternatives": [] // alternatives, if any
            },
            {
                "medicine_id": "vVgL6Ggy5tYhqQr1qXOAzA==",
                "mrp": 41.8,
                "price": 41.8,
                "available": "no",
                "alternatives": []
            }
        ]
    }
}

Last updated