POST
/
v1
/
order
/
add_customer_order
Add Customer Order
curl --request POST \
  --url https://dev-api-be.localwell.in/app/partner/v1/order/add_customer_order \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-pharmacy-id: <x-pharmacy-id>' \
  --data '{
  "customer_id": 25,
  "products": [
    {
      "medicine_id": 12552,
      "order_quantity": 10,
      "sale_rate": 100
    }
  ],
  "order_notes": "Order Notes Here",
  "doctor_name": "John Doe",
  "partner_order_identifier": "ORD-A1245"
}'
{
  "data": {
    "customer_order_id": 20
  },
  "statuscode": 200,
  "message": "Okay"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-pharmacy-id
integer
required

Pharmacy ID passed in the header

Body

application/json
customer_id
number
required
Example:

25

products
object[]
required
order_notes
string
required
Example:

"Order Notes Here"

doctor_name
string
Example:

"John Doe"

partner_order_identifier
string
Example:

"ORD-A1245"

Response

Order placed successfully

data
object
statuscode
integer
Example:

200

message
string
Example:

"Okay"