curl --location '/saveBatch' \
--header 'Content-Type: application/json' \
--data '{
"orders": [
{
"id": "55a4936d4568f9b3ea5759db",
"externalId": "DMS_ID_123",
"orderNumber": "DMS_ID_123",
"checksum": "1410742068303",
"type": "Quotation",
"status": "OtherStatus",
"franchise": "string",
"createdDate": "2015-07-14T10:08:15Z",
"modifiedDate": "2015-07-14T10:08:15Z",
"appointmentDate": "2015-07-14T10:08:15Z",
"appointmentDateOut": "2015-07-14T10:08:15Z",
"appointmentBookedDate": "2015-07-14T10:08:15Z",
"partnerState": "Complete",
"userId": "UserId51",
"internalCompanyId": "55a4936d4568f9b3ea5759dg",
"dealerId": "DealerId51",
"workshopId": "WorkshopId51",
"areaId": "AreaId51",
"customer": {
"id": "string",
"externalId": "123456",
"salutation": "string",
"firstName": "string",
"lastName": "string",
"name": "string",
"taxSetting": {
"taxNumber": "string",
"taxOffice": "string"
},
"companyName": "string",
"emailAddresses": [
"string"
],
"phones": [
{
"type": "Mobile",
"number": "string"
}
],
"addresses": [
{
"lines": [
"string"
],
"locality": [
"string"
],
"region": "string",
"postcode": "string",
"country": "string",
"countryCode": "string",
"coordinates": {
"latitude": 0,
"longitude": 0
},
"type": "Mailing"
}
],
"references": [
{
"key": "string",
"value": "string"
}
],
"vehicleReferences": [
{
"vin": "string",
"registration": "string"
}
],
"orderReferences": [
{
"id": "string",
"externalId": "string"
}
]
},
"vehicles": [
{
"id": "string",
"description": "string",
"vin": "string",
"registration": "string",
"odometer": 0,
"tag": "string",
"nextServiceDue": "2015-07-14T10:08:15Z",
"registrationTestDue": "2015-07-14T10:08:15Z",
"brand": "string",
"extendedWarrantyEndDate": 0,
"contractEndDate": 0,
"transmissionCode": "string",
"engineCode": "string",
"bodyType": "string",
"paintCode": "string",
"modelCode": "string",
"modelYear": "string",
"modelId": "string",
"references": [
{
"key": "string",
"value": "string"
}
]
}
],
"employees": [
{
"id": "string",
"name": "string",
"type": "Technician"
}
],
"currency": "AUD",
"operations": [
{
"id": "35955",
"code": "RWB",
"status": {
"authorized": true,
"authorizationStatus": "Authorized",
"followUp": {
"type": "NextService",
"date": "2015-07-14T10:08:15Z"
}
},
"pricingMethod": {
"method": "Standard",
"amount": 0,
"roundingType": "Up",
"roundingAdjustment": 0,
"taxes": [
"string"
],
"amountIncludingTax": 0,
"subtotal": [
{
"type": "string",
"amount": 0,
"amountIncludingTax": 0,
"taxAmount": 0,
"taxes": [
"string"
]
}
]
},
"externalCode": "RACS",
"description": "431151: Front Shock Absorber Assembly (One Side), Repair/Replace",
"isNew": true,
"labour": {
"pricing": {
"priceLevels": [
{
"code": "RTL",
"name": "Retail",
"amount": 98.45,
"qty": 1.7
}
],
"priceLevelCode": "RTL",
"priceOverridden": true,
"priceOverriddenAmount": 50.5,
"taxes": [
"string"
],
"adjustmentPercentage": -5,
"totals": {
"extendedPrice": 0,
"adjustment": 0,
"totalExTax": 0,
"taxes": [
{
"code": "GST",
"amount": 9.8
}
],
"total": 0
},
"adjustmentAmount": -5
},
"description": "string",
"times": [
{
"code": "standardTime",
"description": "Standard Labour Time",
"quantity": 1.2
}
],
"timeCode": "industryStandardTime",
"difficultyCode": "1"
},
"warrantyCodes": [
{
"code": "string",
"nature": "string",
"cause": "string"
}
],
"invoiceLines": [
{
"id": "string",
"description": "string",
"quantity": 1,
"quantityUnitOfMeasure": "Each",
"notes": [
{
"id": "string",
"description": "string",
"type": "string"
}
],
"pricing": {
"priceLevels": [
{
"code": "RTL",
"name": "Retail",
"amount": 98.45,
"qty": 1.7
}
],
"priceLevelCode": "RTL",
"priceOverridden": true,
"priceOverriddenAmount": 50.5,
"taxes": [
"string"
],
"adjustmentPercentage": -5,
"totals": {
"extendedPrice": 0,
"adjustment": 0,
"totalExTax": 0,
"taxes": [
{
"code": "GST",
"amount": 9.8
}
],
"total": 0
},
"adjustmentAmount": -5
}
}
],
"checksheetLines": [
{
"id": "string",
"description": "string",
"type": "string",
"checked": "string",
"completed": "string",
"statuses": [
{
"status": "OSF",
"applicable": "string"
}
],
"properties": [
{
"key": "string",
"value": "string"
}
]
}
],
"parts": [
{
"number": "string",
"quantity": 1,
"quantityUnitOfMeasure": "Each",
"description": "string",
"inventory": {
"stockOnHand": 0,
"stockOnBackOrder": 0,
"locations": [
{
"name": "string",
"count": 0
}
],
"warehouse": "string"
},
"vehicleId": "string",
"pricing": {
"priceLevels": [
{
"code": "RTL",
"name": "Retail",
"amount": 98.45,
"qty": 1.7
}
],
"priceLevelCode": "RTL",
"priceOverridden": true,
"priceOverriddenAmount": 50.5,
"taxes": [
"string"
],
"adjustmentPercentage": -5,
"totals": {
"extendedPrice": 0,
"adjustment": 0,
"totalExTax": 0,
"taxes": [
{
"code": "GST",
"amount": 9.8
}
],
"total": 0
},
"adjustmentAmount": -5
},
"partCapacity": 0,
"calculatedPartQuantity": 0,
"references": [
{
"key": "string",
"value": "string"
}
],
"inventories": [
{
"stockOnHand": 0,
"stockOnBackOrder": 0,
"locations": [
{
"name": "string",
"count": 0
}
],
"warehouse": "string"
}
],
"alternateParts": {},
"kitNumber": "string",
"kitParts": [
{
"kitPartId": "string",
"kitPartNumber": "string",
"partQty": "string"
}
]
}
],
"sundries": [
{
"id": "string",
"code": "string",
"description": "string",
"quantity": 1,
"quantityUnitOfMeasure": "Each",
"pricing": {
"priceLevels": [
{
"code": "RTL",
"name": "Retail",
"amount": 98.45,
"qty": 1.7
}
],
"priceLevelCode": "RTL",
"priceOverridden": true,
"priceOverriddenAmount": 50.5,
"taxes": [
"string"
],
"adjustmentPercentage": -5,
"totals": {
"extendedPrice": 0,
"adjustment": 0,
"totalExTax": 0,
"taxes": [
{
"code": "GST",
"amount": 9.8
}
],
"total": 0
},
"adjustmentAmount": -5
},
"partCapacity": 0,
"isSubstituted": true,
"calculatedPartQuantity": 0,
"references": [
{
"key": "string",
"value": "string"
}
]
}
],
"sublets": [
{
"externalId": "DMS_ID_123",
"description": "string",
"quantity": 1,
"quantityUnitOfMeasure": "Each",
"pricing": {
"priceLevels": [
{
"code": "RTL",
"name": "Retail",
"amount": 98.45,
"qty": 1.7
}
],
"priceLevelCode": "RTL",
"priceOverridden": true,
"priceOverriddenAmount": 50.5,
"taxes": [
"string"
],
"adjustmentPercentage": -5,
"totals": {
"extendedPrice": 0,
"adjustment": 0,
"totalExTax": 0,
"taxes": [
{
"code": "GST",
"amount": 9.8
}
],
"total": 0
},
"adjustmentAmount": -5
},
"code": "string",
"costAmount": 0
}
],
"symptoms": [
"string"
],
"notes": [
"string"
],
"distance": 15000,
"distanceUnits": "Kilometres",
"interval": 36,
"intervalUnits": "Months",
"totals": {
"subtotals": {
"labour": 40.12,
"parts": 30.11,
"sundries": 20.09,
"sublets": 10.08,
"adjustments": 0.07
},
"payments": {
"transactions": [
{
"type": "General",
"method": "PayPal",
"transactionId": "string",
"date": "2015-07-14T10:08:15Z",
"amount": 0
}
],
"totalPaid": 0,
"totalOutstanding": 0
},
"totalExTax": 0,
"taxes": [
{
"code": "GST",
"amount": 9.8
}
],
"total": 0,
"rounding": 0
},
"references": [
{
"key": "string",
"value": "string"
}
],
"recommendationType": "UPSELL",
"hasRecommendations": true,
"hasUnPricedItems": true,
"menuLon": [
{
"lon14": "string",
"stdHour": 0,
"complexityCode": "string",
"complexity": "string",
"lon6": "string",
"lon10": "string",
"lon11": "string",
"totalIncTax": 0,
"totalExcTax": 0,
"taxValue": 0,
"taxRate": 0,
"complexityRate": 0,
"surchargeTotal": 0,
"surchargeTax": 0,
"time": 0
}
]
}
],
"parts": [
{
"number": "string",
"quantity": 1,
"quantityUnitOfMeasure": "Each",
"description": "string",
"inventory": {
"stockOnHand": 0,
"stockOnBackOrder": 0,
"locations": [
{
"name": "string",
"count": 0
}
],
"warehouse": "string"
},
"vehicleId": "string",
"pricing": {
"priceLevels": [
{
"code": "RTL",
"name": "Retail",
"amount": 98.45,
"qty": 1.7
}
],
"priceLevelCode": "RTL",
"priceOverridden": true,
"priceOverriddenAmount": 50.5,
"taxes": [
"string"
],
"adjustmentPercentage": -5,
"totals": {
"extendedPrice": 0,
"adjustment": 0,
"totalExTax": 0,
"taxes": [
{
"code": "GST",
"amount": 9.8
}
],
"total": 0
},
"adjustmentAmount": -5
},
"partCapacity": 0,
"calculatedPartQuantity": 0,
"references": [
{
"key": "string",
"value": "string"
}
],
"inventories": [
{
"stockOnHand": 0,
"stockOnBackOrder": 0,
"locations": [
{
"name": "string",
"count": 0
}
],
"warehouse": "string"
}
],
"alternateParts": {},
"kitNumber": "string",
"kitParts": [
{
"kitPartId": "string",
"kitPartNumber": "string",
"partQty": "string"
}
]
}
],
"workflow": {
"code": "string",
"name": "string"
},
"healthCheck": {
"id": "string",
"externalId": "DMSCheckSheetID123",
"name": "Multi-Point Inspection",
"inspections": [
{
"name": "Wiper Blades",
"externalId": "DMSID123",
"color": "Blue",
"operations": [
{
"id": "12381kjk123",
"color": "Blue",
"note": "This is another note!",
"images": [
{
"url": "string"
}
]
}
],
"note": "This is a note!",
"images": [
{
"url": "string"
}
]
}
],
"brakeInspection": {
"brakes": [
{
"name": "Front",
"externalId": "DMS_BrakeID_123",
"measurementType": "Remaining",
"measurementUnit": "Percentage",
"padShoeMeasurement": 0,
"padShoeColor": "Blue",
"discDrumMeasurement": 0,
"discDrumColor": "Blue"
}
],
"operations": [
{
"id": "12381kjk123",
"color": "Blue",
"note": "This is another note!",
"images": [
{
"url": "string"
}
]
}
],
"images": [
{
"url": "string"
}
]
},
"tyreInspection": {
"tyres": [
{
"name": "Left Front",
"externalId": "TyreFrontLeft",
"operationId": "kadjk123asd",
"tread": {
"units": "Percentage",
"outer": 8,
"middle": 7,
"inner": 9
},
"id": "5d074f0b7e664e609758a57a",
"color": "Blue",
"info": "string",
"brand": {
"name": "string"
},
"size": {
"name": "string"
},
"pressure": {
"units": "psi",
"value": 2.06
},
"damaged": false,
"images": [
{
"url": "string"
}
]
}
],
"externalId": "DMSTyre123",
"operations": [
{
"id": "12381kjk123",
"color": "Blue",
"images": [
{
"url": "string"
}
]
}
],
"images": [
{
"url": "string"
}
]
},
"flags": [
{
"externalId": "DMSFlagID123",
"name": "Customer In Lounge",
"state": "On"
}
],
"images": [
{
"url": "string"
}
],
"completedByThirdParty": true,
"bodyworkInspection": {
"issues": [
{
"damage": "string",
"freeformText": true,
"issueId": "string"
}
],
"externalId": "DMSBodywork123",
"operations": [
{
"id": "12381kjk123",
"color": "Blue",
"note": "This is another note!",
"images": [
{
"url": "string"
}
]
}
],
"images": [
{
"url": "string"
}
]
}
},
"notes": [
{
"type": "General",
"text": "Cracked windscreen.",
"date": "2015-07-14T10:08:15Z",
"employee": {
"id": "string",
"name": "string",
"type": "Technician"
}
}
],
"faultCodes": [
{
"code": "B2500",
"severity": "2A",
"color": "Blue",
"vehicleId": "546014c1f4c1b4a037e62145",
"description": "Warning Lamp Failure",
"timestamp": "2016-03-31T09:00Z",
"referenceUrl": "https://link.to/tech/docs/B2500",
"system": "Safety",
"subsystem": "Airbags",
"ecuId": "05A2",
"odometer": 10235,
"id": "string",
"operations": [
{
"id": "12381kjk123",
"color": "Blue"
}
]
}
],
"totals": {
"subtotals": {
"labour": 40.12,
"parts": 30.11,
"sundries": 20.09,
"sublets": 10.08,
"adjustments": 0.07
},
"payments": {
"transactions": [
{
"type": "General",
"method": "PayPal",
"transactionId": "string",
"date": "2015-07-14T10:08:15Z",
"amount": 0
}
],
"totalPaid": 0,
"totalOutstanding": 0
},
"totalExTax": 0,
"taxes": [
{
"code": "GST",
"amount": 9.8
}
],
"total": 0,
"rounding": 0
},
"taxLevels": [
{
"code": "GST",
"percentage": 10
}
],
"references": [
{
"key": "string",
"value": "string"
}
],
"operationPackages": [
{
"id": "string",
"code": "string",
"name": "string",
"operationIds": [
"string"
],
"pricingMethod": {
"method": "Standard",
"amount": 0,
"roundingType": "Up",
"roundingAdjustment": 0,
"taxes": [
"string"
],
"amountIncludingTax": 0,
"subtotal": [
{
"type": "string",
"amount": 0,
"amountIncludingTax": 0,
"taxAmount": 0,
"taxes": [
"string"
]
}
]
},
"totals": {
"subtotals": {
"labour": 40.12,
"parts": 30.11,
"sundries": 20.09,
"sublets": 10.08,
"adjustments": 0.07
},
"payments": {
"transactions": [
{
"type": "General",
"method": "PayPal",
"transactionId": "string",
"date": "2015-07-14T10:08:15Z",
"amount": 0
}
],
"totalPaid": 0,
"totalOutstanding": 0
},
"totalExTax": 0,
"taxes": [
{
"code": "GST",
"amount": 9.8
}
],
"total": 0,
"rounding": 0
}
}
],
"manufacturer": "manCode51",
"dealerName": "Company A",
"jobType": "string"
}
],
"paging": {
"page": 0,
"morePages": true,
"resultCount": 0,
"pageCount": 0
}
}'{
"results": [
{
"id": "string",
"externalId": "string",
"error": {
"id": "8c8169dc-021f-42f3-aa72-8e2dd53c9db8",
"code": "123",
"description": "Cannot open a file or cannot obtain a lock on a file."
}
}
]
}