key 或请求体 api_key 中传入用户 API Key;要求会话的接口还需传入 session_token。Content-Type: application/json)或表单编码;字段含义、必填性和示例以本接口定义为准。| HTTP 状态 | errno | 英文错误信息 | 中文释义 |
|---|---|---|---|
| 400 | 400001 | A required parameter is missing. | 缺少必填参数。 |
| 401 | 401002 | The API key is invalid. | API Key 无效。 |
request_id,排查问题时请一并提供该值。key: ********************{
"api_key": "string",
"medicine_name": "string",
"total_quantity": 0,
"property1": "string",
"property2": "string"
}curl --location 'https://qiuxian.net.cn//index.php?route=api%2Fmedication%2Fadd_inventory&key=%3Capi-key%3E' \
--header 'Content-Type: application/json' \
--data '{
"api_key": "string",
"medicine_name": "string",
"total_quantity": 0,
"property1": "string",
"property2": "string"
}'{
"success": false,
"errno": 400001,
"message": "A required parameter is missing.",
"error": "A required parameter is missing.",
"message_zh": "缺少必填参数。",
"request_id": "req_0123456789abcdef0123456789abcdef"
}