Vehicle

A Vehicle object is a specific instance of a vehicle for your Customer. A Vehicle typically will have a Vehicle Identification Number (VIN) and License Plate as well as describe other sepcific characteristics as the the license plate State or Providence, mileage, etc.


GET/v3/customer/:id/vehicle

Find Customer Vehicles

Returns an array of vehicles assigned to the passed in customer ID

URL parameters

  • Name
    id
    Type
    string Required
    Description
    The customer id

Query String parameters

  • Name
    collate
    Type
    boolean
    Description
    if set to true, use natural sort collation when used with orderBy
  • Name
    ids
    Type
    array
    Description
  • Name
    limit
    Type
    number
    Description
    the limit on the number of records to return
  • Name
    orderby
    Type
    string
    Description
    the order instructions for the result
  • Name
    params
    Type
    string
    Description
    additional request specific params
  • Name
    skip
    Type
    number
    Description
    the number of records to skip for a paginated result
  • Name
    where
    Type
    string
    Description
    an object to use for filtering the results

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    array Required
    Description
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    meta
    Type
    object
    Description
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Properties for meta object

  • Name
    hasMore
    Type
    boolean
    Description
    if there are more records available
  • Name
    lastRefreshedAt
    Type
    string
    Description
    the last refreshed at timestamp
  • Name
    sums
    Type
    object
    Description
  • Name
    total
    Type
    number
    Description
    the total number of records

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/customer/:id/vehicle
curl https://api.shopmonkey.cloud/v3/customer/:id/vehicle \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "data": [
    {
      "appointmentCount": 1,
      "baseId": null,
      "bedLength": null,
      "bodyStyle": null,
      "bodyStyleId": null,
      "coalescedVINorHIN": null,
      "color": null,
      "companyId": "companyId",
      "computed_ymm": null,
      "configurationStatus": null,
      "createdDate": "createdDate",
      "customPhoto": true,
      "deferredServiceCount": 1,
      "deleted": true,
      "deletedDate": null,
      "deletedReason": null,
      "deletedUserId": null,
      "drivetrain": null,
      "drivetype": null,
      "drivetypeId": null,
      "drivingCondition": null,
      "engine": null,
      "engineId": null,
      "externalId": null,
      "frontTireSize": null,
      "hin": null,
      "hqVehicleId": null,
      "id": "id",
      "imported": true,
      "lastServicedDate": null,
      "length": null,
      "lengthUnit": null,
      "licensePlate": null,
      "licensePlateCountry": "licensePlateCountry",
      "licensePlateState": null,
      "locationIds": [
        "locationIds"
      ],
      "make": null,
      "makeId": null,
      "messageCount": 1,
      "mileage": null,
      "mileageLogCount": 1,
      "mileageUnit": "mileageUnit",
      "model": null,
      "modelId": null,
      "name": null,
      "note": "note",
      "odometer": true,
      "orderCount": 1,
      "originLocationId": null,
      "ownerCount": 1,
      "preferredLaborGuide": "preferredLaborGuide",
      "productionDate": null,
      "rearTireSize": null,
      "region": null,
      "serial": null,
      "size": "size",
      "stockPhoto": true,
      "submodel": null,
      "submodelId": null,
      "tirePressureLogCount": 1,
      "transmission": null,
      "transmissionId": null,
      "transmissionMfrCode": null,
      "transmissionSpeed": null,
      "type": null,
      "unit": null,
      "updatedDate": null,
      "vcdbId": null,
      "vcdbVehicleId": null,
      "vin": null,
      "year": null
    }
  ],
  "success": true
}

GET/v3/vehicle/:id

Find Vehicle

Find one Vehicle by id

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id for the object to retrieve

Produces

The response content type: application/json

200 Response

  • Name
    data
    Type
    object Required
    Description
    Vehicle schema
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Properties for data object

  • Name
    appointmentCount
    Type
    integer Required
    Description
  • Name
    baseId
    Type
    integer Required
    Description
    vcdb base id
  • Name
    bedLength
    Type
    string Required
    Description
  • Name
    bodyStyle
    Type
    string Required
    Description
  • Name
    bodyStyleId
    Type
    integer Required
    Description
    vcdb body style id
  • Name
    coalescedVINorHIN
    Type
    string Required
    Description
  • Name
    color
    Type
    one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
    Description
  • Name
    companyId
    Type
    string Required
    Description
  • Name
    computed_ymm
    Type
    string Required
    Description
  • Name
    configurationStatus
    Type
    one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
    Description
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    customPhoto
    Type
    boolean Required
    Description
  • Name
    deferredServiceCount
    Type
    integer Required
    Description
  • Name
    deleted
    Type
    boolean Required
    Description
    if the record has been deleted
  • Name
    deletedDate
    Type
    string Required
    Description
    the date that the record was deleted or null if not deleted
  • Name
    deletedReason
    Type
    string Required
    Description
    the reason that the record was deleted
  • Name
    deletedUserId
    Type
    string Required
    Description
    the user that deleted the record or null if not deleted
  • Name
    drivetrain
    Type
    one of: RWD, FWD, FourWD, AWD Required
    Description
  • Name
    drivetype
    Type
    string Required
    Description
  • Name
    drivetypeId
    Type
    integer Required
    Description
    vcdb drivetype id
  • Name
    drivingCondition
    Type
    one of: Normal, Severe Required
    Description
  • Name
    engine
    Type
    string Required
    Description
  • Name
    engineId
    Type
    integer Required
    Description
    vcdb engine id
  • Name
    externalId
    Type
    string Required
    Description
    an id that can be used to reference the vehicle in an external system
  • Name
    frontTireSize
    Type
    string Required
    Description
    custom front tire size override value
  • Name
    hin
    Type
    string Required
    Description
    Vessel hull identification number
  • Name
    hqVehicleId
    Type
    string Required
    Description
    /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
  • Name
    id
    Type
    string Required
    Description
  • Name
    imported
    Type
    boolean Required
    Description
  • Name
    labels
    Type
    object Required
    Description
  • Name
    lastServicedDate
    Type
    string Required
    Description
  • Name
    length
    Type
    number Required
    Description
  • Name
    lengthUnit
    Type
    one of: Ft, M Required
    Description
  • Name
    licensePlate
    Type
    string Required
    Description
  • Name
    licensePlateCountry
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    licensePlateState
    Type
    string Required
    Description
  • Name
    locationIds
    Type
    array Required
    Description
  • Name
    make
    Type
    string Required
    Description
    holds Hull make for vessel
  • Name
    makeId
    Type
    integer Required
    Description
    vcdb make id
  • Name
    messageCount
    Type
    integer Required
    Description
  • Name
    meta
    Type
    object Required
    Description
    the metadata about the most recent change to the row
  • Name
    metadata
    Type
    object
    Description
    metadata reserved for customers to control
  • Name
    mileage
    Type
    number Required
    Description
  • Name
    mileageLogCount
    Type
    integer Required
    Description
  • Name
    mileageUnit
    Type
    one of: Mile, Kilometer Required
    Description
  • Name
    model
    Type
    string Required
    Description
  • Name
    modelId
    Type
    integer Required
    Description
    vcdb model id
  • Name
    name
    Type
    string Required
    Description
    Custom vehicle name / Vessel registered name
  • Name
    note
    Type
    string Required
    Description
  • Name
    odometer
    Type
    boolean Required
    Description
  • Name
    orderCount
    Type
    integer Required
    Description
  • Name
    originLocationId
    Type
    string Required
    Description
    the location that created the vehicle
  • Name
    ownerCount
    Type
    integer Required
    Description
  • Name
    preferredLaborGuide
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    productionDate
    Type
    string Required
    Description
  • Name
    rearTireSize
    Type
    string Required
    Description
    custom rear tire size override value
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    serial
    Type
    string Required
    Description
  • Name
    size
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    stockPhoto
    Type
    boolean Required
    Description
  • Name
    submodel
    Type
    string Required
    Description
  • Name
    submodelId
    Type
    integer Required
    Description
    vcdb submodel id
  • Name
    tirePressureLogCount
    Type
    integer Required
    Description
  • Name
    transmission
    Type
    one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
    Description
  • Name
    transmissionId
    Type
    integer Required
    Description
    vcdb transmission id
  • Name
    transmissionMfrCode
    Type
    string Required
    Description
  • Name
    transmissionSpeed
    Type
    string Required
    Description
  • Name
    type
    Type
    one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
    Description
  • Name
    unit
    Type
    string Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    vcdbId
    Type
    integer Required
    Description
    vcdb id
  • Name
    vcdbVehicleId
    Type
    string Required
    Description
    id of vcdb_vehicle record
  • Name
    vin
    Type
    string Required
    Description
  • Name
    year
    Type
    integer Required
    Description
  • Name
    customFields
    Type
    object Deprecated
    Description
    DEPRECATED: custom fields as JSON object. This is no longer supported.
  • Name
    engines
    Type
    array
    Description
  • Name
    tirePressureLogs
    Type
    array Required
    Description
  • Name
    mileageLogs
    Type
    array Required
    Description
  • Name
    connectedLocationIds
    Type
    array
    Description
  • Name
    currentOwnerName
    Type
    string
    Description
    Current owner name
  • Name
    owners
    Type
    array
    Description

Properties for meta object

  • Name
    userId
    Type
    string
    Description
    the user id that made the most recent change
  • Name
    sessionId
    Type
    string
    Description
    the session id for the most recent change
  • Name
    version
    Type
    number
    Description
    a monotonically increasing number for the most recent change

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/:id
curl https://api.shopmonkey.cloud/v3/vehicle/:id \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "data": {
    "appointmentCount": 1,
    "baseId": null,
    "bedLength": null,
    "bodyStyle": null,
    "bodyStyleId": null,
    "coalescedVINorHIN": null,
    "color": null,
    "companyId": "companyId",
    "computed_ymm": null,
    "configurationStatus": null,
    "createdDate": "createdDate",
    "customPhoto": true,
    "deferredServiceCount": 1,
    "deleted": true,
    "deletedDate": null,
    "deletedReason": null,
    "deletedUserId": null,
    "drivetrain": null,
    "drivetype": null,
    "drivetypeId": null,
    "drivingCondition": null,
    "engine": null,
    "engineId": null,
    "externalId": null,
    "frontTireSize": null,
    "hin": null,
    "hqVehicleId": null,
    "id": "id",
    "imported": true,
    "lastServicedDate": null,
    "length": null,
    "lengthUnit": null,
    "licensePlate": null,
    "licensePlateCountry": "licensePlateCountry",
    "licensePlateState": null,
    "locationIds": [
      "locationIds"
    ],
    "make": null,
    "makeId": null,
    "messageCount": 1,
    "meta": {
      "userId": "userId",
      "sessionId": "sessionId",
      "version": 1
    },
    "mileage": null,
    "mileageLogCount": 1,
    "mileageUnit": "mileageUnit",
    "model": null,
    "modelId": null,
    "name": null,
    "note": "note",
    "odometer": true,
    "orderCount": 1,
    "originLocationId": null,
    "ownerCount": 1,
    "preferredLaborGuide": "preferredLaborGuide",
    "productionDate": null,
    "rearTireSize": null,
    "region": null,
    "serial": null,
    "size": "size",
    "stockPhoto": true,
    "submodel": null,
    "submodelId": null,
    "tirePressureLogCount": 1,
    "transmission": null,
    "transmissionId": null,
    "transmissionMfrCode": null,
    "transmissionSpeed": null,
    "type": null,
    "unit": null,
    "updatedDate": null,
    "vcdbId": null,
    "vcdbVehicleId": null,
    "vin": null,
    "year": null,
    "customFields": {},
    "engines": [
      {
        "id": "id",
        "make": "make",
        "model": "model",
        "noHoursMeter": true
      }
    ],
    "tirePressureLogs": [
      {
        "companyId": "companyId",
        "createdDate": "createdDate",
        "frontLeft": null,
        "frontRight": null,
        "id": "id",
        "locationId": "locationId",
        "orderId": "orderId",
        "rearLeft": null,
        "rearRight": null,
        "updatedDate": null,
        "vehicleId": "vehicleId",
        "order": {
          "number": "number"
        }
      }
    ],
    "mileageLogs": [
      {
        "companyId": "companyId",
        "createdDate": "createdDate",
        "id": "id",
        "locationId": "locationId",
        "mileage": 1,
        "mileageDate": "mileageDate",
        "orderId": null,
        "type": "type",
        "updatedDate": null,
        "vehicleId": "vehicleId",
        "order": {
          "number": "number"
        }
      }
    ],
    "connectedLocationIds": [
      "connectedLocationIds"
    ],
    "currentOwnerName": "currentOwnerName",
    "owners": [
      "owners"
    ]
  },
  "success": true
}

PUT/v3/vehicle/:id

Update Vehicle

Update a Vehicle

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id for the vehicle

Body parameters

Consumes

The following content type is required: application/json

  • Name
    baseId
    Type
    integer
    Description
    vcdb base id
  • Name
    bedLength
    Type
    string
    Description
  • Name
    bodyStyle
    Type
    string
    Description
  • Name
    bodyStyleId
    Type
    integer
    Description
    vcdb body style id
  • Name
    color
    Type
    one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other
    Description
  • Name
    configurationStatus
    Type
    one of: Custom, Incomplete, Invalid, NotSupported, Valid
    Description
  • Name
    customFields
    Type
    object
    Description
    custom field values
  • Name
    deleted
    Type
    boolean
    Description
    if the record has been deleted
  • Name
    deletedReason
    Type
    string
    Description
    the reason that the record was deleted
  • Name
    deletedUserId
    Type
    string
    Description
    the user that deleted the record or null if not deleted
  • Name
    drivetype
    Type
    string
    Description
  • Name
    drivetypeId
    Type
    integer
    Description
    vcdb drivetype id
  • Name
    drivingCondition
    Type
    one of: Normal, Severe
    Description
  • Name
    engine
    Type
    string
    Description
  • Name
    engineId
    Type
    integer
    Description
    vcdb engine id
  • Name
    externalId
    Type
    string
    Description
    an id that can be used to reference the vehicle in an external system
  • Name
    frontTireSize
    Type
    string
    Description
    custom front tire size override value
  • Name
    hin
    Type
    string
    Description
    Vessel hull identification number
  • Name
    length
    Type
    number
    Description
  • Name
    lengthUnit
    Type
    one of: Ft, M
    Description
  • Name
    licensePlate
    Type
    string
    Description
  • Name
    licensePlateCountry
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW
    Description
  • Name
    licensePlateState
    Type
    string
    Description
  • Name
    make
    Type
    string
    Description
    holds Hull make for vessel
  • Name
    makeId
    Type
    integer
    Description
    vcdb make id
  • Name
    mileageUnit
    Type
    one of: Mile, Kilometer
    Description
  • Name
    model
    Type
    string
    Description
  • Name
    modelId
    Type
    integer
    Description
    vcdb model id
  • Name
    name
    Type
    string
    Description
    Custom vehicle name / Vessel registered name
  • Name
    note
    Type
    string
    Description
  • Name
    odometer
    Type
    boolean
    Description
  • Name
    originLocationId
    Type
    string
    Description
    the location that created the vehicle
  • Name
    preferredLaborGuide
    Type
    one of: HeavyDuty, LightDuty, Other
    Description
  • Name
    productionDate
    Type
    string
    Description
  • Name
    rearTireSize
    Type
    string
    Description
    custom rear tire size override value
  • Name
    serial
    Type
    string
    Description
  • Name
    size
    Type
    one of: HeavyDuty, LightDuty, Other
    Description
  • Name
    submodel
    Type
    string
    Description
  • Name
    submodelId
    Type
    integer
    Description
    vcdb submodel id
  • Name
    transmission
    Type
    one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch
    Description
  • Name
    transmissionId
    Type
    integer
    Description
    vcdb transmission id
  • Name
    transmissionMfrCode
    Type
    string
    Description
  • Name
    transmissionSpeed
    Type
    string
    Description
  • Name
    type
    Type
    one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon
    Description
  • Name
    unit
    Type
    string
    Description
  • Name
    vcdbId
    Type
    integer
    Description
    vcdb id
  • Name
    vin
    Type
    string
    Description
  • Name
    year
    Type
    integer
    Description
  • Name
    drivetrain
    Type
    one of: 'AWD', 'FWD', 'RWD', '4WD', 'FourWD', null
    Description
  • Name
    engines
    Type
    array
    Description
  • Name
    mileage
    Type
    number
    Description
    the mileage for the vehicle
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW
    Description
  • Name
    expectedUpdatedDate
    Type
    string
    Description
    Optimistic concurrency token. Pass the updatedDate the client last loaded for this record. If the current updatedDate is newer, the request is rejected with 409 so the client can refresh.

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description
    Vehicle schema

Properties for data object

  • Name
    appointmentCount
    Type
    integer Required
    Description
  • Name
    baseId
    Type
    integer Required
    Description
    vcdb base id
  • Name
    bedLength
    Type
    string Required
    Description
  • Name
    bodyStyle
    Type
    string Required
    Description
  • Name
    bodyStyleId
    Type
    integer Required
    Description
    vcdb body style id
  • Name
    coalescedVINorHIN
    Type
    string Required
    Description
  • Name
    color
    Type
    one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
    Description
  • Name
    companyId
    Type
    string Required
    Description
  • Name
    computed_ymm
    Type
    string Required
    Description
  • Name
    configurationStatus
    Type
    one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
    Description
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    customPhoto
    Type
    boolean Required
    Description
  • Name
    deferredServiceCount
    Type
    integer Required
    Description
  • Name
    deleted
    Type
    boolean Required
    Description
    if the record has been deleted
  • Name
    deletedDate
    Type
    string Required
    Description
    the date that the record was deleted or null if not deleted
  • Name
    deletedReason
    Type
    string Required
    Description
    the reason that the record was deleted
  • Name
    deletedUserId
    Type
    string Required
    Description
    the user that deleted the record or null if not deleted
  • Name
    drivetrain
    Type
    one of: RWD, FWD, FourWD, AWD Required
    Description
  • Name
    drivetype
    Type
    string Required
    Description
  • Name
    drivetypeId
    Type
    integer Required
    Description
    vcdb drivetype id
  • Name
    drivingCondition
    Type
    one of: Normal, Severe Required
    Description
  • Name
    engine
    Type
    string Required
    Description
  • Name
    engineId
    Type
    integer Required
    Description
    vcdb engine id
  • Name
    externalId
    Type
    string Required
    Description
    an id that can be used to reference the vehicle in an external system
  • Name
    frontTireSize
    Type
    string Required
    Description
    custom front tire size override value
  • Name
    hin
    Type
    string Required
    Description
    Vessel hull identification number
  • Name
    hqVehicleId
    Type
    string Required
    Description
    /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
  • Name
    id
    Type
    string Required
    Description
  • Name
    imported
    Type
    boolean Required
    Description
  • Name
    labels
    Type
    object Required
    Description
  • Name
    lastServicedDate
    Type
    string Required
    Description
  • Name
    length
    Type
    number Required
    Description
  • Name
    lengthUnit
    Type
    one of: Ft, M Required
    Description
  • Name
    licensePlate
    Type
    string Required
    Description
  • Name
    licensePlateCountry
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    licensePlateState
    Type
    string Required
    Description
  • Name
    locationIds
    Type
    array Required
    Description
  • Name
    make
    Type
    string Required
    Description
    holds Hull make for vessel
  • Name
    makeId
    Type
    integer Required
    Description
    vcdb make id
  • Name
    messageCount
    Type
    integer Required
    Description
  • Name
    mileage
    Type
    number Required
    Description
  • Name
    mileageLogCount
    Type
    integer Required
    Description
  • Name
    mileageUnit
    Type
    one of: Mile, Kilometer Required
    Description
  • Name
    model
    Type
    string Required
    Description
  • Name
    modelId
    Type
    integer Required
    Description
    vcdb model id
  • Name
    name
    Type
    string Required
    Description
    Custom vehicle name / Vessel registered name
  • Name
    note
    Type
    string Required
    Description
  • Name
    odometer
    Type
    boolean Required
    Description
  • Name
    orderCount
    Type
    integer Required
    Description
  • Name
    originLocationId
    Type
    string Required
    Description
    the location that created the vehicle
  • Name
    ownerCount
    Type
    integer Required
    Description
  • Name
    preferredLaborGuide
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    productionDate
    Type
    string Required
    Description
  • Name
    rearTireSize
    Type
    string Required
    Description
    custom rear tire size override value
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    serial
    Type
    string Required
    Description
  • Name
    size
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    stockPhoto
    Type
    boolean Required
    Description
  • Name
    submodel
    Type
    string Required
    Description
  • Name
    submodelId
    Type
    integer Required
    Description
    vcdb submodel id
  • Name
    tirePressureLogCount
    Type
    integer Required
    Description
  • Name
    transmission
    Type
    one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
    Description
  • Name
    transmissionId
    Type
    integer Required
    Description
    vcdb transmission id
  • Name
    transmissionMfrCode
    Type
    string Required
    Description
  • Name
    transmissionSpeed
    Type
    string Required
    Description
  • Name
    type
    Type
    one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
    Description
  • Name
    unit
    Type
    string Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    vcdbId
    Type
    integer Required
    Description
    vcdb id
  • Name
    vcdbVehicleId
    Type
    string Required
    Description
    id of vcdb_vehicle record
  • Name
    vin
    Type
    string Required
    Description
  • Name
    year
    Type
    integer Required
    Description
  • Name
    customFields
    Type
    object Deprecated
    Description
    DEPRECATED: custom fields as JSON object. This is no longer supported.
  • Name
    engineHoursLogs
    Type
    array
    Description
  • Name
    engines
    Type
    array
    Description

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

PUT
/v3/vehicle/:id
curl https://api.shopmonkey.cloud/v3/vehicle/:id \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -X PUT -H 'Content-Type: application/json' \
  --data '{}'

Example Response
application/json

{
  "success": true,
  "data": {
    "appointmentCount": 1,
    "baseId": null,
    "bedLength": null,
    "bodyStyle": null,
    "bodyStyleId": null,
    "coalescedVINorHIN": null,
    "color": null,
    "companyId": "companyId",
    "computed_ymm": null,
    "configurationStatus": null,
    "createdDate": "createdDate",
    "customPhoto": true,
    "deferredServiceCount": 1,
    "deleted": true,
    "deletedDate": null,
    "deletedReason": null,
    "deletedUserId": null,
    "drivetrain": null,
    "drivetype": null,
    "drivetypeId": null,
    "drivingCondition": null,
    "engine": null,
    "engineId": null,
    "externalId": null,
    "frontTireSize": null,
    "hin": null,
    "hqVehicleId": null,
    "id": "id",
    "imported": true,
    "lastServicedDate": null,
    "length": null,
    "lengthUnit": null,
    "licensePlate": null,
    "licensePlateCountry": "licensePlateCountry",
    "licensePlateState": null,
    "locationIds": [
      "locationIds"
    ],
    "make": null,
    "makeId": null,
    "messageCount": 1,
    "mileage": null,
    "mileageLogCount": 1,
    "mileageUnit": "mileageUnit",
    "model": null,
    "modelId": null,
    "name": null,
    "note": "note",
    "odometer": true,
    "orderCount": 1,
    "originLocationId": null,
    "ownerCount": 1,
    "preferredLaborGuide": "preferredLaborGuide",
    "productionDate": null,
    "rearTireSize": null,
    "region": null,
    "serial": null,
    "size": "size",
    "stockPhoto": true,
    "submodel": null,
    "submodelId": null,
    "tirePressureLogCount": 1,
    "transmission": null,
    "transmissionId": null,
    "transmissionMfrCode": null,
    "transmissionSpeed": null,
    "type": null,
    "unit": null,
    "updatedDate": null,
    "vcdbId": null,
    "vcdbVehicleId": null,
    "vin": null,
    "year": null,
    "customFields": {},
    "engineHoursLogs": [
      {
        "engineId": "engineId",
        "orderId": "orderId",
        "orderNumber": "orderNumber",
        "updated": 1
      }
    ],
    "engines": [
      {
        "id": "id",
        "make": "make",
        "model": "model",
        "noHoursMeter": true
      }
    ]
  }
}

POST/v3/vehicle/:id/link

Link a Vehicle

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id for the vehicle

Body parameters

Consumes

The following content type is required: application/json

  • Name
    vcdbId
    Type
    number Required
    Description
    the id for the VCDB vehicle

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description
    Vehicle schema

Properties for data object

  • Name
    appointmentCount
    Type
    integer Required
    Description
  • Name
    baseId
    Type
    integer Required
    Description
    vcdb base id
  • Name
    bedLength
    Type
    string Required
    Description
  • Name
    bodyStyle
    Type
    string Required
    Description
  • Name
    bodyStyleId
    Type
    integer Required
    Description
    vcdb body style id
  • Name
    coalescedVINorHIN
    Type
    string Required
    Description
  • Name
    color
    Type
    one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
    Description
  • Name
    companyId
    Type
    string Required
    Description
  • Name
    computed_ymm
    Type
    string Required
    Description
  • Name
    configurationStatus
    Type
    one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
    Description
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    customPhoto
    Type
    boolean Required
    Description
  • Name
    deferredServiceCount
    Type
    integer Required
    Description
  • Name
    deleted
    Type
    boolean Required
    Description
    if the record has been deleted
  • Name
    deletedDate
    Type
    string Required
    Description
    the date that the record was deleted or null if not deleted
  • Name
    deletedReason
    Type
    string Required
    Description
    the reason that the record was deleted
  • Name
    deletedUserId
    Type
    string Required
    Description
    the user that deleted the record or null if not deleted
  • Name
    drivetrain
    Type
    one of: RWD, FWD, FourWD, AWD Required
    Description
  • Name
    drivetype
    Type
    string Required
    Description
  • Name
    drivetypeId
    Type
    integer Required
    Description
    vcdb drivetype id
  • Name
    drivingCondition
    Type
    one of: Normal, Severe Required
    Description
  • Name
    engine
    Type
    string Required
    Description
  • Name
    engineId
    Type
    integer Required
    Description
    vcdb engine id
  • Name
    externalId
    Type
    string Required
    Description
    an id that can be used to reference the vehicle in an external system
  • Name
    frontTireSize
    Type
    string Required
    Description
    custom front tire size override value
  • Name
    hin
    Type
    string Required
    Description
    Vessel hull identification number
  • Name
    hqVehicleId
    Type
    string Required
    Description
    /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
  • Name
    id
    Type
    string Required
    Description
  • Name
    imported
    Type
    boolean Required
    Description
  • Name
    labels
    Type
    object Required
    Description
  • Name
    lastServicedDate
    Type
    string Required
    Description
  • Name
    length
    Type
    number Required
    Description
  • Name
    lengthUnit
    Type
    one of: Ft, M Required
    Description
  • Name
    licensePlate
    Type
    string Required
    Description
  • Name
    licensePlateCountry
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    licensePlateState
    Type
    string Required
    Description
  • Name
    locationIds
    Type
    array Required
    Description
  • Name
    make
    Type
    string Required
    Description
    holds Hull make for vessel
  • Name
    makeId
    Type
    integer Required
    Description
    vcdb make id
  • Name
    messageCount
    Type
    integer Required
    Description
  • Name
    mileage
    Type
    number Required
    Description
  • Name
    mileageLogCount
    Type
    integer Required
    Description
  • Name
    mileageUnit
    Type
    one of: Mile, Kilometer Required
    Description
  • Name
    model
    Type
    string Required
    Description
  • Name
    modelId
    Type
    integer Required
    Description
    vcdb model id
  • Name
    name
    Type
    string Required
    Description
    Custom vehicle name / Vessel registered name
  • Name
    note
    Type
    string Required
    Description
  • Name
    odometer
    Type
    boolean Required
    Description
  • Name
    orderCount
    Type
    integer Required
    Description
  • Name
    originLocationId
    Type
    string Required
    Description
    the location that created the vehicle
  • Name
    ownerCount
    Type
    integer Required
    Description
  • Name
    preferredLaborGuide
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    productionDate
    Type
    string Required
    Description
  • Name
    rearTireSize
    Type
    string Required
    Description
    custom rear tire size override value
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    serial
    Type
    string Required
    Description
  • Name
    size
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    stockPhoto
    Type
    boolean Required
    Description
  • Name
    submodel
    Type
    string Required
    Description
  • Name
    submodelId
    Type
    integer Required
    Description
    vcdb submodel id
  • Name
    tirePressureLogCount
    Type
    integer Required
    Description
  • Name
    transmission
    Type
    one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
    Description
  • Name
    transmissionId
    Type
    integer Required
    Description
    vcdb transmission id
  • Name
    transmissionMfrCode
    Type
    string Required
    Description
  • Name
    transmissionSpeed
    Type
    string Required
    Description
  • Name
    type
    Type
    one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
    Description
  • Name
    unit
    Type
    string Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    vcdbId
    Type
    integer Required
    Description
    vcdb id
  • Name
    vcdbVehicleId
    Type
    string Required
    Description
    id of vcdb_vehicle record
  • Name
    vin
    Type
    string Required
    Description
  • Name
    year
    Type
    integer Required
    Description
  • Name
    customFields
    Type
    object Deprecated
    Description
    DEPRECATED: custom fields as JSON object. This is no longer supported.
  • Name
    engineHoursLogs
    Type
    array
    Description
  • Name
    engines
    Type
    array
    Description

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

POST
/v3/vehicle/:id/link
curl https://api.shopmonkey.cloud/v3/vehicle/:id/link \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -H 'Content-Type: application/json' \
  --data '{ "vcdbId" : 0 }'

Example Response
application/json

{
  "success": true,
  "data": {
    "appointmentCount": 1,
    "baseId": null,
    "bedLength": null,
    "bodyStyle": null,
    "bodyStyleId": null,
    "coalescedVINorHIN": null,
    "color": null,
    "companyId": "companyId",
    "computed_ymm": null,
    "configurationStatus": null,
    "createdDate": "createdDate",
    "customPhoto": true,
    "deferredServiceCount": 1,
    "deleted": true,
    "deletedDate": null,
    "deletedReason": null,
    "deletedUserId": null,
    "drivetrain": null,
    "drivetype": null,
    "drivetypeId": null,
    "drivingCondition": null,
    "engine": null,
    "engineId": null,
    "externalId": null,
    "frontTireSize": null,
    "hin": null,
    "hqVehicleId": null,
    "id": "id",
    "imported": true,
    "lastServicedDate": null,
    "length": null,
    "lengthUnit": null,
    "licensePlate": null,
    "licensePlateCountry": "licensePlateCountry",
    "licensePlateState": null,
    "locationIds": [
      "locationIds"
    ],
    "make": null,
    "makeId": null,
    "messageCount": 1,
    "mileage": null,
    "mileageLogCount": 1,
    "mileageUnit": "mileageUnit",
    "model": null,
    "modelId": null,
    "name": null,
    "note": "note",
    "odometer": true,
    "orderCount": 1,
    "originLocationId": null,
    "ownerCount": 1,
    "preferredLaborGuide": "preferredLaborGuide",
    "productionDate": null,
    "rearTireSize": null,
    "region": null,
    "serial": null,
    "size": "size",
    "stockPhoto": true,
    "submodel": null,
    "submodelId": null,
    "tirePressureLogCount": 1,
    "transmission": null,
    "transmissionId": null,
    "transmissionMfrCode": null,
    "transmissionSpeed": null,
    "type": null,
    "unit": null,
    "updatedDate": null,
    "vcdbId": null,
    "vcdbVehicleId": null,
    "vin": null,
    "year": null,
    "customFields": {},
    "engineHoursLogs": [
      {
        "engineId": "engineId",
        "orderId": "orderId",
        "orderNumber": "orderNumber",
        "updated": 1
      }
    ],
    "engines": [
      {
        "id": "id",
        "make": "make",
        "model": "model",
        "noHoursMeter": true
      }
    ]
  }
}

POST/v3/vehicle

Create Vehicle

Create a new Vehicle

Body parameters

Consumes

The following content type is required: application/json

  • Name
    baseId
    Type
    integer
    Description
    vcdb base id
  • Name
    bedLength
    Type
    string
    Description
  • Name
    bodyStyle
    Type
    string
    Description
  • Name
    bodyStyleId
    Type
    integer
    Description
    vcdb body style id
  • Name
    color
    Type
    one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other
    Description
  • Name
    configurationStatus
    Type
    one of: Custom, Incomplete, Invalid, NotSupported, Valid
    Description
  • Name
    customFields
    Type
    object
    Description
    custom field values
  • Name
    drivetype
    Type
    string
    Description
  • Name
    drivetypeId
    Type
    integer
    Description
    vcdb drivetype id
  • Name
    drivingCondition
    Type
    one of: Normal, Severe
    Description
  • Name
    engine
    Type
    string
    Description
  • Name
    engineId
    Type
    integer
    Description
    vcdb engine id
  • Name
    externalId
    Type
    string
    Description
    an id that can be used to reference the vehicle in an external system
  • Name
    frontTireSize
    Type
    string
    Description
    custom front tire size override value
  • Name
    hin
    Type
    string
    Description
    Vessel hull identification number
  • Name
    length
    Type
    number
    Description
  • Name
    lengthUnit
    Type
    one of: Ft, M
    Description
  • Name
    licensePlate
    Type
    string
    Description
  • Name
    licensePlateCountry
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW
    Description
  • Name
    licensePlateState
    Type
    string
    Description
  • Name
    make
    Type
    string
    Description
    holds Hull make for vessel
  • Name
    makeId
    Type
    integer
    Description
    vcdb make id
  • Name
    mileageUnit
    Type
    one of: Mile, Kilometer
    Description
  • Name
    model
    Type
    string
    Description
  • Name
    modelId
    Type
    integer
    Description
    vcdb model id
  • Name
    name
    Type
    string
    Description
    Custom vehicle name / Vessel registered name
  • Name
    note
    Type
    string
    Description
  • Name
    odometer
    Type
    boolean
    Description
  • Name
    originLocationId
    Type
    string
    Description
    the location that created the vehicle
  • Name
    preferredLaborGuide
    Type
    one of: HeavyDuty, LightDuty, Other
    Description
  • Name
    productionDate
    Type
    string
    Description
  • Name
    rearTireSize
    Type
    string
    Description
    custom rear tire size override value
  • Name
    serial
    Type
    string
    Description
  • Name
    size
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    submodel
    Type
    string
    Description
  • Name
    submodelId
    Type
    integer
    Description
    vcdb submodel id
  • Name
    transmission
    Type
    one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch
    Description
  • Name
    transmissionId
    Type
    integer
    Description
    vcdb transmission id
  • Name
    transmissionMfrCode
    Type
    string
    Description
  • Name
    transmissionSpeed
    Type
    string
    Description
  • Name
    type
    Type
    one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon
    Description
  • Name
    unit
    Type
    string
    Description
  • Name
    vcdbId
    Type
    integer
    Description
    vcdb id
  • Name
    vin
    Type
    string
    Description
  • Name
    year
    Type
    integer
    Description
  • Name
    drivetrain
    Type
    one of: 'AWD', 'FWD', 'RWD', '4WD', 'FourWD', null
    Description
  • Name
    customerId
    Type
    string
    Description
    the id for the customer
  • Name
    engines
    Type
    array
    Description
  • Name
    locationId
    Type
    string
    Description
    the id for the location
  • Name
    mileage
    Type
    number
    Description
    the mileage for the vehicle
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW
    Description

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description
    Vehicle schema

Properties for data object

  • Name
    appointmentCount
    Type
    integer Required
    Description
  • Name
    baseId
    Type
    integer Required
    Description
    vcdb base id
  • Name
    bedLength
    Type
    string Required
    Description
  • Name
    bodyStyle
    Type
    string Required
    Description
  • Name
    bodyStyleId
    Type
    integer Required
    Description
    vcdb body style id
  • Name
    coalescedVINorHIN
    Type
    string Required
    Description
  • Name
    color
    Type
    one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
    Description
  • Name
    companyId
    Type
    string Required
    Description
  • Name
    computed_ymm
    Type
    string Required
    Description
  • Name
    configurationStatus
    Type
    one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
    Description
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    customPhoto
    Type
    boolean Required
    Description
  • Name
    deferredServiceCount
    Type
    integer Required
    Description
  • Name
    deleted
    Type
    boolean Required
    Description
    if the record has been deleted
  • Name
    deletedDate
    Type
    string Required
    Description
    the date that the record was deleted or null if not deleted
  • Name
    deletedReason
    Type
    string Required
    Description
    the reason that the record was deleted
  • Name
    deletedUserId
    Type
    string Required
    Description
    the user that deleted the record or null if not deleted
  • Name
    drivetrain
    Type
    one of: RWD, FWD, FourWD, AWD Required
    Description
  • Name
    drivetype
    Type
    string Required
    Description
  • Name
    drivetypeId
    Type
    integer Required
    Description
    vcdb drivetype id
  • Name
    drivingCondition
    Type
    one of: Normal, Severe Required
    Description
  • Name
    engine
    Type
    string Required
    Description
  • Name
    engineId
    Type
    integer Required
    Description
    vcdb engine id
  • Name
    externalId
    Type
    string Required
    Description
    an id that can be used to reference the vehicle in an external system
  • Name
    frontTireSize
    Type
    string Required
    Description
    custom front tire size override value
  • Name
    hin
    Type
    string Required
    Description
    Vessel hull identification number
  • Name
    hqVehicleId
    Type
    string Required
    Description
    /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
  • Name
    id
    Type
    string Required
    Description
  • Name
    imported
    Type
    boolean Required
    Description
  • Name
    labels
    Type
    object Required
    Description
  • Name
    lastServicedDate
    Type
    string Required
    Description
  • Name
    length
    Type
    number Required
    Description
  • Name
    lengthUnit
    Type
    one of: Ft, M Required
    Description
  • Name
    licensePlate
    Type
    string Required
    Description
  • Name
    licensePlateCountry
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    licensePlateState
    Type
    string Required
    Description
  • Name
    locationIds
    Type
    array Required
    Description
  • Name
    make
    Type
    string Required
    Description
    holds Hull make for vessel
  • Name
    makeId
    Type
    integer Required
    Description
    vcdb make id
  • Name
    messageCount
    Type
    integer Required
    Description
  • Name
    mileage
    Type
    number Required
    Description
  • Name
    mileageLogCount
    Type
    integer Required
    Description
  • Name
    mileageUnit
    Type
    one of: Mile, Kilometer Required
    Description
  • Name
    model
    Type
    string Required
    Description
  • Name
    modelId
    Type
    integer Required
    Description
    vcdb model id
  • Name
    name
    Type
    string Required
    Description
    Custom vehicle name / Vessel registered name
  • Name
    note
    Type
    string Required
    Description
  • Name
    odometer
    Type
    boolean Required
    Description
  • Name
    orderCount
    Type
    integer Required
    Description
  • Name
    originLocationId
    Type
    string Required
    Description
    the location that created the vehicle
  • Name
    ownerCount
    Type
    integer Required
    Description
  • Name
    preferredLaborGuide
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    productionDate
    Type
    string Required
    Description
  • Name
    rearTireSize
    Type
    string Required
    Description
    custom rear tire size override value
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    serial
    Type
    string Required
    Description
  • Name
    size
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    stockPhoto
    Type
    boolean Required
    Description
  • Name
    submodel
    Type
    string Required
    Description
  • Name
    submodelId
    Type
    integer Required
    Description
    vcdb submodel id
  • Name
    tirePressureLogCount
    Type
    integer Required
    Description
  • Name
    transmission
    Type
    one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
    Description
  • Name
    transmissionId
    Type
    integer Required
    Description
    vcdb transmission id
  • Name
    transmissionMfrCode
    Type
    string Required
    Description
  • Name
    transmissionSpeed
    Type
    string Required
    Description
  • Name
    type
    Type
    one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
    Description
  • Name
    unit
    Type
    string Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    vcdbId
    Type
    integer Required
    Description
    vcdb id
  • Name
    vcdbVehicleId
    Type
    string Required
    Description
    id of vcdb_vehicle record
  • Name
    vin
    Type
    string Required
    Description
  • Name
    year
    Type
    integer Required
    Description
  • Name
    customFields
    Type
    object Deprecated
    Description
    DEPRECATED: custom fields as JSON object. This is no longer supported.
  • Name
    engineHoursLogs
    Type
    array
    Description
  • Name
    engines
    Type
    array
    Description

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

POST
/v3/vehicle
curl https://api.shopmonkey.cloud/v3/vehicle \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -H 'Content-Type: application/json' \
  --data '{ "size" : "value" }'

Example Response
application/json

{
  "success": true,
  "data": {
    "appointmentCount": 1,
    "baseId": null,
    "bedLength": null,
    "bodyStyle": null,
    "bodyStyleId": null,
    "coalescedVINorHIN": null,
    "color": null,
    "companyId": "companyId",
    "computed_ymm": null,
    "configurationStatus": null,
    "createdDate": "createdDate",
    "customPhoto": true,
    "deferredServiceCount": 1,
    "deleted": true,
    "deletedDate": null,
    "deletedReason": null,
    "deletedUserId": null,
    "drivetrain": null,
    "drivetype": null,
    "drivetypeId": null,
    "drivingCondition": null,
    "engine": null,
    "engineId": null,
    "externalId": null,
    "frontTireSize": null,
    "hin": null,
    "hqVehicleId": null,
    "id": "id",
    "imported": true,
    "lastServicedDate": null,
    "length": null,
    "lengthUnit": null,
    "licensePlate": null,
    "licensePlateCountry": "licensePlateCountry",
    "licensePlateState": null,
    "locationIds": [
      "locationIds"
    ],
    "make": null,
    "makeId": null,
    "messageCount": 1,
    "mileage": null,
    "mileageLogCount": 1,
    "mileageUnit": "mileageUnit",
    "model": null,
    "modelId": null,
    "name": null,
    "note": "note",
    "odometer": true,
    "orderCount": 1,
    "originLocationId": null,
    "ownerCount": 1,
    "preferredLaborGuide": "preferredLaborGuide",
    "productionDate": null,
    "rearTireSize": null,
    "region": null,
    "serial": null,
    "size": "size",
    "stockPhoto": true,
    "submodel": null,
    "submodelId": null,
    "tirePressureLogCount": 1,
    "transmission": null,
    "transmissionId": null,
    "transmissionMfrCode": null,
    "transmissionSpeed": null,
    "type": null,
    "unit": null,
    "updatedDate": null,
    "vcdbId": null,
    "vcdbVehicleId": null,
    "vin": null,
    "year": null,
    "customFields": {},
    "engineHoursLogs": [
      {
        "engineId": "engineId",
        "orderId": "orderId",
        "orderNumber": "orderNumber",
        "updated": 1
      }
    ],
    "engines": [
      {
        "id": "id",
        "make": "make",
        "model": "model",
        "noHoursMeter": true
      }
    ]
  }
}

PATCH/v3/vehicle/:id/:action

Soft Delete Vehicle

Soft delete or undelete a Vehicle by id

URL parameters

  • Name
    action
    Type
    one of: 'delete', 'undelete' Required
    Description
    the action to take
  • Name
    id
    Type
    string Required
    Description
    primary key for the record

Body parameters

Consumes

The following content type is required: application/json

  • Name
    reason
    Type
    string
    Description
    the reason message if deleted

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description
    Vehicle schema

Properties for data object

  • Name
    appointmentCount
    Type
    integer Required
    Description
  • Name
    baseId
    Type
    integer Required
    Description
    vcdb base id
  • Name
    bedLength
    Type
    string Required
    Description
  • Name
    bodyStyle
    Type
    string Required
    Description
  • Name
    bodyStyleId
    Type
    integer Required
    Description
    vcdb body style id
  • Name
    coalescedVINorHIN
    Type
    string Required
    Description
  • Name
    color
    Type
    one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
    Description
  • Name
    companyId
    Type
    string Required
    Description
  • Name
    computed_ymm
    Type
    string Required
    Description
  • Name
    configurationStatus
    Type
    one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
    Description
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    customFields
    Type
    object
    Description
    custom field values
  • Name
    customPhoto
    Type
    boolean Required
    Description
  • Name
    deferredServiceCount
    Type
    integer Required
    Description
  • Name
    deleted
    Type
    boolean Required
    Description
    if the record has been deleted
  • Name
    deletedDate
    Type
    string Required
    Description
    the date that the record was deleted or null if not deleted
  • Name
    deletedReason
    Type
    string Required
    Description
    the reason that the record was deleted
  • Name
    deletedUserId
    Type
    string Required
    Description
    the user that deleted the record or null if not deleted
  • Name
    drivetrain
    Type
    one of: RWD, FWD, FourWD, AWD Required
    Description
  • Name
    drivetype
    Type
    string Required
    Description
  • Name
    drivetypeId
    Type
    integer Required
    Description
    vcdb drivetype id
  • Name
    drivingCondition
    Type
    one of: Normal, Severe Required
    Description
  • Name
    engine
    Type
    string Required
    Description
  • Name
    engineHoursLogs
    Type
    object Required
    Description
    an array of engine hours logs { engineId: string; inHours: number; outHours: number; orderId: string; }
  • Name
    engineId
    Type
    integer Required
    Description
    vcdb engine id
  • Name
    engines
    Type
    object Required
    Description
    an array of engines { id: string; make: string; model: string; hours: number; noHoursMeter: boolean; horsepower: number; serial: string; productionYear: number; productionMonth: number; }
  • Name
    externalId
    Type
    string Required
    Description
    an id that can be used to reference the vehicle in an external system
  • Name
    frontTireSize
    Type
    string Required
    Description
    custom front tire size override value
  • Name
    hin
    Type
    string Required
    Description
    Vessel hull identification number
  • Name
    hqVehicleId
    Type
    string Required
    Description
    /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
  • Name
    id
    Type
    string Required
    Description
  • Name
    imported
    Type
    boolean Required
    Description
  • Name
    labels
    Type
    object Required
    Description
  • Name
    lastServicedDate
    Type
    string Required
    Description
  • Name
    length
    Type
    number Required
    Description
  • Name
    lengthUnit
    Type
    one of: Ft, M Required
    Description
  • Name
    licensePlate
    Type
    string Required
    Description
  • Name
    licensePlateCountry
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    licensePlateState
    Type
    string Required
    Description
  • Name
    locationIds
    Type
    array Required
    Description
  • Name
    make
    Type
    string Required
    Description
    holds Hull make for vessel
  • Name
    makeId
    Type
    integer Required
    Description
    vcdb make id
  • Name
    messageCount
    Type
    integer Required
    Description
  • Name
    mileage
    Type
    number Required
    Description
  • Name
    mileageLogCount
    Type
    integer Required
    Description
  • Name
    mileageUnit
    Type
    one of: Mile, Kilometer Required
    Description
  • Name
    model
    Type
    string Required
    Description
  • Name
    modelId
    Type
    integer Required
    Description
    vcdb model id
  • Name
    name
    Type
    string Required
    Description
    Custom vehicle name / Vessel registered name
  • Name
    note
    Type
    string Required
    Description
  • Name
    odometer
    Type
    boolean Required
    Description
  • Name
    orderCount
    Type
    integer Required
    Description
  • Name
    originLocationId
    Type
    string Required
    Description
    the location that created the vehicle
  • Name
    ownerCount
    Type
    integer Required
    Description
  • Name
    preferredLaborGuide
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    productionDate
    Type
    string Required
    Description
  • Name
    rearTireSize
    Type
    string Required
    Description
    custom rear tire size override value
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    serial
    Type
    string Required
    Description
  • Name
    size
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    stockPhoto
    Type
    boolean Required
    Description
  • Name
    submodel
    Type
    string Required
    Description
  • Name
    submodelId
    Type
    integer Required
    Description
    vcdb submodel id
  • Name
    tirePressureLogCount
    Type
    integer Required
    Description
  • Name
    transmission
    Type
    one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
    Description
  • Name
    transmissionId
    Type
    integer Required
    Description
    vcdb transmission id
  • Name
    transmissionMfrCode
    Type
    string Required
    Description
  • Name
    transmissionSpeed
    Type
    string Required
    Description
  • Name
    type
    Type
    one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
    Description
  • Name
    unit
    Type
    string Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    vcdbId
    Type
    integer Required
    Description
    vcdb id
  • Name
    vcdbVehicleId
    Type
    string Required
    Description
    id of vcdb_vehicle record
  • Name
    vin
    Type
    string Required
    Description
  • Name
    year
    Type
    integer Required
    Description

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

PATCH
/v3/vehicle/:id/:action
curl https://api.shopmonkey.cloud/v3/vehicle/:id/:action \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -X PATCH -H 'Content-Type: application/json' \
  --data '{}'

Example Response
application/json

{
  "success": true,
  "data": {
    "appointmentCount": 1,
    "baseId": null,
    "bedLength": null,
    "bodyStyle": null,
    "bodyStyleId": null,
    "coalescedVINorHIN": null,
    "color": null,
    "companyId": "companyId",
    "computed_ymm": null,
    "configurationStatus": null,
    "createdDate": "createdDate",
    "customPhoto": true,
    "deferredServiceCount": 1,
    "deleted": true,
    "deletedDate": null,
    "deletedReason": null,
    "deletedUserId": null,
    "drivetrain": null,
    "drivetype": null,
    "drivetypeId": null,
    "drivingCondition": null,
    "engine": null,
    "engineId": null,
    "externalId": null,
    "frontTireSize": null,
    "hin": null,
    "hqVehicleId": null,
    "id": "id",
    "imported": true,
    "lastServicedDate": null,
    "length": null,
    "lengthUnit": null,
    "licensePlate": null,
    "licensePlateCountry": "licensePlateCountry",
    "licensePlateState": null,
    "locationIds": [
      "locationIds"
    ],
    "make": null,
    "makeId": null,
    "messageCount": 1,
    "mileage": null,
    "mileageLogCount": 1,
    "mileageUnit": "mileageUnit",
    "model": null,
    "modelId": null,
    "name": null,
    "note": "note",
    "odometer": true,
    "orderCount": 1,
    "originLocationId": null,
    "ownerCount": 1,
    "preferredLaborGuide": "preferredLaborGuide",
    "productionDate": null,
    "rearTireSize": null,
    "region": null,
    "serial": null,
    "size": "size",
    "stockPhoto": true,
    "submodel": null,
    "submodelId": null,
    "tirePressureLogCount": 1,
    "transmission": null,
    "transmissionId": null,
    "transmissionMfrCode": null,
    "transmissionSpeed": null,
    "type": null,
    "unit": null,
    "updatedDate": null,
    "vcdbId": null,
    "vcdbVehicleId": null,
    "vin": null,
    "year": null
  }
}

GET/v3/vehicle/years/:region/:vehicleGroup

Find Years

Find all Vehicle years

URL parameters

  • Name
    region
    Type
    one of: any, 'All' Required
    Description
  • Name
    vehicleGroup
    Type
    one of: any, 'All' Required
    Description

Produces

The response content type: application/json

200 Response

  • Name
    data
    Type
    array Required
    Description
    Array of years sorted by most recent to oldest
  • Name
    success
    Type
    boolean Required
    Description
    Returns true if the request was successful

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/years/:region/:vehicleGroup
curl https://api.shopmonkey.cloud/v3/vehicle/years/:region/:vehicleGroup \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "success": true,
  "data": [
    1
  ]
}

GET/v3/vehicle/makes/:region/:vehicleGroup/:year

Find Makes

Find all Vehicle makes for a given year

URL parameters

  • Name
    region
    Type
    one of: any, 'All' Required
    Description
  • Name
    vehicleGroup
    Type
    one of: any, 'All' Required
    Description
  • Name
    year
    Type
    number Required
    Description
    The year to filter results by

Produces

The response content type: application/json

200 Response

  • Name
    data
    Type
    array Required
    Description
  • Name
    success
    Type
    boolean Required
    Description
    Returns true if the request was successful

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/makes/:region/:vehicleGroup/:year
curl https://api.shopmonkey.cloud/v3/vehicle/makes/:region/:vehicleGroup/:year \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "success": true,
  "data": [
    {
      "make": "make",
      "makeId": 1
    }
  ]
}

GET/v3/vehicle/models/:region/:vehicleGroup/:year/:makeId

Find Models

Find all Vehicle models for a given year and model

URL parameters

  • Name
    region
    Type
    one of: any, 'All' Required
    Description
  • Name
    vehicleGroup
    Type
    one of: any, 'All' Required
    Description
  • Name
    makeId
    Type
    number Required
    Description
    The makeId to filter results by
  • Name
    year
    Type
    number Required
    Description
    The year to filter results by

Produces

The response content type: application/json

200 Response

  • Name
    data
    Type
    array Required
    Description
  • Name
    success
    Type
    boolean Required
    Description
    Returns true if the request was successful

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/models/:region/:vehicleGroup/:year/:makeId
curl https://api.shopmonkey.cloud/v3/vehicle/models/:region/:vehicleGroup/:year/:makeId \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "data": [
    {
      "model": "model",
      "modelId": 1,
      "regions": [
        "regions"
      ]
    }
  ],
  "success": true
}

GET/v3/vehicle/submodels/:region/:vehicleGroup/:year/:makeId/:modelId

Find Submodels

Find all Vehicle submodels for a given year, make and model

URL parameters

  • Name
    region
    Type
    one of: any, 'All' Required
    Description
  • Name
    vehicleGroup
    Type
    one of: any, 'All' Required
    Description
  • Name
    makeId
    Type
    number Required
    Description
    The makeId to filter results by
  • Name
    modelId
    Type
    number Required
    Description
    The modelId to filter results by
  • Name
    year
    Type
    number Required
    Description
    The year to filter results by

Produces

The response content type: application/json

200 Response

  • Name
    data
    Type
    array Required
    Description
  • Name
    success
    Type
    boolean Required
    Description
    Returns true if the request was successful

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/submodels/:region/:vehicleGroup/:year/:makeId/:modelId
curl https://api.shopmonkey.cloud/v3/vehicle/submodels/:region/:vehicleGroup/:year/:makeId/:modelId \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "data": [
    {
      "regions": [
        "regions"
      ],
      "submodel": "submodel",
      "submodelId": 1
    }
  ],
  "success": true
}

GET/v3/vehicle/:region/:vehicleGroup/:year/:makeId/:modelId/:submodelId?

Find Vehicles by YMM

Find all Vehicles for a given year, make, model and submodel

URL parameters

  • Name
    makeId
    Type
    number Required
    Description
    The makeId to filter results by
  • Name
    modelId
    Type
    number Required
    Description
    The modelId to filter results by
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    submodelId
    Type
    number
    Description
    The submodelId to filter results by
  • Name
    vehicleGroup
    Type
    one of: any, 'All' Required
    Description
  • Name
    year
    Type
    number Required
    Description
    The year to filter results by

Produces

The response content type: application/json

200 Response

  • Name
    data
    Type
    array Required
    Description
  • Name
    success
    Type
    boolean Required
    Description
    Returns true if the request was successful

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/:region/:vehicleGroup/:year/:makeId/:modelId/:submodelId?
curl https://api.shopmonkey.cloud/v3/vehicle/:region/:vehicleGroup/:year/:makeId/:modelId/:submodelId? \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "data": [
    {
      "baseId": 1,
      "bedLength": null,
      "bedLengthMetric": null,
      "body": null,
      "bodyStyleId": null,
      "computed_ymm": null,
      "drivetype": null,
      "drivetypeId": null,
      "engine": null,
      "engineId": null,
      "id": "id",
      "make": "make",
      "makeId": 1,
      "model": "model",
      "modelId": 1,
      "region": "region",
      "submodel": "submodel",
      "submodelId": 1,
      "transmissionId": null,
      "transmissionMfrCode": null,
      "transmissionSpeed": null,
      "transmissionType": null,
      "type": null,
      "vcdbId": 1,
      "vehicleGroup": "vehicleGroup",
      "vehicleType": "vehicleType",
      "vehicleTypeId": 1,
      "year": 1
    }
  ],
  "success": true
}

GET/v3/vehicle/vin/:vin

Validate VIN

Attempt to validate the VIN value

URL parameters

  • Name
    vin
    Type
    string Required
    Description
    The VIN value

Produces

The response content type: application/json

200 Response

  • Name
    success
    Type
    boolean Required
    Description
    Returns true if the VIN is valid

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/vin/:vin
curl https://api.shopmonkey.cloud/v3/vehicle/vin/:vin \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "success": true
}

GET/v3/vehicle/license_plate/:region/:plate

Validate License Plate

Attempt to validate the license plate value

URL parameters

  • Name
    plate
    Type
    string Required
    Description
    the license plate value
  • Name
    region
    Type
    one of: 'US', 'CA', 'MX', 'PR'
    Description
    The region value

Produces

The response content type: application/json

200 Response

  • Name
    success
    Type
    boolean Required
    Description
    Returns true if the license plate is valid

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/license_plate/:region/:plate
curl https://api.shopmonkey.cloud/v3/vehicle/license_plate/:region/:plate \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "success": true
}

GET/v3/vehicle/:id/order

Find Vehicle Orders

Get orders for a vehicle

URL parameters

  • Name
    id
    Type
    string Required
    Description
    The vehicle id

Query String parameters

  • Name
    collate
    Type
    boolean
    Description
    if set to true, use natural sort collation when used with orderBy
  • Name
    ids
    Type
    array
    Description
  • Name
    limit
    Type
    number
    Description
    the limit on the number of records to return
  • Name
    orderby
    Type
    string
    Description
    the order instructions for the result
  • Name
    params
    Type
    string
    Description
    additional request specific params
  • Name
    skip
    Type
    number
    Description
    the number of records to skip for a paginated result
  • Name
    where
    Type
    string
    Description
    an object to use for filtering the results

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    array Required
    Description
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    meta
    Type
    object
    Description
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Properties for meta object

  • Name
    hasMore
    Type
    boolean
    Description
    if there are more records available
  • Name
    sums
    Type
    object
    Description
  • Name
    total
    Type
    number
    Description
    the total number of records

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/:id/order
curl https://api.shopmonkey.cloud/v3/vehicle/:id/order \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "data": [
    {
      "appointmentDates": [
        "2024-01-01T00:00:00.000Z"
      ],
      "archived": true,
      "authorized": true,
      "authorizedDate": null,
      "coalescedName": null,
      "companyId": "companyId",
      "createdDate": "createdDate",
      "customerId": null,
      "dueDate": null,
      "fullyPaidDate": null,
      "generatedCustomerName": null,
      "generatedVehicleName": null,
      "id": "id",
      "inspectionStatus": "inspectionStatus",
      "invoiced": true,
      "invoicedDate": null,
      "locationId": "locationId",
      "messagedDate": null,
      "name": null,
      "number": "number",
      "paid": true,
      "paymentDueDate": null,
      "paymentTermId": null,
      "publicId": "publicId",
      "remainingCostCents": null,
      "status": "status",
      "totalCostCents": 1,
      "vehicleId": null,
      "workflowStatusDate": "workflowStatusDate",
      "workflowStatusId": null,
      "workflowStatusPosition": null,
      "customer": {
        "companyId": "companyId",
        "companyName": null,
        "deleted": true,
        "firstName": null,
        "id": "id",
        "lastName": null,
        "locationIds": [
          "locationIds"
        ]
      },
      "paymentTerm": {
        "companyId": "companyId",
        "id": "id",
        "locationId": "locationId",
        "name": "name"
      },
      "vehicle": {
        "companyId": "companyId",
        "deleted": true,
        "id": "id",
        "locationIds": [
          "locationIds"
        ],
        "make": null,
        "model": null,
        "submodel": null,
        "unit": null,
        "vin": null,
        "year": null
      }
    }
  ],
  "success": true
}

PUT/v3/vehicle/:id/tire_pressure_log/:tirePressureLogId

Update Tire Pressure Log

Update the Tire Pressure Log for a given Vehicle

URL parameters

  • Name
    id
    Type
    string Required
    Description
    vehicle id
  • Name
    tirePressureLogId
    Type
    string Required
    Description
    tire pressure log id

Body parameters

Consumes

The following content type is required: application/json

  • Name
    frontLeft
    Type
    number
    Description
  • Name
    frontRight
    Type
    number
    Description
  • Name
    rearLeft
    Type
    number
    Description
  • Name
    rearRight
    Type
    number
    Description

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description
    Vehicle schema

Properties for data object

  • Name
    appointmentCount
    Type
    integer Required
    Description
  • Name
    baseId
    Type
    integer Required
    Description
    vcdb base id
  • Name
    bedLength
    Type
    string Required
    Description
  • Name
    bodyStyle
    Type
    string Required
    Description
  • Name
    bodyStyleId
    Type
    integer Required
    Description
    vcdb body style id
  • Name
    coalescedVINorHIN
    Type
    string Required
    Description
  • Name
    color
    Type
    one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
    Description
  • Name
    companyId
    Type
    string Required
    Description
  • Name
    computed_ymm
    Type
    string Required
    Description
  • Name
    configurationStatus
    Type
    one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
    Description
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    customPhoto
    Type
    boolean Required
    Description
  • Name
    deferredServiceCount
    Type
    integer Required
    Description
  • Name
    deleted
    Type
    boolean Required
    Description
    if the record has been deleted
  • Name
    deletedDate
    Type
    string Required
    Description
    the date that the record was deleted or null if not deleted
  • Name
    deletedReason
    Type
    string Required
    Description
    the reason that the record was deleted
  • Name
    deletedUserId
    Type
    string Required
    Description
    the user that deleted the record or null if not deleted
  • Name
    drivetrain
    Type
    one of: RWD, FWD, FourWD, AWD Required
    Description
  • Name
    drivetype
    Type
    string Required
    Description
  • Name
    drivetypeId
    Type
    integer Required
    Description
    vcdb drivetype id
  • Name
    drivingCondition
    Type
    one of: Normal, Severe Required
    Description
  • Name
    engine
    Type
    string Required
    Description
  • Name
    engineId
    Type
    integer Required
    Description
    vcdb engine id
  • Name
    externalId
    Type
    string Required
    Description
    an id that can be used to reference the vehicle in an external system
  • Name
    frontTireSize
    Type
    string Required
    Description
    custom front tire size override value
  • Name
    hin
    Type
    string Required
    Description
    Vessel hull identification number
  • Name
    hqVehicleId
    Type
    string Required
    Description
    /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
  • Name
    id
    Type
    string Required
    Description
  • Name
    imported
    Type
    boolean Required
    Description
  • Name
    labels
    Type
    object Required
    Description
  • Name
    lastServicedDate
    Type
    string Required
    Description
  • Name
    length
    Type
    number Required
    Description
  • Name
    lengthUnit
    Type
    one of: Ft, M Required
    Description
  • Name
    licensePlate
    Type
    string Required
    Description
  • Name
    licensePlateCountry
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    licensePlateState
    Type
    string Required
    Description
  • Name
    locationIds
    Type
    array Required
    Description
  • Name
    make
    Type
    string Required
    Description
    holds Hull make for vessel
  • Name
    makeId
    Type
    integer Required
    Description
    vcdb make id
  • Name
    messageCount
    Type
    integer Required
    Description
  • Name
    mileage
    Type
    number Required
    Description
  • Name
    mileageLogCount
    Type
    integer Required
    Description
  • Name
    mileageUnit
    Type
    one of: Mile, Kilometer Required
    Description
  • Name
    model
    Type
    string Required
    Description
  • Name
    modelId
    Type
    integer Required
    Description
    vcdb model id
  • Name
    name
    Type
    string Required
    Description
    Custom vehicle name / Vessel registered name
  • Name
    note
    Type
    string Required
    Description
  • Name
    odometer
    Type
    boolean Required
    Description
  • Name
    orderCount
    Type
    integer Required
    Description
  • Name
    originLocationId
    Type
    string Required
    Description
    the location that created the vehicle
  • Name
    ownerCount
    Type
    integer Required
    Description
  • Name
    preferredLaborGuide
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    productionDate
    Type
    string Required
    Description
  • Name
    rearTireSize
    Type
    string Required
    Description
    custom rear tire size override value
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    serial
    Type
    string Required
    Description
  • Name
    size
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    stockPhoto
    Type
    boolean Required
    Description
  • Name
    submodel
    Type
    string Required
    Description
  • Name
    submodelId
    Type
    integer Required
    Description
    vcdb submodel id
  • Name
    tirePressureLogCount
    Type
    integer Required
    Description
  • Name
    transmission
    Type
    one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
    Description
  • Name
    transmissionId
    Type
    integer Required
    Description
    vcdb transmission id
  • Name
    transmissionMfrCode
    Type
    string Required
    Description
  • Name
    transmissionSpeed
    Type
    string Required
    Description
  • Name
    type
    Type
    one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
    Description
  • Name
    unit
    Type
    string Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    vcdbId
    Type
    integer Required
    Description
    vcdb id
  • Name
    vcdbVehicleId
    Type
    string Required
    Description
    id of vcdb_vehicle record
  • Name
    vin
    Type
    string Required
    Description
  • Name
    year
    Type
    integer Required
    Description
  • Name
    customFields
    Type
    object Deprecated
    Description
    DEPRECATED: custom fields as JSON object. This is no longer supported.
  • Name
    engineHoursLogs
    Type
    array
    Description
  • Name
    engines
    Type
    array
    Description
  • Name
    tirePressureLogs
    Type
    array Required
    Description

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

PUT
/v3/vehicle/:id/tire_pressure_log/:tirePressureLogId
curl https://api.shopmonkey.cloud/v3/vehicle/:id/tire_pressure_log/:tirePressureLogId \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -X PUT -H 'Content-Type: application/json' \
  --data '{}'

Example Response
application/json

{
  "success": true,
  "data": {
    "appointmentCount": 1,
    "baseId": null,
    "bedLength": null,
    "bodyStyle": null,
    "bodyStyleId": null,
    "coalescedVINorHIN": null,
    "color": null,
    "companyId": "companyId",
    "computed_ymm": null,
    "configurationStatus": null,
    "createdDate": "createdDate",
    "customPhoto": true,
    "deferredServiceCount": 1,
    "deleted": true,
    "deletedDate": null,
    "deletedReason": null,
    "deletedUserId": null,
    "drivetrain": null,
    "drivetype": null,
    "drivetypeId": null,
    "drivingCondition": null,
    "engine": null,
    "engineId": null,
    "externalId": null,
    "frontTireSize": null,
    "hin": null,
    "hqVehicleId": null,
    "id": "id",
    "imported": true,
    "lastServicedDate": null,
    "length": null,
    "lengthUnit": null,
    "licensePlate": null,
    "licensePlateCountry": "licensePlateCountry",
    "licensePlateState": null,
    "locationIds": [
      "locationIds"
    ],
    "make": null,
    "makeId": null,
    "messageCount": 1,
    "mileage": null,
    "mileageLogCount": 1,
    "mileageUnit": "mileageUnit",
    "model": null,
    "modelId": null,
    "name": null,
    "note": "note",
    "odometer": true,
    "orderCount": 1,
    "originLocationId": null,
    "ownerCount": 1,
    "preferredLaborGuide": "preferredLaborGuide",
    "productionDate": null,
    "rearTireSize": null,
    "region": null,
    "serial": null,
    "size": "size",
    "stockPhoto": true,
    "submodel": null,
    "submodelId": null,
    "tirePressureLogCount": 1,
    "transmission": null,
    "transmissionId": null,
    "transmissionMfrCode": null,
    "transmissionSpeed": null,
    "type": null,
    "unit": null,
    "updatedDate": null,
    "vcdbId": null,
    "vcdbVehicleId": null,
    "vin": null,
    "year": null,
    "customFields": {},
    "engineHoursLogs": [
      {
        "engineId": "engineId",
        "orderId": "orderId",
        "orderNumber": "orderNumber",
        "updated": 1
      }
    ],
    "engines": [
      {
        "id": "id",
        "make": "make",
        "model": "model",
        "noHoursMeter": true
      }
    ],
    "tirePressureLogs": [
      {
        "companyId": "companyId",
        "createdDate": "createdDate",
        "frontLeft": null,
        "frontRight": null,
        "id": "id",
        "locationId": "locationId",
        "orderId": "orderId",
        "rearLeft": null,
        "rearRight": null,
        "updatedDate": null,
        "vehicleId": "vehicleId",
        "order": {
          "number": "number"
        }
      }
    ]
  }
}

POST/v3/vehicle/:id/tire_pressure_log

Create Tire Pressure Log

Create a new Tire Pressure Log item

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id for the vehicle

Body parameters

Consumes

The following content type is required: application/json

  • Name
    frontLeft
    Type
    number
    Description
  • Name
    frontRight
    Type
    number
    Description
  • Name
    orderId
    Type
    string Required
    Description
  • Name
    rearLeft
    Type
    number
    Description
  • Name
    rearRight
    Type
    number
    Description

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description
    Vehicle schema

Properties for data object

  • Name
    appointmentCount
    Type
    integer Required
    Description
  • Name
    baseId
    Type
    integer Required
    Description
    vcdb base id
  • Name
    bedLength
    Type
    string Required
    Description
  • Name
    bodyStyle
    Type
    string Required
    Description
  • Name
    bodyStyleId
    Type
    integer Required
    Description
    vcdb body style id
  • Name
    coalescedVINorHIN
    Type
    string Required
    Description
  • Name
    color
    Type
    one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
    Description
  • Name
    companyId
    Type
    string Required
    Description
  • Name
    computed_ymm
    Type
    string Required
    Description
  • Name
    configurationStatus
    Type
    one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
    Description
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    customPhoto
    Type
    boolean Required
    Description
  • Name
    deferredServiceCount
    Type
    integer Required
    Description
  • Name
    deleted
    Type
    boolean Required
    Description
    if the record has been deleted
  • Name
    deletedDate
    Type
    string Required
    Description
    the date that the record was deleted or null if not deleted
  • Name
    deletedReason
    Type
    string Required
    Description
    the reason that the record was deleted
  • Name
    deletedUserId
    Type
    string Required
    Description
    the user that deleted the record or null if not deleted
  • Name
    drivetrain
    Type
    one of: RWD, FWD, FourWD, AWD Required
    Description
  • Name
    drivetype
    Type
    string Required
    Description
  • Name
    drivetypeId
    Type
    integer Required
    Description
    vcdb drivetype id
  • Name
    drivingCondition
    Type
    one of: Normal, Severe Required
    Description
  • Name
    engine
    Type
    string Required
    Description
  • Name
    engineId
    Type
    integer Required
    Description
    vcdb engine id
  • Name
    externalId
    Type
    string Required
    Description
    an id that can be used to reference the vehicle in an external system
  • Name
    frontTireSize
    Type
    string Required
    Description
    custom front tire size override value
  • Name
    hin
    Type
    string Required
    Description
    Vessel hull identification number
  • Name
    hqVehicleId
    Type
    string Required
    Description
    /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
  • Name
    id
    Type
    string Required
    Description
  • Name
    imported
    Type
    boolean Required
    Description
  • Name
    labels
    Type
    object Required
    Description
  • Name
    lastServicedDate
    Type
    string Required
    Description
  • Name
    length
    Type
    number Required
    Description
  • Name
    lengthUnit
    Type
    one of: Ft, M Required
    Description
  • Name
    licensePlate
    Type
    string Required
    Description
  • Name
    licensePlateCountry
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    licensePlateState
    Type
    string Required
    Description
  • Name
    locationIds
    Type
    array Required
    Description
  • Name
    make
    Type
    string Required
    Description
    holds Hull make for vessel
  • Name
    makeId
    Type
    integer Required
    Description
    vcdb make id
  • Name
    messageCount
    Type
    integer Required
    Description
  • Name
    mileage
    Type
    number Required
    Description
  • Name
    mileageLogCount
    Type
    integer Required
    Description
  • Name
    mileageUnit
    Type
    one of: Mile, Kilometer Required
    Description
  • Name
    model
    Type
    string Required
    Description
  • Name
    modelId
    Type
    integer Required
    Description
    vcdb model id
  • Name
    name
    Type
    string Required
    Description
    Custom vehicle name / Vessel registered name
  • Name
    note
    Type
    string Required
    Description
  • Name
    odometer
    Type
    boolean Required
    Description
  • Name
    orderCount
    Type
    integer Required
    Description
  • Name
    originLocationId
    Type
    string Required
    Description
    the location that created the vehicle
  • Name
    ownerCount
    Type
    integer Required
    Description
  • Name
    preferredLaborGuide
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    productionDate
    Type
    string Required
    Description
  • Name
    rearTireSize
    Type
    string Required
    Description
    custom rear tire size override value
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    serial
    Type
    string Required
    Description
  • Name
    size
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    stockPhoto
    Type
    boolean Required
    Description
  • Name
    submodel
    Type
    string Required
    Description
  • Name
    submodelId
    Type
    integer Required
    Description
    vcdb submodel id
  • Name
    tirePressureLogCount
    Type
    integer Required
    Description
  • Name
    transmission
    Type
    one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
    Description
  • Name
    transmissionId
    Type
    integer Required
    Description
    vcdb transmission id
  • Name
    transmissionMfrCode
    Type
    string Required
    Description
  • Name
    transmissionSpeed
    Type
    string Required
    Description
  • Name
    type
    Type
    one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
    Description
  • Name
    unit
    Type
    string Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    vcdbId
    Type
    integer Required
    Description
    vcdb id
  • Name
    vcdbVehicleId
    Type
    string Required
    Description
    id of vcdb_vehicle record
  • Name
    vin
    Type
    string Required
    Description
  • Name
    year
    Type
    integer Required
    Description
  • Name
    customFields
    Type
    object Deprecated
    Description
    DEPRECATED: custom fields as JSON object. This is no longer supported.
  • Name
    engineHoursLogs
    Type
    array
    Description
  • Name
    engines
    Type
    array
    Description
  • Name
    tirePressureLogs
    Type
    array Required
    Description

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

POST
/v3/vehicle/:id/tire_pressure_log
curl https://api.shopmonkey.cloud/v3/vehicle/:id/tire_pressure_log \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -H 'Content-Type: application/json' \
  --data '{ "orderId" : "value" }'

Example Response
application/json

{
  "success": true,
  "data": {
    "appointmentCount": 1,
    "baseId": null,
    "bedLength": null,
    "bodyStyle": null,
    "bodyStyleId": null,
    "coalescedVINorHIN": null,
    "color": null,
    "companyId": "companyId",
    "computed_ymm": null,
    "configurationStatus": null,
    "createdDate": "createdDate",
    "customPhoto": true,
    "deferredServiceCount": 1,
    "deleted": true,
    "deletedDate": null,
    "deletedReason": null,
    "deletedUserId": null,
    "drivetrain": null,
    "drivetype": null,
    "drivetypeId": null,
    "drivingCondition": null,
    "engine": null,
    "engineId": null,
    "externalId": null,
    "frontTireSize": null,
    "hin": null,
    "hqVehicleId": null,
    "id": "id",
    "imported": true,
    "lastServicedDate": null,
    "length": null,
    "lengthUnit": null,
    "licensePlate": null,
    "licensePlateCountry": "licensePlateCountry",
    "licensePlateState": null,
    "locationIds": [
      "locationIds"
    ],
    "make": null,
    "makeId": null,
    "messageCount": 1,
    "mileage": null,
    "mileageLogCount": 1,
    "mileageUnit": "mileageUnit",
    "model": null,
    "modelId": null,
    "name": null,
    "note": "note",
    "odometer": true,
    "orderCount": 1,
    "originLocationId": null,
    "ownerCount": 1,
    "preferredLaborGuide": "preferredLaborGuide",
    "productionDate": null,
    "rearTireSize": null,
    "region": null,
    "serial": null,
    "size": "size",
    "stockPhoto": true,
    "submodel": null,
    "submodelId": null,
    "tirePressureLogCount": 1,
    "transmission": null,
    "transmissionId": null,
    "transmissionMfrCode": null,
    "transmissionSpeed": null,
    "type": null,
    "unit": null,
    "updatedDate": null,
    "vcdbId": null,
    "vcdbVehicleId": null,
    "vin": null,
    "year": null,
    "customFields": {},
    "engineHoursLogs": [
      {
        "engineId": "engineId",
        "orderId": "orderId",
        "orderNumber": "orderNumber",
        "updated": 1
      }
    ],
    "engines": [
      {
        "id": "id",
        "make": "make",
        "model": "model",
        "noHoursMeter": true
      }
    ],
    "tirePressureLogs": [
      {
        "companyId": "companyId",
        "createdDate": "createdDate",
        "frontLeft": null,
        "frontRight": null,
        "id": "id",
        "locationId": "locationId",
        "orderId": "orderId",
        "rearLeft": null,
        "rearRight": null,
        "updatedDate": null,
        "vehicleId": "vehicleId",
        "order": {
          "number": "number"
        }
      }
    ]
  }
}

DELETE/v3/vehicle/:id/tire_pressure_log/:tirePressureLogId

Delete Tire Pressure Log

Deletes the specified Tire Pressure Log item

URL parameters

  • Name
    id
    Type
    string Required
    Description
    vehicle id
  • Name
    tirePressureLogId
    Type
    string Required
    Description
    tire pressure log id

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description
    Vehicle schema

Properties for data object

  • Name
    appointmentCount
    Type
    integer Required
    Description
  • Name
    baseId
    Type
    integer Required
    Description
    vcdb base id
  • Name
    bedLength
    Type
    string Required
    Description
  • Name
    bodyStyle
    Type
    string Required
    Description
  • Name
    bodyStyleId
    Type
    integer Required
    Description
    vcdb body style id
  • Name
    coalescedVINorHIN
    Type
    string Required
    Description
  • Name
    color
    Type
    one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
    Description
  • Name
    companyId
    Type
    string Required
    Description
  • Name
    computed_ymm
    Type
    string Required
    Description
  • Name
    configurationStatus
    Type
    one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
    Description
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    customPhoto
    Type
    boolean Required
    Description
  • Name
    deferredServiceCount
    Type
    integer Required
    Description
  • Name
    deleted
    Type
    boolean Required
    Description
    if the record has been deleted
  • Name
    deletedDate
    Type
    string Required
    Description
    the date that the record was deleted or null if not deleted
  • Name
    deletedReason
    Type
    string Required
    Description
    the reason that the record was deleted
  • Name
    deletedUserId
    Type
    string Required
    Description
    the user that deleted the record or null if not deleted
  • Name
    drivetrain
    Type
    one of: RWD, FWD, FourWD, AWD Required
    Description
  • Name
    drivetype
    Type
    string Required
    Description
  • Name
    drivetypeId
    Type
    integer Required
    Description
    vcdb drivetype id
  • Name
    drivingCondition
    Type
    one of: Normal, Severe Required
    Description
  • Name
    engine
    Type
    string Required
    Description
  • Name
    engineId
    Type
    integer Required
    Description
    vcdb engine id
  • Name
    externalId
    Type
    string Required
    Description
    an id that can be used to reference the vehicle in an external system
  • Name
    frontTireSize
    Type
    string Required
    Description
    custom front tire size override value
  • Name
    hin
    Type
    string Required
    Description
    Vessel hull identification number
  • Name
    hqVehicleId
    Type
    string Required
    Description
    /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
  • Name
    id
    Type
    string Required
    Description
  • Name
    imported
    Type
    boolean Required
    Description
  • Name
    labels
    Type
    object Required
    Description
  • Name
    lastServicedDate
    Type
    string Required
    Description
  • Name
    length
    Type
    number Required
    Description
  • Name
    lengthUnit
    Type
    one of: Ft, M Required
    Description
  • Name
    licensePlate
    Type
    string Required
    Description
  • Name
    licensePlateCountry
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    licensePlateState
    Type
    string Required
    Description
  • Name
    locationIds
    Type
    array Required
    Description
  • Name
    make
    Type
    string Required
    Description
    holds Hull make for vessel
  • Name
    makeId
    Type
    integer Required
    Description
    vcdb make id
  • Name
    messageCount
    Type
    integer Required
    Description
  • Name
    mileage
    Type
    number Required
    Description
  • Name
    mileageLogCount
    Type
    integer Required
    Description
  • Name
    mileageUnit
    Type
    one of: Mile, Kilometer Required
    Description
  • Name
    model
    Type
    string Required
    Description
  • Name
    modelId
    Type
    integer Required
    Description
    vcdb model id
  • Name
    name
    Type
    string Required
    Description
    Custom vehicle name / Vessel registered name
  • Name
    note
    Type
    string Required
    Description
  • Name
    odometer
    Type
    boolean Required
    Description
  • Name
    orderCount
    Type
    integer Required
    Description
  • Name
    originLocationId
    Type
    string Required
    Description
    the location that created the vehicle
  • Name
    ownerCount
    Type
    integer Required
    Description
  • Name
    preferredLaborGuide
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    productionDate
    Type
    string Required
    Description
  • Name
    rearTireSize
    Type
    string Required
    Description
    custom rear tire size override value
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    serial
    Type
    string Required
    Description
  • Name
    size
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    stockPhoto
    Type
    boolean Required
    Description
  • Name
    submodel
    Type
    string Required
    Description
  • Name
    submodelId
    Type
    integer Required
    Description
    vcdb submodel id
  • Name
    tirePressureLogCount
    Type
    integer Required
    Description
  • Name
    transmission
    Type
    one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
    Description
  • Name
    transmissionId
    Type
    integer Required
    Description
    vcdb transmission id
  • Name
    transmissionMfrCode
    Type
    string Required
    Description
  • Name
    transmissionSpeed
    Type
    string Required
    Description
  • Name
    type
    Type
    one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
    Description
  • Name
    unit
    Type
    string Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    vcdbId
    Type
    integer Required
    Description
    vcdb id
  • Name
    vcdbVehicleId
    Type
    string Required
    Description
    id of vcdb_vehicle record
  • Name
    vin
    Type
    string Required
    Description
  • Name
    year
    Type
    integer Required
    Description
  • Name
    customFields
    Type
    object Deprecated
    Description
    DEPRECATED: custom fields as JSON object. This is no longer supported.
  • Name
    engineHoursLogs
    Type
    array
    Description
  • Name
    engines
    Type
    array
    Description
  • Name
    tirePressureLogs
    Type
    array Required
    Description

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

DELETE
/v3/vehicle/:id/tire_pressure_log/:tirePressureLogId
curl https://api.shopmonkey.cloud/v3/vehicle/:id/tire_pressure_log/:tirePressureLogId \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -X DELETE -H 'Content-Type: application/json' \
  --data '{}'

Example Response
application/json

{
  "success": true,
  "data": {
    "appointmentCount": 1,
    "baseId": null,
    "bedLength": null,
    "bodyStyle": null,
    "bodyStyleId": null,
    "coalescedVINorHIN": null,
    "color": null,
    "companyId": "companyId",
    "computed_ymm": null,
    "configurationStatus": null,
    "createdDate": "createdDate",
    "customPhoto": true,
    "deferredServiceCount": 1,
    "deleted": true,
    "deletedDate": null,
    "deletedReason": null,
    "deletedUserId": null,
    "drivetrain": null,
    "drivetype": null,
    "drivetypeId": null,
    "drivingCondition": null,
    "engine": null,
    "engineId": null,
    "externalId": null,
    "frontTireSize": null,
    "hin": null,
    "hqVehicleId": null,
    "id": "id",
    "imported": true,
    "lastServicedDate": null,
    "length": null,
    "lengthUnit": null,
    "licensePlate": null,
    "licensePlateCountry": "licensePlateCountry",
    "licensePlateState": null,
    "locationIds": [
      "locationIds"
    ],
    "make": null,
    "makeId": null,
    "messageCount": 1,
    "mileage": null,
    "mileageLogCount": 1,
    "mileageUnit": "mileageUnit",
    "model": null,
    "modelId": null,
    "name": null,
    "note": "note",
    "odometer": true,
    "orderCount": 1,
    "originLocationId": null,
    "ownerCount": 1,
    "preferredLaborGuide": "preferredLaborGuide",
    "productionDate": null,
    "rearTireSize": null,
    "region": null,
    "serial": null,
    "size": "size",
    "stockPhoto": true,
    "submodel": null,
    "submodelId": null,
    "tirePressureLogCount": 1,
    "transmission": null,
    "transmissionId": null,
    "transmissionMfrCode": null,
    "transmissionSpeed": null,
    "type": null,
    "unit": null,
    "updatedDate": null,
    "vcdbId": null,
    "vcdbVehicleId": null,
    "vin": null,
    "year": null,
    "customFields": {},
    "engineHoursLogs": [
      {
        "engineId": "engineId",
        "orderId": "orderId",
        "orderNumber": "orderNumber",
        "updated": 1
      }
    ],
    "engines": [
      {
        "id": "id",
        "make": "make",
        "model": "model",
        "noHoursMeter": true
      }
    ],
    "tirePressureLogs": [
      {
        "companyId": "companyId",
        "createdDate": "createdDate",
        "frontLeft": null,
        "frontRight": null,
        "id": "id",
        "locationId": "locationId",
        "orderId": "orderId",
        "rearLeft": null,
        "rearRight": null,
        "updatedDate": null,
        "vehicleId": "vehicleId",
        "order": {
          "number": "number"
        }
      }
    ]
  }
}

GET/v3/vehicle/:parentId/tire_pressure_log

Find Tire Pressure Logs

Find all Tire Pressure Logs by Vehicle id (does not include vehicle)

URL parameters

  • Name
    parentId
    Type
    string Required
    Description
    the id for the parent of the data to retrieve

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    array Required
    Description
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    meta
    Type
    object
    Description
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Properties for meta object

  • Name
    hasMore
    Type
    boolean
    Description
    if there are more records available
  • Name
    lastRefreshedAt
    Type
    string
    Description
    the last refreshed at timestamp
  • Name
    sums
    Type
    object
    Description
  • Name
    total
    Type
    number
    Description
    the total number of records

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/:parentId/tire_pressure_log
curl https://api.shopmonkey.cloud/v3/vehicle/:parentId/tire_pressure_log \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "data": [
    {
      "id": "id",
      "createdDate": "createdDate",
      "updatedDate": null,
      "companyId": "companyId",
      "locationId": "locationId",
      "orderId": "orderId",
      "vehicleId": "vehicleId",
      "frontLeft": null,
      "frontRight": null,
      "rearLeft": null,
      "rearRight": null,
      "order": {
        "number": "number"
      }
    }
  ],
  "success": true
}

GET/v3/vehicle/:parentId/deferred_service

Find Deferred Services

Find all Deferred Services by Vehicle

URL parameters

  • Name
    parentId
    Type
    string Required
    Description
    the id for the parent of the data to retrieve

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    array Required
    Description
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    meta
    Type
    object
    Description
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Properties for meta object

  • Name
    hasMore
    Type
    boolean
    Description
    if there are more records available
  • Name
    lastRefreshedAt
    Type
    string
    Description
    the last refreshed at timestamp
  • Name
    sums
    Type
    object
    Description
  • Name
    total
    Type
    number
    Description
    the total number of records
  • Name
    totalCents
    Type
    integer Required
    Description
    The total cost of the deferred services on this page

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/:parentId/deferred_service
curl https://api.shopmonkey.cloud/v3/vehicle/:parentId/deferred_service \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "data": [
    {
      "authorizationStatus": "authorizationStatus",
      "calculatedDiscountCents": 1,
      "calculatedDiscountPercent": 1,
      "calculatedEpaCents": 1,
      "calculatedFeeCents": 1,
      "calculatedGSTCents": 1,
      "calculatedHSTCents": 1,
      "calculatedLaborCents": 1,
      "calculatedPartsCents": 1,
      "calculatedPSTCents": 1,
      "calculatedShopSuppliesCents": 1,
      "calculatedSubcontractsCents": 1,
      "calculatedTaxCents": 1,
      "calculatedTiresCents": 1,
      "categoryId": null,
      "companyId": "companyId",
      "createdDate": "createdDate",
      "deferredDate": null,
      "deferredReason": null,
      "discountCents": 1,
      "discountPercent": 1,
      "discountValueType": "discountValueType",
      "epaCents": 1,
      "epaPercent": 1,
      "epaValueType": "epaValueType",
      "excludedFromDeferred": true,
      "fixedPriceCents": 1,
      "gstCents": 1,
      "gstPercent": 1,
      "gstValueType": "gstValueType",
      "hidden": true,
      "hideLineItemPricing": true,
      "hstCents": 1,
      "hstPercent": 1,
      "hstValueType": "hstValueType",
      "id": "id",
      "lineItemInventoryStatus": "lineItemInventoryStatus",
      "locationId": "locationId",
      "lumpSum": true,
      "motorApplicationId": null,
      "name": "name",
      "note": "note",
      "orderId": "orderId",
      "ordinal": 1,
      "pricing": "pricing",
      "provider": null,
      "providerApplicationId": null,
      "pstCents": 1,
      "pstPercent": 1,
      "pstValueType": "pstValueType",
      "recommended": true,
      "revived": true,
      "revivedFromId": null,
      "shopSuppliesApplied": true,
      "shopSuppliesCents": 1,
      "shopSuppliesPercent": 1,
      "shopSuppliesValueType": "shopSuppliesValueType",
      "sourceServiceId": null,
      "taxCents": 1,
      "taxPercent": 1,
      "taxValueType": "taxValueType",
      "totalCents": 1,
      "updatedDate": null,
      "order": {
        "customerId": null,
        "generatedCustomerName": null,
        "generatedVehicleName": null,
        "number": "number",
        "vehicleId": null
      },
      "fees": [
        {
          "amountCents": 1,
          "categoryId": null,
          "companyId": "companyId",
          "createdDate": "createdDate",
          "feeType": "feeType",
          "id": "id",
          "inventoryFeeId": null,
          "laborId": null,
          "lineItemEntity": null,
          "locationId": "locationId",
          "name": "name",
          "orderId": "orderId",
          "ordinal": 1,
          "partId": null,
          "percent": 1,
          "serviceId": "serviceId",
          "sourceItemId": null,
          "subcontractId": null,
          "subtotalCents": null,
          "tireId": null,
          "updatedDate": null,
          "category": {
            "id": "id",
            "name": "name",
            "parent": {
              "id": "id",
              "name": "name"
            }
          }
        }
      ],
      "labors": [
        {
          "applicationId": null,
          "categoryId": null,
          "companyId": "companyId",
          "completed": true,
          "completedDate": null,
          "costHours": null,
          "costRateCents": null,
          "costTotalCents": null,
          "createdDate": "createdDate",
          "discountCents": 1,
          "discountPercent": 1,
          "discountValueType": "discountValueType",
          "hours": 1,
          "id": "id",
          "inventoryLaborId": null,
          "laborMatrixDate": null,
          "laborMatrixId": null,
          "locationId": "locationId",
          "motorApplicationId": null,
          "multiplier": 1,
          "multiplierType": "multiplierType",
          "name": null,
          "note": "note",
          "orderId": "orderId",
          "ordinal": 1,
          "provider": null,
          "providerApplicationId": null,
          "rateCents": 1,
          "rateId": null,
          "serviceId": "serviceId",
          "showHours": true,
          "showNote": true,
          "skillRequired": null,
          "skillRequiredDescription": null,
          "sourceItemId": null,
          "taxable": true,
          "taxableGST": true,
          "taxableHST": true,
          "taxablePST": true,
          "technicianId": null,
          "updatedDate": null,
          "category": {
            "id": "id",
            "name": "name",
            "parent": {
              "id": "id",
              "name": "name"
            }
          },
          "laborMatrix": {
            "id": "id",
            "name": "name"
          },
          "laborRate": {
            "id": "id",
            "name": "name"
          }
        }
      ],
      "parts": [
        {
          "binLocation": "binLocation",
          "calculatedCOGSCents": null,
          "categoryId": null,
          "companyId": "companyId",
          "createdDate": "createdDate",
          "discountCents": 1,
          "discountPercent": 1,
          "discountValueType": "discountValueType",
          "fixedPriceLimitPriceCents": null,
          "fixedPriceLimitQuantity": null,
          "fixedPriceLimitType": null,
          "id": "id",
          "inventoryPartId": null,
          "inventoryStatus": "inventoryStatus",
          "inventoryTransferPartId": null,
          "locationId": "locationId",
          "motorApplicationId": null,
          "motorCommercialPartsId": null,
          "name": "name",
          "normalizedSKU": null,
          "note": "note",
          "orderId": "orderId",
          "ordinal": 1,
          "originalWholesaleCostCents": null,
          "partNumber": null,
          "pcDbTerminologyId": null,
          "pricingMatrixDate": null,
          "pricingMatrixId": null,
          "provider": null,
          "providerApplicationId": null,
          "purchaseOrderPartId": null,
          "purchaseStatus": null,
          "quantity": 1,
          "reduceInventoryCount": true,
          "reserved": true,
          "retailCostCents": 1,
          "serviceId": "serviceId",
          "showCostAndQuantity": true,
          "showNote": true,
          "showPartNumber": true,
          "sku": null,
          "sourceItemId": null,
          "taxable": true,
          "taxableGST": true,
          "taxableHST": true,
          "taxablePST": true,
          "updatedDate": null,
          "url": null,
          "vendorId": null,
          "wholesaleCostCents": null,
          "category": {
            "id": "id",
            "name": "name",
            "parent": {
              "id": "id",
              "name": "name"
            }
          },
          "pricingMatrix": {
            "id": "id",
            "name": "name"
          },
          "vendor": {
            "id": "id",
            "name": "name"
          }
        }
      ],
      "subcontracts": [
        {
          "categoryId": null,
          "companyId": "companyId",
          "costCents": 1,
          "createdDate": "createdDate",
          "discountCents": 1,
          "discountPercent": 1,
          "discountValueType": "discountValueType",
          "id": "id",
          "locationId": "locationId",
          "name": "name",
          "note": null,
          "orderId": "orderId",
          "ordinal": 1,
          "retailCostCents": 1,
          "serviceId": "serviceId",
          "showNote": true,
          "sourceItemId": null,
          "taxable": true,
          "taxableGST": true,
          "taxableHST": true,
          "taxablePST": true,
          "updatedDate": null,
          "vendorId": null,
          "category": {
            "id": "id",
            "name": "name",
            "parent": {
              "id": "id",
              "name": "name"
            }
          },
          "vendor": {
            "id": "id",
            "name": "name"
          }
        }
      ],
      "tires": [
        {
          "binLocation": null,
          "calculatedCOGSCents": null,
          "calculatedName": "calculatedName",
          "companyId": "companyId",
          "createdDate": "createdDate",
          "discountCents": 1,
          "discountPercent": 1,
          "discountValueType": "discountValueType",
          "federalExciseTaxCents": 1,
          "generatedBrandName": "generatedBrandName",
          "generatedModelName": "generatedModelName",
          "id": "id",
          "inventoryStatus": "inventoryStatus",
          "inventoryTireId": null,
          "inventoryTransferTireId": null,
          "locationId": "locationId",
          "name": "name",
          "normalizedSKU": null,
          "note": null,
          "orderId": "orderId",
          "ordinal": 1,
          "originalWholesaleCostCents": null,
          "partNumber": null,
          "pricingMatrixDate": null,
          "pricingMatrixId": null,
          "purchaseOrderTireId": null,
          "purchaseStatus": null,
          "quantity": 1,
          "reduceInventoryCount": true,
          "reserved": true,
          "retailCostCents": 1,
          "serviceId": "serviceId",
          "showNote": true,
          "showPartNumber": true,
          "showPriceAndQuantity": true,
          "size": null,
          "sizeFormat": "sizeFormat",
          "sku": null,
          "sourceItemId": null,
          "taxable": true,
          "taxableGST": true,
          "taxableHST": true,
          "taxablePST": true,
          "tireIdentificationNumbers": [
            "tireIdentificationNumbers"
          ],
          "tireModelId": null,
          "updatedDate": null,
          "url": null,
          "wasteTireFee": 1,
          "wholesaleCostCents": null,
          "tireModel": {
            "id": "id",
            "name": "name"
          },
          "pricingMatrix": {
            "id": "id",
            "name": "name"
          }
        }
      ]
    }
  ],
  "success": true
}

GET/v3/vehicle/:parentId/owners

Find Owners

Find the owners for a Vehicle

URL parameters

  • Name
    parentId
    Type
    string Required
    Description
    the id for the parent of the data to retrieve

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    array Required
    Description
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    meta
    Type
    object
    Description
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Properties for meta object

  • Name
    hasMore
    Type
    boolean
    Description
    if there are more records available
  • Name
    lastRefreshedAt
    Type
    string
    Description
    the last refreshed at timestamp
  • Name
    sums
    Type
    object
    Description
  • Name
    total
    Type
    number
    Description
    the total number of records

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/:parentId/owners
curl https://api.shopmonkey.cloud/v3/vehicle/:parentId/owners \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "data": [
    {
      "address1": null,
      "address2": null,
      "appointmentCount": 1,
      "city": null,
      "coalescedFirstNameOrCompanyName": null,
      "companyId": "companyId",
      "companyName": null,
      "country": null,
      "createdDate": "createdDate",
      "customerType": "customerType",
      "deferredServiceCount": 1,
      "deleted": true,
      "deletedDate": null,
      "deletedReason": null,
      "deletedUserId": null,
      "discountPercent": 1,
      "dotNumber": null,
      "externalId": null,
      "finixIdentityId": null,
      "firstName": null,
      "fleetId": null,
      "gstExempt": true,
      "hqCustomerId": null,
      "hstExempt": true,
      "id": "id",
      "imported": true,
      "laborMatrixId": null,
      "laborRateId": null,
      "lastName": null,
      "lastTimeOrderWorked": null,
      "locationIds": [
        "locationIds"
      ],
      "marketingOptIn": true,
      "messageCount": 1,
      "normalizedFirstName": null,
      "normalizedLastName": null,
      "normalizedName": null,
      "note": "note",
      "orderCount": 1,
      "originLocationId": null,
      "paymentTermId": null,
      "postalCode": null,
      "preferredContactMethod": null,
      "preferredLanguage": "preferredLanguage",
      "pricingMatrixId": null,
      "pstExempt": true,
      "publicId": "publicId",
      "referralSourceId": null,
      "showLaborHours": true,
      "showLaborNote": true,
      "showPartCostAndQuantity": true,
      "showPartNote": true,
      "showPartNumber": true,
      "showSubcontractNote": true,
      "state": null,
      "statementCount": 1,
      "taxExempt": true,
      "transactionCount": 1,
      "updatedDate": null,
      "vehicleCount": 1,
      "website": null,
      "phoneNumbers": [
        {
          "carrierName": null,
          "companyId": "companyId",
          "country": null,
          "createdDate": "createdDate",
          "customerId": "customerId",
          "extension": null,
          "hqPhoneNumberId": null,
          "id": "id",
          "imported": true,
          "locationId": "locationId",
          "mobileCountryCode": null,
          "mobileNetworkCode": null,
          "number": "number",
          "primary": true,
          "type": null,
          "updatedDate": null,
          "userDefinedType": null
        }
      ],
      "connectedLocationIds": [
        "connectedLocationIds"
      ],
      "emails": [
        {
          "companyId": "companyId",
          "createdDate": "createdDate",
          "customerId": "customerId",
          "email": "email",
          "hqEmailId": null,
          "id": "id",
          "locationId": "locationId",
          "marketingOptIn": true,
          "primary": true,
          "subscribed": true,
          "updatedDate": null
        }
      ]
    }
  ],
  "success": true
}

PUT/v3/vehicle/:id/owner

Update Owner

Update the owner of the Vehicle

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id for the vehicle

Body parameters

Consumes

The following content type is required: application/json

  • Name
    customerId
    Type
    string Required
    Description
    the customer id

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description
    Vehicle schema

Properties for data object

  • Name
    appointmentCount
    Type
    integer Required
    Description
  • Name
    baseId
    Type
    integer Required
    Description
    vcdb base id
  • Name
    bedLength
    Type
    string Required
    Description
  • Name
    bodyStyle
    Type
    string Required
    Description
  • Name
    bodyStyleId
    Type
    integer Required
    Description
    vcdb body style id
  • Name
    coalescedVINorHIN
    Type
    string Required
    Description
  • Name
    color
    Type
    one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
    Description
  • Name
    companyId
    Type
    string Required
    Description
  • Name
    computed_ymm
    Type
    string Required
    Description
  • Name
    configurationStatus
    Type
    one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
    Description
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    customPhoto
    Type
    boolean Required
    Description
  • Name
    deferredServiceCount
    Type
    integer Required
    Description
  • Name
    deleted
    Type
    boolean Required
    Description
    if the record has been deleted
  • Name
    deletedDate
    Type
    string Required
    Description
    the date that the record was deleted or null if not deleted
  • Name
    deletedReason
    Type
    string Required
    Description
    the reason that the record was deleted
  • Name
    deletedUserId
    Type
    string Required
    Description
    the user that deleted the record or null if not deleted
  • Name
    drivetrain
    Type
    one of: RWD, FWD, FourWD, AWD Required
    Description
  • Name
    drivetype
    Type
    string Required
    Description
  • Name
    drivetypeId
    Type
    integer Required
    Description
    vcdb drivetype id
  • Name
    drivingCondition
    Type
    one of: Normal, Severe Required
    Description
  • Name
    engine
    Type
    string Required
    Description
  • Name
    engineId
    Type
    integer Required
    Description
    vcdb engine id
  • Name
    externalId
    Type
    string Required
    Description
    an id that can be used to reference the vehicle in an external system
  • Name
    frontTireSize
    Type
    string Required
    Description
    custom front tire size override value
  • Name
    hin
    Type
    string Required
    Description
    Vessel hull identification number
  • Name
    hqVehicleId
    Type
    string Required
    Description
    /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
  • Name
    id
    Type
    string Required
    Description
  • Name
    imported
    Type
    boolean Required
    Description
  • Name
    labels
    Type
    object Required
    Description
  • Name
    lastServicedDate
    Type
    string Required
    Description
  • Name
    length
    Type
    number Required
    Description
  • Name
    lengthUnit
    Type
    one of: Ft, M Required
    Description
  • Name
    licensePlate
    Type
    string Required
    Description
  • Name
    licensePlateCountry
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    licensePlateState
    Type
    string Required
    Description
  • Name
    locationIds
    Type
    array Required
    Description
  • Name
    make
    Type
    string Required
    Description
    holds Hull make for vessel
  • Name
    makeId
    Type
    integer Required
    Description
    vcdb make id
  • Name
    messageCount
    Type
    integer Required
    Description
  • Name
    mileage
    Type
    number Required
    Description
  • Name
    mileageLogCount
    Type
    integer Required
    Description
  • Name
    mileageUnit
    Type
    one of: Mile, Kilometer Required
    Description
  • Name
    model
    Type
    string Required
    Description
  • Name
    modelId
    Type
    integer Required
    Description
    vcdb model id
  • Name
    name
    Type
    string Required
    Description
    Custom vehicle name / Vessel registered name
  • Name
    note
    Type
    string Required
    Description
  • Name
    odometer
    Type
    boolean Required
    Description
  • Name
    orderCount
    Type
    integer Required
    Description
  • Name
    originLocationId
    Type
    string Required
    Description
    the location that created the vehicle
  • Name
    ownerCount
    Type
    integer Required
    Description
  • Name
    preferredLaborGuide
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    productionDate
    Type
    string Required
    Description
  • Name
    rearTireSize
    Type
    string Required
    Description
    custom rear tire size override value
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    serial
    Type
    string Required
    Description
  • Name
    size
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    stockPhoto
    Type
    boolean Required
    Description
  • Name
    submodel
    Type
    string Required
    Description
  • Name
    submodelId
    Type
    integer Required
    Description
    vcdb submodel id
  • Name
    tirePressureLogCount
    Type
    integer Required
    Description
  • Name
    transmission
    Type
    one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
    Description
  • Name
    transmissionId
    Type
    integer Required
    Description
    vcdb transmission id
  • Name
    transmissionMfrCode
    Type
    string Required
    Description
  • Name
    transmissionSpeed
    Type
    string Required
    Description
  • Name
    type
    Type
    one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
    Description
  • Name
    unit
    Type
    string Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    vcdbId
    Type
    integer Required
    Description
    vcdb id
  • Name
    vcdbVehicleId
    Type
    string Required
    Description
    id of vcdb_vehicle record
  • Name
    vin
    Type
    string Required
    Description
  • Name
    year
    Type
    integer Required
    Description
  • Name
    customFields
    Type
    object Deprecated
    Description
    DEPRECATED: custom fields as JSON object. This is no longer supported.
  • Name
    engineHoursLogs
    Type
    array
    Description
  • Name
    engines
    Type
    array
    Description

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

PUT
/v3/vehicle/:id/owner
curl https://api.shopmonkey.cloud/v3/vehicle/:id/owner \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -X PUT -H 'Content-Type: application/json' \
  --data '{ "customerId" : "value" }'

Example Response
application/json

{
  "success": true,
  "data": {
    "appointmentCount": 1,
    "baseId": null,
    "bedLength": null,
    "bodyStyle": null,
    "bodyStyleId": null,
    "coalescedVINorHIN": null,
    "color": null,
    "companyId": "companyId",
    "computed_ymm": null,
    "configurationStatus": null,
    "createdDate": "createdDate",
    "customPhoto": true,
    "deferredServiceCount": 1,
    "deleted": true,
    "deletedDate": null,
    "deletedReason": null,
    "deletedUserId": null,
    "drivetrain": null,
    "drivetype": null,
    "drivetypeId": null,
    "drivingCondition": null,
    "engine": null,
    "engineId": null,
    "externalId": null,
    "frontTireSize": null,
    "hin": null,
    "hqVehicleId": null,
    "id": "id",
    "imported": true,
    "lastServicedDate": null,
    "length": null,
    "lengthUnit": null,
    "licensePlate": null,
    "licensePlateCountry": "licensePlateCountry",
    "licensePlateState": null,
    "locationIds": [
      "locationIds"
    ],
    "make": null,
    "makeId": null,
    "messageCount": 1,
    "mileage": null,
    "mileageLogCount": 1,
    "mileageUnit": "mileageUnit",
    "model": null,
    "modelId": null,
    "name": null,
    "note": "note",
    "odometer": true,
    "orderCount": 1,
    "originLocationId": null,
    "ownerCount": 1,
    "preferredLaborGuide": "preferredLaborGuide",
    "productionDate": null,
    "rearTireSize": null,
    "region": null,
    "serial": null,
    "size": "size",
    "stockPhoto": true,
    "submodel": null,
    "submodelId": null,
    "tirePressureLogCount": 1,
    "transmission": null,
    "transmissionId": null,
    "transmissionMfrCode": null,
    "transmissionSpeed": null,
    "type": null,
    "unit": null,
    "updatedDate": null,
    "vcdbId": null,
    "vcdbVehicleId": null,
    "vin": null,
    "year": null,
    "customFields": {},
    "engineHoursLogs": [
      {
        "engineId": "engineId",
        "orderId": "orderId",
        "orderNumber": "orderNumber",
        "updated": 1
      }
    ],
    "engines": [
      {
        "id": "id",
        "make": "make",
        "model": "model",
        "noHoursMeter": true
      }
    ]
  }
}

DELETE/v3/vehicle/:id/owner

Delete Owner

Delete the owner of the Vehicle

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id for the vehicle

Body parameters

Consumes

The following content type is required: application/json

  • Name
    customerId
    Type
    string Required
    Description
    the customer id

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description
    Vehicle schema

Properties for data object

  • Name
    appointmentCount
    Type
    integer Required
    Description
  • Name
    baseId
    Type
    integer Required
    Description
    vcdb base id
  • Name
    bedLength
    Type
    string Required
    Description
  • Name
    bodyStyle
    Type
    string Required
    Description
  • Name
    bodyStyleId
    Type
    integer Required
    Description
    vcdb body style id
  • Name
    coalescedVINorHIN
    Type
    string Required
    Description
  • Name
    color
    Type
    one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
    Description
  • Name
    companyId
    Type
    string Required
    Description
  • Name
    computed_ymm
    Type
    string Required
    Description
  • Name
    configurationStatus
    Type
    one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
    Description
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    customPhoto
    Type
    boolean Required
    Description
  • Name
    deferredServiceCount
    Type
    integer Required
    Description
  • Name
    deleted
    Type
    boolean Required
    Description
    if the record has been deleted
  • Name
    deletedDate
    Type
    string Required
    Description
    the date that the record was deleted or null if not deleted
  • Name
    deletedReason
    Type
    string Required
    Description
    the reason that the record was deleted
  • Name
    deletedUserId
    Type
    string Required
    Description
    the user that deleted the record or null if not deleted
  • Name
    drivetrain
    Type
    one of: RWD, FWD, FourWD, AWD Required
    Description
  • Name
    drivetype
    Type
    string Required
    Description
  • Name
    drivetypeId
    Type
    integer Required
    Description
    vcdb drivetype id
  • Name
    drivingCondition
    Type
    one of: Normal, Severe Required
    Description
  • Name
    engine
    Type
    string Required
    Description
  • Name
    engineId
    Type
    integer Required
    Description
    vcdb engine id
  • Name
    externalId
    Type
    string Required
    Description
    an id that can be used to reference the vehicle in an external system
  • Name
    frontTireSize
    Type
    string Required
    Description
    custom front tire size override value
  • Name
    hin
    Type
    string Required
    Description
    Vessel hull identification number
  • Name
    hqVehicleId
    Type
    string Required
    Description
    /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
  • Name
    id
    Type
    string Required
    Description
  • Name
    imported
    Type
    boolean Required
    Description
  • Name
    labels
    Type
    object Required
    Description
  • Name
    lastServicedDate
    Type
    string Required
    Description
  • Name
    length
    Type
    number Required
    Description
  • Name
    lengthUnit
    Type
    one of: Ft, M Required
    Description
  • Name
    licensePlate
    Type
    string Required
    Description
  • Name
    licensePlateCountry
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    licensePlateState
    Type
    string Required
    Description
  • Name
    locationIds
    Type
    array Required
    Description
  • Name
    make
    Type
    string Required
    Description
    holds Hull make for vessel
  • Name
    makeId
    Type
    integer Required
    Description
    vcdb make id
  • Name
    messageCount
    Type
    integer Required
    Description
  • Name
    mileage
    Type
    number Required
    Description
  • Name
    mileageLogCount
    Type
    integer Required
    Description
  • Name
    mileageUnit
    Type
    one of: Mile, Kilometer Required
    Description
  • Name
    model
    Type
    string Required
    Description
  • Name
    modelId
    Type
    integer Required
    Description
    vcdb model id
  • Name
    name
    Type
    string Required
    Description
    Custom vehicle name / Vessel registered name
  • Name
    note
    Type
    string Required
    Description
  • Name
    odometer
    Type
    boolean Required
    Description
  • Name
    orderCount
    Type
    integer Required
    Description
  • Name
    originLocationId
    Type
    string Required
    Description
    the location that created the vehicle
  • Name
    ownerCount
    Type
    integer Required
    Description
  • Name
    preferredLaborGuide
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    productionDate
    Type
    string Required
    Description
  • Name
    rearTireSize
    Type
    string Required
    Description
    custom rear tire size override value
  • Name
    region
    Type
    one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
    Description
  • Name
    serial
    Type
    string Required
    Description
  • Name
    size
    Type
    one of: HeavyDuty, LightDuty, Other Required
    Description
  • Name
    stockPhoto
    Type
    boolean Required
    Description
  • Name
    submodel
    Type
    string Required
    Description
  • Name
    submodelId
    Type
    integer Required
    Description
    vcdb submodel id
  • Name
    tirePressureLogCount
    Type
    integer Required
    Description
  • Name
    transmission
    Type
    one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
    Description
  • Name
    transmissionId
    Type
    integer Required
    Description
    vcdb transmission id
  • Name
    transmissionMfrCode
    Type
    string Required
    Description
  • Name
    transmissionSpeed
    Type
    string Required
    Description
  • Name
    type
    Type
    one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
    Description
  • Name
    unit
    Type
    string Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    vcdbId
    Type
    integer Required
    Description
    vcdb id
  • Name
    vcdbVehicleId
    Type
    string Required
    Description
    id of vcdb_vehicle record
  • Name
    vin
    Type
    string Required
    Description
  • Name
    year
    Type
    integer Required
    Description
  • Name
    customFields
    Type
    object Deprecated
    Description
    DEPRECATED: custom fields as JSON object. This is no longer supported.
  • Name
    engineHoursLogs
    Type
    array
    Description
  • Name
    engines
    Type
    array
    Description

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

DELETE
/v3/vehicle/:id/owner
curl https://api.shopmonkey.cloud/v3/vehicle/:id/owner \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -X DELETE -H 'Content-Type: application/json' \
  --data '{ "customerId" : "value" }'

Example Response
application/json

{
  "success": true,
  "data": {
    "appointmentCount": 1,
    "baseId": null,
    "bedLength": null,
    "bodyStyle": null,
    "bodyStyleId": null,
    "coalescedVINorHIN": null,
    "color": null,
    "companyId": "companyId",
    "computed_ymm": null,
    "configurationStatus": null,
    "createdDate": "createdDate",
    "customPhoto": true,
    "deferredServiceCount": 1,
    "deleted": true,
    "deletedDate": null,
    "deletedReason": null,
    "deletedUserId": null,
    "drivetrain": null,
    "drivetype": null,
    "drivetypeId": null,
    "drivingCondition": null,
    "engine": null,
    "engineId": null,
    "externalId": null,
    "frontTireSize": null,
    "hin": null,
    "hqVehicleId": null,
    "id": "id",
    "imported": true,
    "lastServicedDate": null,
    "length": null,
    "lengthUnit": null,
    "licensePlate": null,
    "licensePlateCountry": "licensePlateCountry",
    "licensePlateState": null,
    "locationIds": [
      "locationIds"
    ],
    "make": null,
    "makeId": null,
    "messageCount": 1,
    "mileage": null,
    "mileageLogCount": 1,
    "mileageUnit": "mileageUnit",
    "model": null,
    "modelId": null,
    "name": null,
    "note": "note",
    "odometer": true,
    "orderCount": 1,
    "originLocationId": null,
    "ownerCount": 1,
    "preferredLaborGuide": "preferredLaborGuide",
    "productionDate": null,
    "rearTireSize": null,
    "region": null,
    "serial": null,
    "size": "size",
    "stockPhoto": true,
    "submodel": null,
    "submodelId": null,
    "tirePressureLogCount": 1,
    "transmission": null,
    "transmissionId": null,
    "transmissionMfrCode": null,
    "transmissionSpeed": null,
    "type": null,
    "unit": null,
    "updatedDate": null,
    "vcdbId": null,
    "vcdbVehicleId": null,
    "vin": null,
    "year": null,
    "customFields": {},
    "engineHoursLogs": [
      {
        "engineId": "engineId",
        "orderId": "orderId",
        "orderNumber": "orderNumber",
        "updated": 1
      }
    ],
    "engines": [
      {
        "id": "id",
        "make": "make",
        "model": "model",
        "noHoursMeter": true
      }
    ]
  }
}

GET/v3/vehicle/:parentId/order_detail

Find Vehicle Order statistics

Get order statistics for a vehicle

URL parameters

  • Name
    parentId
    Type
    string Required
    Description
    the id for the parent of the data to retrieve

Produces

The response content type: application/json

200 Response

  • Name
    data
    Type
    object Required
    Description
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Properties for data object

  • Name
    avgTotalCostCents
    Type
    number
    Description
    average spend for vehicle
  • Name
    lastInvoicedDate
    Type
    string
    Description
    date of the last invoice
  • Name
    remainingCostCents
    Type
    number
    Description
    total unpaid for vehicle
  • Name
    totals
    Type
    object Required
    Description

Properties for totals object

  • Name
    laborCents
    Type
    number
    Description
    total labor spend on vehicle
  • Name
    partsCents
    Type
    number
    Description
    total parts spend on vehicle
  • Name
    subcontractsCents
    Type
    number
    Description
    total subcontract spend on vehicle
  • Name
    tiresCents
    Type
    number
    Description
    total tire spend on vehicle
  • Name
    totalCostCents
    Type
    number
    Description
    total spend on vehicle

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/:parentId/order_detail
curl https://api.shopmonkey.cloud/v3/vehicle/:parentId/order_detail \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "data": {
    "avgTotalCostCents": 1,
    "lastInvoicedDate": null,
    "remainingCostCents": 1,
    "totals": {
      "laborCents": 1,
      "partsCents": 1,
      "subcontractsCents": 1,
      "tiresCents": 1,
      "totalCostCents": 1
    }
  },
  "success": true
}

PUT/v3/vehicle/:id/image

Assign Custom Image

Assign a custom Vehicle image

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id of the vehicle

Body parameters

Consumes

The following content type is required: application/json

  • Name
    blobId
    Type
    string Required
    Description
    the id of the blob

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description

Properties for data object

  • Name
    blobId
    Type
    string Required
    Description
    the id of the blob
  • Name
    vehicleId
    Type
    string Required
    Description
    the id of the vehicle

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

PUT
/v3/vehicle/:id/image
curl https://api.shopmonkey.cloud/v3/vehicle/:id/image \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -X PUT -H 'Content-Type: application/json' \
  --data '{ "blobId" : "value" }'

Example Response
application/json

{
  "success": true,
  "data": {
    "vehicleId": "vehicleId",
    "blobId": "blobId"
  }
}

DELETE/v3/vehicle/:id/image

Unassign Custom Image

Unassign a custom Vehicle image

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id of the vehicle

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description

Properties for data object

  • Name
    blobId
    Type
    string Required
    Description
    the id of the blob
  • Name
    vehicleId
    Type
    string Required
    Description
    the id of the vehicle

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

DELETE
/v3/vehicle/:id/image
curl https://api.shopmonkey.cloud/v3/vehicle/:id/image \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -X DELETE -H 'Content-Type: application/json' \
  --data '{}'

Example Response
application/json

{
  "success": true,
  "data": {
    "vehicleId": "vehicleId",
    "blobId": "blobId"
  }
}

GET/v3/vehicle/:id/image

Find Image

Find the image for a Vehicle

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id of the vehicle

Query String parameters

  • Name
    authorization
    Type
    string
    Description
    optional authorization token
  • Name
    inline
    Type
    boolean
    Description
  • Name
    thumbnail
    Type
    boolean
    Description
    when true, serve the pre-generated GCS thumbnail ({blobId}_thumb.jpeg) or Cloudinary thumbnail transform instead of the full original
  • Name
    transform
    Type
    string
    Description
    an optional transformation to apply to the blob

302 Response

Example Request

GET
/v3/vehicle/:id/image
curl https://api.shopmonkey.cloud/v3/vehicle/:id/image \
  -H "Authorization: Bearer ${SM_TOKEN}"

GET/v3/vehicle/:parentId/mileage

Find Mileage Logs

Find the Mileage Logs for a Vehicle

URL parameters

  • Name
    parentId
    Type
    string Required
    Description
    the id for the parent of the data to retrieve

Query String parameters

  • Name
    collate
    Type
    boolean
    Description
    if set to true, use natural sort collation when used with orderBy
  • Name
    ids
    Type
    array
    Description
  • Name
    limit
    Type
    number
    Description
    the limit on the number of records to return
  • Name
    orderby
    Type
    string
    Description
    the order instructions for the result
  • Name
    params
    Type
    string
    Description
    additional request specific params
  • Name
    skip
    Type
    number
    Description
    the number of records to skip for a paginated result
  • Name
    where
    Type
    string
    Description
    an object to use for filtering the results

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    array Required
    Description
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    meta
    Type
    object
    Description
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Properties for meta object

  • Name
    hasMore
    Type
    boolean
    Description
    if there are more records available
  • Name
    lastRefreshedAt
    Type
    string
    Description
    the last refreshed at timestamp
  • Name
    sums
    Type
    object
    Description
  • Name
    total
    Type
    number
    Description
    the total number of records

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/:parentId/mileage
curl https://api.shopmonkey.cloud/v3/vehicle/:parentId/mileage \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "data": [
    {
      "id": "id",
      "createdDate": "createdDate",
      "updatedDate": null,
      "companyId": "companyId",
      "locationId": "locationId",
      "type": "type",
      "mileage": 1,
      "mileageDate": "mileageDate",
      "vehicleId": "vehicleId",
      "orderId": null,
      "order": {
        "number": "number"
      }
    }
  ],
  "success": true
}

POST/v3/vehicle/:id/mileage

Upsert Mileage Log

Add a manual entry Mileage Log for a Vehicle or upsert an Order in/out Mileage Log

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id for a vehicle

Body parameters

Consumes

The following content type is required: application/json

  • Name
    mileage
    Type
    number Required
    Description
  • Name
    mileageDate
    Type
    string
    Description
  • Name
    orderId
    Type
    string
    Description
  • Name
    type
    Type
    one of: ManualEntry, OrderIn, OrderOut Required
    Description
  • Name
    locationId
    Type
    string
    Description
    the id for the location

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    array Required
    Description
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

POST
/v3/vehicle/:id/mileage
curl https://api.shopmonkey.cloud/v3/vehicle/:id/mileage \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -H 'Content-Type: application/json' \
  --data '{ "mileage" : 0, "type" : "value" }'

Example Response
application/json

{
  "data": [
    {
      "companyId": "companyId",
      "createdDate": "createdDate",
      "id": "id",
      "locationId": "locationId",
      "mileage": 1,
      "mileageDate": "mileageDate",
      "orderId": null,
      "type": "type",
      "updatedDate": null,
      "vehicleId": "vehicleId",
      "order": {
        "number": "number"
      }
    }
  ],
  "success": true
}

PUT/v3/vehicle/:id/mileage/:mileageLogId

Update Mileage Log

Update the specified Mileage Log for a Vehicle

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id for the vehicle
  • Name
    mileageLogId
    Type
    string Required
    Description
    the id for the mileage log

Body parameters

Consumes

The following content type is required: application/json

  • Name
    mileage
    Type
    number
    Description
  • Name
    mileageDate
    Type
    string
    Description

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description
    MileageLog schema

Properties for data object

  • Name
    companyId
    Type
    string Required
    Description
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    id
    Type
    string Required
    Description
  • Name
    locationId
    Type
    string Required
    Description
  • Name
    mileage
    Type
    number Required
    Description
  • Name
    mileageDate
    Type
    string Required
    Description
  • Name
    orderId
    Type
    string Required
    Description
  • Name
    type
    Type
    one of: ManualEntry, OrderIn, OrderOut Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    vehicleId
    Type
    string Required
    Description

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

PUT
/v3/vehicle/:id/mileage/:mileageLogId
curl https://api.shopmonkey.cloud/v3/vehicle/:id/mileage/:mileageLogId \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -X PUT -H 'Content-Type: application/json' \
  --data '{}'

Example Response
application/json

{
  "success": true,
  "data": {
    "id": "id",
    "createdDate": "createdDate",
    "updatedDate": null,
    "companyId": "companyId",
    "locationId": "locationId",
    "type": "type",
    "mileage": 1,
    "mileageDate": "mileageDate",
    "vehicleId": "vehicleId",
    "orderId": null
  }
}

DELETE/v3/vehicle/:id/mileage/:mileageLogId

Delete Mileage Log

Delete the specified Mileage Log for a Vehicle

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id for a vehicle
  • Name
    mileageLogId
    Type
    string Required
    Description
    the id for the mileage log

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    array Required
    Description
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

DELETE
/v3/vehicle/:id/mileage/:mileageLogId
curl https://api.shopmonkey.cloud/v3/vehicle/:id/mileage/:mileageLogId \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -X DELETE -H 'Content-Type: application/json' \
  --data '{}'

Example Response
application/json

{
  "success": true,
  "data": [
    {
      "id": "id",
      "createdDate": "createdDate",
      "updatedDate": null,
      "companyId": "companyId",
      "locationId": "locationId",
      "type": "type",
      "mileage": 1,
      "mileageDate": "mileageDate",
      "vehicleId": "vehicleId",
      "orderId": null
    }
  ]
}

GET/v3/vehicle/:parentId/engine_log

Find Engine Hours Logs

Find Engine Hours Logs for the Vehicle

URL parameters

  • Name
    parentId
    Type
    string Required
    Description
    the id for the parent of the data to retrieve

Produces

The response content type: application/json

200 Response

  • Name
    data
    Type
    object Required
    Description
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Properties for data object

  • Name
    engineHoursLogs
    Type
    array
    Description
  • Name
    engines
    Type
    array
    Description
  • Name
    vehicleId
    Type
    string Required
    Description

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/vehicle/:parentId/engine_log
curl https://api.shopmonkey.cloud/v3/vehicle/:parentId/engine_log \
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "data": {
    "engineHoursLogs": [
      {
        "engineId": "engineId",
        "orderId": "orderId",
        "orderNumber": "orderNumber",
        "updated": 1,
        "location": {
          "companyId": "companyId",
          "id": "id",
          "name": "name"
        }
      }
    ],
    "engines": [
      {
        "id": "id",
        "make": "make",
        "model": "model",
        "noHoursMeter": true
      }
    ],
    "vehicleId": "vehicleId"
  },
  "success": true
}

PUT/v3/vehicle/:id/engine_log

Upsert Vehicle engine hours logs

Upsert the Order in/out Engine Hours Log

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id for a vehicle

Body parameters

Consumes

The following content type is required: application/json

  • Name
    engineId
    Type
    string Required
    Description
    Vehicle engine ID
  • Name
    inHours
    Type
    one of: any, null Required
    Description
  • Name
    orderId
    Type
    string Required
    Description
    ID of the related order
  • Name
    orderNumber
    Type
    string Required
    Description
    User friendly order number
  • Name
    outHours
    Type
    one of: any, null Required
    Description
  • Name
    updated
    Type
    integer Required
    Description
    Timestamp when this log was updated

Produces

The response content type: application/json

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if success = false
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description

Properties for data object

  • Name
    engineHoursLogs
    Type
    array
    Description
  • Name
    engines
    Type
    array
    Description
  • Name
    vehicleId
    Type
    string Required
    Description

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    data
    Type
    object
    Description
    An optional object containing relevant error data
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request
application/json

PUT
/v3/vehicle/:id/engine_log
curl https://api.shopmonkey.cloud/v3/vehicle/:id/engine_log \
  -H "Authorization: Bearer ${SM_TOKEN}" \
  -X PUT -H 'Content-Type: application/json' \
  --data '{ "engineId" : "value", "inHours" : "", "orderId" : "value", "orderNumber" : "value", "outHours" : "", "updated" : 0 }'

Example Response
application/json

{
  "success": true,
  "data": {
    "engineHoursLogs": [
      {
        "engineId": "engineId",
        "orderId": "orderId",
        "orderNumber": "orderNumber",
        "updated": 1
      }
    ],
    "engines": [
      {
        "id": "id",
        "make": "make",
        "model": "model",
        "noHoursMeter": true
      }
    ],
    "vehicleId": "vehicleId"
  }
}