status = 'AVAILABLE'; $body->inventoryType = 'NEW'; $body->identification = array( 'vin' => $vin, 'licensePlate' => $licensePlate, ); $body->description = array( 'modelYear' => $modelYear, ); $body->mileage = array( 'unit' => 'KM', 'value' => $mileage ); $body->dates = array( 'registrationDate' => $registrationDate, 'firstRegistrationDate' => $registrationDate ); /* { "status": "AVAILABLE", "inventoryType": "NEW", "identification": { "commissionNumber": "string", "vin": "string", "chassis": "string", "licensePlate": "string", "engineNumber": "string" }, "description": { "class": "UNKNOWN", "make": "string", "model": "string", "variant": "string", "modelYear": 0, "vehicle": "string", "exteriorColor": "string", "interiorColor": "string" }, "referenceData": [ { "providerId": "string", "makeCode": "string", "modelCode": "string", "variantCode": "string", "vehicleCode": "string", "serviceGroupCode": "string", "exteriorColorCode": "string", "interiorColorCode": "string" } ], "ownerDetails": { "referenceData": { "externalVehicleId": "string" }, "contact": { "companyName": "string", "contactName": "string", "addresses": { "physicalAddress": { "streetType": "string", "streetName": "string", "houseNumber": "string", "buildingName": "string", "floorNumber": "string", "doorNumber": "string", "blockName": "string", "estate": "string", "postalCode": "string", "suburb": "string", "city": "string", "county": "string", "province": "string", "countryCode": "string" }, "postalAddress": { "poBoxName": "string", "poBoxNumber": "string", "poBoxSuite": "string", "postalCode": "string", "suburb": "string", "city": "string", "county": "string", "province": "string", "countryCode": "string" } }, "contactInformation": { "landline": "string", "fax": "string", "email": "string" } } }, "specification": { "primaryExteriorColor": { "code": "string", "description": "string", "colorType": "METALLIC", "prices": { "costPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" }, "listPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" } } }, "secondaryExteriorColor": { "code": "string", "description": "string", "colorType": "METALLIC", "prices": { "costPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" }, "listPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" } } }, "primaryInteriorColor": { "code": "string", "description": "string", "colorType": "LEATHER", "prices": { "costPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" }, "listPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" } } }, "secondaryInteriorColor": { "code": "string", "description": "string", "colorType": "LEATHER", "prices": { "costPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" }, "listPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" } } }, "optionPacks": [ { "code": "string", "description": "string", "type": "MANUFACTURERSTANDARD", "packPrices": { "costPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" }, "listPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" } }, "options": [ { "type": "MANUFACTURERSTANDARD", "code": "string", "description": "string", "optionPrices": { "costPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" }, "listPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" } } } ] } ], "options": [ { "type": "MANUFACTURERSTANDARD", "code": "string", "description": "string", "optionPrices": { "costPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" }, "listPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" } } } ] }, "mileage": { "unit": "KM", "value": 0 }, "dates": { "registrationDate": "2021-09-24T18:17:42.965Z", "firstRegistrationDate": "2021-09-24T18:17:42.965Z" }, "prices": { "listPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" }, "costPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" }, "deliveryPrice": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" }, "nonRecoverableCosts": [ { "actualCost": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" }, "estimatedCost": { "netValue": 0, "grossValue": 0, "taxValue": 0, "taxRate": 0, "currencyCode": "string" }, "code": "string", "description": "string" } ] }, "isVatQualifyingVehicle": true, "inventoryDates": { "orderDate": "2021-09-24T18:17:42.965Z", "buildDate": "2021-09-24T18:17:42.965Z", "estimatedReceivedDate": "2021-09-24T18:17:42.965Z", "receivedDate": "2021-09-24T18:17:42.965Z", "availableForSaleDate": "2021-09-24T18:17:42.965Z" }, "reservation": { "reservationDate": "2021-09-24T18:17:42.965Z", "reservedUntilDate": "2021-09-24T18:17:42.965Z", "reservedBy": { "salesPersonId": "string", "name": "string" } }, "technicalData": { "engineConcept": "UNKNOWN", "primaryEngine": { "fuelType": "DIESEL", "engineNumber": "string", "cylinderCapacity": 0, "enginePower": { "horsePower": 0, "kiloWatts": 0 } }, "secondaryEngine": { "fuelType": "DIESEL", "engineNumber": "string", "cylinderCapacity": 0, "enginePower": { "horsePower": 0, "kiloWatts": 0 } }, "steering": "LEFT", "transmission": { "transmissionType": "AUTOMATIC", "numberOfGears": 0 }, "numberOfDoors": 0, "numberOfSeats": 0, "electricRange": { "unit": "KM", "value": 0 }, "fuelTank": { "capacity": 0, "capacityUnit": "LITRES" }, "testRegimeData": { "regimeType": "NEDC", "regimeData": [ { "level": "TOTAL", "consumption": { "unit": "l/100km", "cycles": [ { "type": "COMBINED", "value": 0 } ] }, "emission": { "unit": "g/km", "cycles": [ { "type": "COMBINED", "value": 0 } ], "nox": 0 } } ] } }, "metadata": { "auditData": { "userId": "string", "userName": "string" } } } */ ?>