mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 18:46:24 +05:00
50 lines
542 B
ReStructuredText
50 lines
542 B
ReStructuredText
Apier.GetTPIds
|
|
+++++++++++++++++++++++++
|
|
|
|
// Queries tarrif plan identities gathered from all tables.
|
|
|
|
**Request**:
|
|
|
|
Data:
|
|
::
|
|
|
|
type AttrGetTPIds struct {
|
|
}
|
|
|
|
*JSON sample*:
|
|
::
|
|
|
|
{
|
|
"id": 9,
|
|
"method": "Apier.GetTPIds",
|
|
"params": []
|
|
}
|
|
|
|
|
|
**Reply**:
|
|
|
|
Data:
|
|
::
|
|
|
|
[]string
|
|
|
|
*JSON sample*:
|
|
::
|
|
|
|
{
|
|
"error": null,
|
|
"id": 9,
|
|
"result": [
|
|
"SAMPLE_TP",
|
|
"SAMPLE_TP_2"
|
|
]
|
|
}
|
|
|
|
|
|
|
|
**Errors**:
|
|
|
|
``SERVER_ERROR`` - Server error occurred.
|
|
|
|
``NOT_FOUND`` - No tariff plans defined.
|