アクション数の取得

get

/customercare/v1/{customerId}/action

ユーザーのアクションの数を取得します。アクションはrule.action.enumの列挙アクションのいずれかである必要があります。

リクエスト

パス・パラメータ
問合せパラメータ

この操作にはリクエスト本文はありません。

先頭に戻る

レスポンス

サポートされているメディア・タイプ

200レスポンス

成功
本文()
ルート・スキーマ: ActionCountResponse
型: object
ソースを表示
ネストされたスキーマ: StatusResponse
型: object
APIコールのステータス情報
ソースを表示

400レスポンス

無効な入力

404レスポンス

顧客IDが見つかりません
先頭に戻る

次の例は、ユーザーが特定のアクションを実行した回数を確認するサンプルのリクエストとレスポンスを示しています。

JSON形式でアクション数を取得するcURLコマンド

curl --location --request GET '<RISKCC>/customercare/v1/{customerId}/action?requestId=d09b6524-2ab7-46e4-ba16-2762de499009testuser3416/action?requestId=d09b6524-2ab7-46e4-ba16-2762de499009&actionEnumId=1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'  \

JSON形式のサンプル・レスポンス

{
  "actionCount": 1,
  "statusResponse": {
    "responseCode": "0",
    "responseMessage": "",
    "status": true
  }
}

XML形式でアクション数を取得するcURLコマンド

curl --location --request GET '<RISKCC>/customercare/v1/{customerId}/action?requestId=d09b6524-2ab7-46e4-ba16-2762de499009testuser3416/action?requestId=d09b6524-2ab7-46e4-ba16-2762de499009&actionEnumId=1' \
--header 'Content-Type: application/xml' \
--header 'Accept: application/xml' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'

XML形式のサンプル・レスポンス

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ActionCountResponse>
    <actionCount>1</actionCount>
    <statusResponse>
    <responseCode>0</responseCode>
    <responseMessage></responseMessage>    
    <status>true</status>
    </statusResponse>
</ActionCountResponse>
先頭に戻る