Create DIO Merchant Cart
Create Done In One (DIO) Cart for Merchants This API creates an done in one cart for merchant user passed in payload
Path Parameters
- merchant_name string required
The name of the merchant
Example: test_merchant
Header Parameters
- X-Access-Key string required
The public access key
Example: 1mg_public_access_key - X-City string required
City Name of the user
Example: Bangalore - Authorization string required
A JWT authorization token
Example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTIzNDU2Nzg5LCJuYW1lIjoiSm9zZXBoIn0.OpOSSw7e485LOP5PrzScxHb7SR6sAOMRckfFwi4rp7o
- application/json
Request Body required
user object
email stringmobile string requiredfirst_name stringlast_name stringaddress object
pincode string requiredcontact_number stringname stringstreet1 string requiredstreet2 stringtype string- prescriptions string[]
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"is_success": true,
"status_code": 200,
"data": {
"job": {
"id": 13175,
"status": "QUEUED"
}
}
}
{
"is_success": true,
"status_code": 200,
"data": {
"job": {
"id": 13175,
"status": "QUEUED"
}
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"is_success": false,
"status_code": 400,
"error": {
"message": "Payload is missing {key_name}, {internal_error_code}"
}
}
Loading...