GetVariantProfiles

GetVariantProfiles

Get list of Variant Profiles.

Requires QuoteVariants:Get permission.

Go to Roles / APIs and check on QuoteVariants:Get.

Supplementary SWAGGER documentation: api.catch-e.com/docs/#/Quote%20%2F%20Variants/getVariantProfiles

HTTP Method

GET

URL Examples

https://api.catch-e.com/qt/variant-profiles/ https://api.catch-e.com/qt/variant-profiles?variant_id=100000&page=1&page_size=5 

Input Fields

Field

Format

Notes

Mandatory

variant_id

string

Limit results to matching variant

No

page

string

Page number (default: 1)

No

page_size

string

Records per page (default: 25)

No

Successful Output

{ "_links": { "self": { "href": "https://api.catch-e.com/qt/variant-profiles/?variant_id=100000&page=1" }, "first": { "href": "https://api.catch-e.com/qt/variant-profiles/?variant_id=100000" }, "last": { "href": "https://api.catch-e.com/qt/variant-profiles/?variant_id=100000&page=1" } }, "_embedded": { "items": [ { "variant_profile_id": "104693", "variant_id": "100000", "maintenance_service_profile_id": "100000", "tyre_id": "100523", "tyres_per_set": 4, "tyre_km_interval": 40000, "vehicle_type_id": "100001", "date": "2007-01-21", "delivery_metro": 600, "delivery_country": 800, "residual_adjustment_rate": 0, "insurance_type_id": "100001", "relief_vehicle": 10, "_links": { "self": { "href": "https://api.catch-e.com/qt/variant-profiles/104693" } } } ] }, "page_count": 1, "page_size": 25, "total_items": 1, "page": 1 } 

PatchVariant

Edit variant and/or variant profile.

Requires QuoteVariants:Update permission.

Go to Roles / APIs and check on QuoteVariants:Update.

Note: Not configured for external use. Contact Account Manager to discuss access.

Supplementary SWAGGER documentation: api.catch-e.com/docs/#/Quote%20%2F%20Variants/patchVariants

HTTP Method

PATCH

URL Examples

https://api.catch-e.com/qt/variants/{variant_id} 

Headers

Key

Format

Notes

Mandatory

Audit-User-Id

string

Pass user_id to create audit records. Requires Audit:UserIdOverride permission.

No

Time-Zone

string

Named zones (Europe/Helsinki, US/Eastern) or offset (+10:00, -6:00, +05:30). Default: UTC

No

Body Fields (JSON)

Field

Format

Notes

Mandatory

model_id

string

Refer GetVariantModels

No

model_year

number

No

variant_code

string

Must be unique

No

model_month

number

No

build_year

number

No

description

string

No

short_description

string

No

series

string

No

service_profile_id

string

Used for 1link Interface

No

vehicle_type_id

string

Refer GetVehicleTypes

No

body_type_id

string

Refer variant body types

No

configuration

string

No

variant_name

string

No

variant_sub_name

string

No

transmission

string

No

gears

number

No

gear_location

string

No

doors

number

No

seats

number

No

engine_cc

number

No

engine_litres

string

No

cylinders

number

No

valves_per_cylinder

number

No

drive_type

string

No

engine_cycle

string

No

engine_type

string

No

engine_configuration

string

No

fuel_delivery

string

No

cam

string

No

steering

string

No

induction

string

No

fuel_type_translation_id

string

Refer GetFuelTypeTranslations

No

power_kw

number

No

power_rpm

number

No

torque

number

No

torque_rpm

number

No

wheel_base

number

No

weight

number

No

payload

number

No

towing_capacity

number

No

kerb_weight

number

No

country

string

No

fuel_capacity

number

No

front_tyre_size

string

No

rear_tyre_size

string

No

engine_code

string

No

power_plant_type_id

string

Refer GetPowerPlantTypes

No

manufacturer_model_code

string

No

acceleration

number

No

battery_capacity

string

No

battery_charge_socket_type

string

No

battery_ac_charge_outlet

string

No

battery_ac_fast_charge

string

No

battery_dc_fast_charge

string

No

battery_warranty_years

string

No

battery_warranty_kms

string

No

electric_engine_km_range

string

No

energy_consumption

string

No

trade_minimum

string

No

fuel_metro

number

No

fuel_country

number

No

fuel_combined

number

No

co2_emissions

number

No

warranty_years

number

No

warranty_kms

number

No

service_kms

number

No

service_mths

number

No

list_price_gross

number

No

list_price_net

number

No

list_price_gst

number

No

average_wholesale_net

number

No

average_retail_net

number

No

good_wholesale_net

number

No

good_retail_net

number

No

greenhouse_rating

number

No

air_pollution_rating

number

No

overall_green_star_rating

number

No

ancap_rating

number

No

vfacts_class

string

No

vfacts_segment

string

No

current_vehicle_flag

string

Y or N

No

variant_code_previous

string

No

variant_code_next

string

No

external_reference

string

No

data_source_id

string

Refer variant data sources

Yes

status_flag

string

Defaults to pending

No

Variant Profile Section (Optional but Highly Recommended)

Nested object for variant profile configuration.

Field

Format

Notes

Mandatory

variant_profile.maintenance_service_profile_id

string

No

variant_profile.tyre_id

string

No

variant_profile.tyres_per_set

number

No

variant_profile.tyre_km_interval

number

No

variant_profile.vehicle_type_id

string

No

variant_profile.date

date

Format: yyyy-mm-dd. Defaults to 0000-00-00.

No

variant_profile.delivery_metro

number

No

variant_profile.delivery_country

number

No

variant_profile.residual_adjustment_rate

number

No

variant_profile.insurance_type_id

string

No

variant_profile.relief_vehicle

number

No

Input Example

[ { "model_id": "string", "model_year": 0, "variant_code": "string", "model_month": 0, "build_year": 0, "description": "string", "short_description": "string", "series": "string", "service_profile_id": "string", "vehicle_type_id": "string", "body_type_id": "string", "configuration": "string", "variant_name": "string", "variant_sub_name": "string", "transmission": "string", "gears": 0, "gear_location": "string", "doors": 0, "seats": 0, "engine_cc": 0, "engine_litres": "string", "cylinders": 0, "valves_per_cylinder": 0, "drive_type": "string", "engine_cycle": "string", "engine_type": "string", "engine_configuration": "string", "fuel_delivery": "string", "cam": "string", "steering": "string", "induction": "string", "fuel_type_translation_id": "string", "power_kw": 0, "power_rpm": 0, "torque": 0, "torque_rpm": 0, "wheel_base": 0, "weight": 0, "payload": 0, "towing_capacity": 0, "kerb_weight": 0, "country": "string", "fuel_capacity": 0, "front_tyre_size": "string", "rear_tyre_size": "string", "engine_code": "string", "power_plant_type_id": "string", "manufacturer_model_code": "string", "acceleration": 0, "fuel_metro": 0, "fuel_country": 0, "fuel_combined": 0, "co2_emissions": 0, "warranty_years": 0, "warranty_kms": 0, "service_kms": 0, "service_mths": 0, "list_price_gross": 0, "list_price_net": 0, "list_price_gst": 0, "average_wholesale_net": 0, "average_retail_net": 0, "good_wholesale_net": 0, "good_retail_net": 0, "greenhouse_rating": 0, "air_pollution_rating": 0, "overall_green_star_rating": 0, "ancap_rating": 0, "vfacts_class": "string", "vfacts_segment": "string", "current_vehicle_flag": "N", "variant_code_previous": "string", "variant_code_next": "string", "variant_profile": { "maintenance_service_profile_id": "string", "tyre_id": "string", "tyres_per_set": 0, "tyre_km_interval": 0, "vehicle_type_id": "string", "date": "2023-04-20", "delivery_metro": 0, "delivery_country": 0, "residual_adjustment_rate": 0, "insurance_type_id": "string", "relief_vehicle": 0 }, "external_reference": "string", "data_source_id": "string", "status_flag": "pending" } ] 

Response - 201 OK

Successful response returns all fields in qt_variants and qt_variant_profiles tables.

{ "acceleration": 5.7, "air_pollution_rating": 6.1, "ancap_rating": 5, "average_retail_net": 50000.77, "average_wholesale_net": 40000.77, "body_type_id": "100006", "build_year": 1970, "cam": "DOHC", "co2_emissions": 177, "configuration": "Config", "country": "Aussie", "current_vehicle_flag": "Y", "cylinders": 8, "data_source_id": "100000", "description": "An oldie but a good vehicle nonetheless", "doors": 5, "drive_type": "Rear Wheel Drive", "engine_cc": 2777, "engine_code": "ENGINECODE", "engine_configuration": "in-line", "engine_cycle": "MP1970V01", "engine_litres": "7", "engine_type": "Piston", "external_reference": "ExtReference2", "front_tyre_size": "235/60 R22", "fuel_capacity": 77, "fuel_combined": 9.1, "fuel_country": 8.1, "fuel_delivery": "MPI", "fuel_metro": 10.1, "fuel_type_translation_id": "100033", "gear_location": "Floor", "gears": 8, "good_retail_net": 55000.77, "good_wholesale_net": 45000.77, "greenhouse_rating": 5.1, "induction": "Aspirated", "kerb_weight": 2377, "list_price_gross": 77770.77, "list_price_gst": 7770.08, "list_price_net": 69930.69, "manufacturer_model_code": "MPTST1970", "model_id": "100569", "model_month": 12, "model_year": 1981, "overall_green_star_rating": 7.1, "payload": 477, "power_kw": 444, "power_plant_type_id": "11989672791877091928", "power_rpm": 4444, "rear_tyre_size": "235/60 R22", "seats": 5, "series": "One", "service_kms": 15000, "service_mths": 12, "service_profile_id": "0", "short_description": "An oldie but a goody", "status_flag": "active", "steering": "Rack & Pinion", "torque": 277, "torque_rpm": 4777, "towing_capacity": 3577, "transmission": "Automatic", "valves_per_cylinder": 4, "variant_code": "MPAU1980APIVARIANT1", "variant_code_next": "NOT Applicable", "variant_code_previous": "", "variant_id": "182511", "variant_name": "GoGo Gone", "variant_profiles": { "variant_profile_id": "181180", "variant_id": "182511", "maintenance_service_profile_id": "100012", "tyre_id": "100001", "tyres_per_set": 4, "tyre_km_interval": 45001, "vehicle_type_id": "100001", "date": "1971-01-01", "delivery_metro": 777.77, "delivery_country": 888.88, "residual_adjustment_rate": 0.5, "insurance_type_id": "100004", "relief_vehicle": 0 }, "variant_sub_name": "Faster", "vehicle_type_id": "100001", "vfacts_class": "Medium", "vfacts_segment": "Medium2", "warranty_kms": 200000, "warranty_years": 5, "weight": 1077, "wheel_base": 2777, "_links": { "self": { "href": "https://api.catch-e.com/qt/variants/182511" } } } 

Response - 422 Unprocessable Entity

Variant Code already exists:

{ "validation_messages": [ { "variant_code": { "recordFound": "A record matching the input was found" } } ], "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unprocessable Entity", "status": 422, "detail": "Failed Validation" } 

Variant Code already exists.

Response - 403 Forbidden

"detail": "Forbidden" 

You do not have permissions for this request.