Перейти до вмісту
AstroWay/api v2.172.2 · docs
усі системи в нормі

Wealth Palace (Caibo)

POST
/ziwei/palace-wealth
request.sh
curl -X POST https://api.astroway.info/v1/ziwei/palace-wealth \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "date": "1990-06-15" }'

Income, material prosperity.

Media type application/json
object
date required
string
/^\d{4}-\d{2}-\d{2}$/
time
string
/^\d{2}:\d{2}(:\d{2})?$/
timezoneOffset
number
>= -14 <= 14
Example
{
"date": "1990-06-15"
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
solarYear
number
nullable
animal
string
nullable
palace
object
key
string
nullable
english
string
nullable
pinyin
string
nullable
chinese
string
nullable
theme
string
nullable
rules
Array<string>
nullable
disclaimer
string
nullable
Example
{
"ok": true,
"data": {
"solarYear": 1990,
"animal": "Horse",
"palace": {
"key": "wealth",
"english": "Wealth",
"pinyin": "Caibo",
"chinese": "财帛宫",
"theme": "Income, material prosperity",
"rules": [
"Earning capacity"
]
},
"disclaimer": "Zi Wei Dou Shu reference tables. Palace meanings and the 14 main stars here are static and do not vary with the birth date; only solarYear and animal derive from it. Star placement lives on POST /v1/ziwei/chart, which computes the soul and body palaces, the five-element class and every star from the lunar date and the birth hour. Where schools disagree we follow 中州派 (Zhongzhou, the Wang Tingzhi corpus); this is stated up front so results are comparable against the calculators built on the same tables."
}
}

Validation error

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_INPUT",
"message": "Validation failed: date: Date must be YYYY-MM-DD",
"details": [
{
"path": "date",
"message": "Date must be YYYY-MM-DD"
}
]
}
}

Missing or invalid API key

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
}
Корисно?