Get Credit Balance
取得組織目前信用餘額。
Endpoint
| Item | Value |
|---|---|
| Method | GET |
| Path | /platform/organization/credit/balance |
Authentication
資訊
此 endpoint 需要在 request header 帶入 x-api-key。private key 請聯繫客服申請。
Request
Headers
| Header | Required | Description |
|---|---|---|
x-api-key | Yes | 請聯繫客服申請 private key。 |
Response
Success Response
成功時回傳 200 OK 與 OrganizationCreditBalanceResponse。
{
"balance": 880
}
Error Responses
| HTTP Status | Code | Meaning | How to Fix |
|---|---|---|---|
401 | token_validation_failed | private key 缺漏或無效。 | 確認 x-api-key header,必要時聯繫客服重新申請。 |
400 | organization_disable | 組織已停用。 | 聯繫客服確認組織狀態。 |
Examples
curl "https://api.guo-guo.com/platform/organization/credit/balance" \
-H "x-api-key: <private_key>"