Get Bill Item Types
GET
/web/constants/bill-item-types NoneReturns a list of bill item types that categorize individual line items within a bill. The response is localized based on the Accept-Language request header.
Authentication
No authentication required. This is a public endpoint.
Request Parameters
None.
Success Response
Success 200
{
"code": "2000",
"message": "SUCCESS",
"data": [
{
"code": "SERVICE_FEE",
"value": 36010601,
"label": "Service Fee"
},
{
"code": "TRANSACTION_FEE",
"value": 36010602,
"label": "Transaction Fee"
}
]
}Response Fields
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Required | Enum name identifier (e.g., "SERVICE_FEE") |
value | integer | Required | 8-digit numeric code for API usage |
label | string | Required | Localized display name based on Accept-Language header |
Error Responses
| HTTP Status | Code | Message | Description |
|---|---|---|---|
| 500 | "5000" | "INTERNAL_SERVER_ERROR" | Unexpected server error |
Notes
- The
labelfield is localized; sendAccept-Language: zh-CNfor Chinese labels.