跳至主要内容

Get Credit Balance

取得組織目前信用餘額。

Endpoint​

ItemValue
MethodGET
Path/platform/organization/credit/balance

Authentication​

資訊

此 endpoint 需要在 request header 帶入 x-api-key。private key 請聯繫客服申請。

Request​

Headers​

HeaderRequiredDescription
x-api-keyYes請聯繫客服申請 private key。

Response​

Success Response​

成功時回傳 200 OK 與 OrganizationCreditBalanceResponse。

{
"balance": 880
}

Error Responses​

HTTP StatusCodeMeaningHow to Fix
401token_validation_failedprivate key 缺漏或無效。確認 x-api-key header,必要時聯繫客服重新申請。
400organization_disable組織已停用。聯繫客服確認組織狀態。

Examples​

curl "https://api.guo-guo.com/platform/organization/credit/balance" \
-H "x-api-key: <private_key>"

References​