Skip to main content
Quote / Variants

getVariantBodyType

getVariantBodyType

Overview

This method will return requested body type details.

Permissions

To run this API, the nominated 'web-services' role needs to be given permission.
If you are not actively using the API, leave the permission off for better security.
Go to Roles / Apis and check on QuoteVariants:Get

HTTP Method

Use the HTTP Method 'GET' for consuming this web service.

Input Fields (Header)

  • Header should contain the 'Accept' Key with the Value = 'application/json' or 'application/vnd.catch-e-api.v1+json'.

Input Fields (Body)

Field

Format

Notes

Mandatory

body_type_id

string

Body type id

Yes

Input URL Examples

https://api.test.catch-e.com/qt/body-types/100001 

(Successful) Output Example

{ "body_type_id": 100001, "body_type": "CAB CHASSIS", "_links": { "self": { "href": "https://api.test.catch-e.com/qt/body-types/100001" } } } 

Error Codes

Detail

Comments

401 - Unauthorized

"detail": "Unauthorized"

Login token has expired. You need to generate new token.

403 - Forbidden

"detail": "Forbidden"

You do not have permissions for this request.

404 - Not Found

"detail": "Invalid body type id"

Entered body_type_id cannot be found.