Get CDR Options

Query the enablement status of CDR options, such as fuzzy search.

Request URL

GET {base_url}/{api_path}/cdr/getoption?access_token={access_token}

Request parameters

No request parameters. Send the request URL directly to get CDR options.

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.
data Object<Options> The information of the CDR options.
Options
Parameter Type Description
enb_fuzzy_search Integer Whether to search for the fuzzy equivalent for the phone number.
  • 0: Disabled
  • 1: Enabled

Examples

Request example

GET /openapi/v1.0/cdr/getoption?access_token=Kf8nDCJfhqYjMOlUdmiqcnezn1NP7xzn HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "data": {
        "enb_fuzzy_search": 0
    }
}