openapi: 3.2.0
info:
title: VIN Decoder Get Balance API
description: Break down vehicle identification number into vehicle specification
termsOfService: https://vincario.com/terms-and-conditions/
contact:
name: Vincario
url: https://vincario.com/
email: support@vincario.com
version: '3.2'
servers:
- url: https://api.vincario.com/
tags:
- name: Get Balance
paths:
/3.2/{API_KEY}/{CONTROL_SUM}/balance.{format}:
get:
operationId: Get_Balance
tags:
- Get Balance
summary: Get Balance
description: 'Get balance returns an object, where the key is a lookup type and value is the balance. The types can be:
API Decode
API Stolen Check
API Vehicle Market Value
API OEM VIN Lookup
API OEM Service History'
parameters:
- name: API_KEY
in: path
description: Your API key
required: true
schema:
type: string
- name: CONTROL_SUM
in: path
description: 'The CONTROL_SUM for this endpoint is generated by taking the first 10 characters of the SHA1 hash of your VIN, the operation ID ''balance'', API key, and secret key, concatenated in that order.
For instance: $controlSum = substr(sha1("{$vin}|balance|{$apiKey}|{$secretKey}"), 0, 10);
For a complete guide, please refer to the How to create a request.
'
required: true
schema:
type: string
- name: format
in: path
description: Response format (json or html)
required: true
style: simple
schema:
type: string
default: json
responses:
'200':
description: 'Rreturns an object, where the key is a lookup type and value is the balance. The types can be:
{\n \"API Decode\": integer,\n \"API Stolen Check\": integer,\n \"API Vehicle Market Value\": integer,\n \"API OEM VIN Lookup\": integer,\n \"API OEM Service History\": integer\n}\n"
examples:
Success response:
value: '{"API Decode":218,"API Stolen Check":205,"API Vehicle Market Value":205,"API OEM VIN Lookup":0,"API OEM Service History":0}'
When you use an incorrect API key:
value: '{"error":true,"message":"Unknown API Key"}'
When you use an incorrect control sum:
value: '{"error":true,"message":"Invalid Control sum"}'
When you reach a limit of requests per minute:
value: '{"error":true,"message":"You''ve reached limit of 60 requests per minute. Contact us at info@vincario.com for a customized limit."}'
'404':
description: The route could not be found.
'500':
description: Unexpected internal errors.
externalDocs:
description: Vincario API Documentation
url: https://vincario.com/api-docs/3.2/