Skip to main content

コスタリカ — 交通違反

コスタリカの交通違反照会は 1 枚のナンバーの COSEVI 反則を読みます。plate は必須で 3–6 文字です。検証失敗は MissingParameter ではなくコード 409:invalid_params の HTTP 409 です。反則の無いナンバーは 404 NotFound です。

応答に含まれる項目​

  • plate と totalRecords
  • 状態と金額のある infractions[]

用途​

  • 車両登録の前に反則を確認します。
  • 3–6文字でないナンバーを拒否します。
  • 各反則の合計額を読みます。

API リファレンス​

Endpoint​

GET https://api.verifik.co/v2/cr/traffic-infractions

一致には plate、totalRecords、および系列、番号、日付、状態、機関、金額を持つ infractions があります。

Headers​

名前値説明
Content-Typeapplication/jsonリクエスト形式
Acceptapplication/jsonレスポンス形式
AuthorizationBearer <token>クライアント JWT

Parameters​

名前型必須例説明
platestringはい123456ナンバー。3–6文字、空白なし。無い、または長さが違うとコード 409:invalid_params です。

Request​

import axios from "axios";

const options = {
method: "GET",
url: "https://api.verifik.co/v2/cr/traffic-infractions",
params: {
plate: "123456",
},
headers: {
Accept: "application/json",
Authorization: "Bearer <your_token>",
},
};

try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error.response ? error.response.data : error.message);
}

Response​

{
"data": {
"plate": "123456",
"totalRecords": "1",
"infractions": [
{
"series": "1996",
"number": "12052",
"plate": "123456",
"status": "CANCELADA",
"totalAmount": "2000.00"
}
]
},
"signature": {
"dateTime": "November 27, 2026 12:00 PM",
"message": "Certified by Verifik.co"
}
}

注意​

  • plate は 3–6 文字です。
  • 不正なナンバーはコード 409:invalid_params です。
  • そのナンバーに反則が無いと 404 NotFound です。
  • Authorization ヘッダーに Bearer JWT を付けます。
  • JSON サンプルは項目の形を示します。実呼出しは送った値のレコードを返します。
  • キャッシュ迂回フラグは送りません。このページはクライアント向けパラメータだけを説明します。

サンドボックス​

シナリオパラメータ結果
情報源に記録ありplate: "123456"反則のある 200。
必須値が無いOmit plateコード 409:invalid_params の 409。
不明な値plate: "ABC"COSEVI に反則が無いと 404 NotFound。

401 when the bearer token is missing or rejected.