FieldEx Developer
developer notes

Delete Job Order Product

The JobOrderDelete API allows you to delete an existing job order record.

Method API Endpoint
DELETE {{endpoint}}/api/ext/job-order-products/{id}

Headers

Key Value
Content-Type application/json
Authorization Bearer {{token}}

Example Response

//status - 200
{
    "id": 1225,
    "productListId": null,
    "quantity": 1,
    "unitPrice": 25.0,
    "totalPrice": 25.0,
    "serialNumber": null,
    "expireDataTime": null,
    "transferBinType": null,
    "productType": null,
    "billable": null,
    "transferFromBin": null,
    "task": null,
    "product": {
        "id": 16,
        "name": "Clipper 14''",
        "description": null,
        "attributes": null,
        "productSku": "Clipper 14''",
        "productNumber": "PROD-000016",
        "price": 25.0,
        "stockCount": null,
        "createdDateTime": "2023-10-11T04:46:29Z",
        "modifiedDateTime": "2023-10-11T05:19:01Z",
        "lastStockUpdated": "2023-10-11T05:19:01Z",
        "currency": " ",
        "isActive": true,
        "hasTax": false,
        "warranty": 24,
        "externalId": null,
        "remarks": null,
        "createdBy": {
            "id": 61,
            "firstName": "Team",
            "lastName": "Lead 1",
            "fullName": "Team Lead 1",
            "email": "anis@custella.com",
            "imageUrl": null,
            "phone": "01239495565",
            "locationLattitude": 3.105705,
            "locationLongitude": 101.663895,
            "skillDescription": null,
            "maxShiftHourType": "DAY",
            "maxShiftHousrsPerDay": 8.0,
            "shiftWorking": 0,
            "userType": null,
            "login": "teamlead1@custella.com",
            "timezone": "Asia/Kuala_Lumpur",
            "userDomain": null,
            "notifyManager": null,
            "employeeNo": null,
            "status": null,
            "online": false
        },
        "modifiedBy": {
            "id": 61,
            "firstName": "Team",
            "lastName": "Lead 1",
            "fullName": "Team Lead 1",
            "email": "anis@custella.com",
            "imageUrl": null,
            "phone": "01239495565",
            "locationLattitude": 3.105705,
            "locationLongitude": 101.663895,
            "skillDescription": null,
            "maxShiftHourType": "DAY",
            "maxShiftHousrsPerDay": 8.0,
            "shiftWorking": 0,
            "userType": null,
            "login": "teamlead1@custella.com",
            "timezone": "Asia/Kuala_Lumpur",
            "userDomain": null,
            "notifyManager": null,
            "employeeNo": null,
            "status": null,
            "online": false
        },
        "productFamily": {
            "id": 1,
            "productFamilyName": "Clipper",
            "deleted": false
        },
        "productType": {
            "createdBy": "system",
            "createdDate": "2023-04-30T23:25:44Z",
            "lastModifiedBy": null,
            "lastModifiedDate": null,
            "id": 1,
            "name": "Product",
            "label": null,
            "order": null,
            "isDefault": null,
            "active": null,
            "systemValue": null,
            "code": null
        },
        "attachments": null,
        "modelName": null,
        "accessories": null,
        "partOrder": null,
        "active": true    
  },
    "jobOrder": {
        "id": 35191,
        "jobOrderNumber": "JO-035191",
        "jobOrderName": "Small Girth",
        "installationDate": "2023-10-21",
        "installationTime": "2023-10-21T15:59:00Z",
        "completionDate": null,
        "status": "OPEN",
        "completionTime": null,
        "jobExternalId": null,
        "orderAmount": null,
        "description": null,
        "installationStreet": null,
        "installationCity": null,
        "installationState": null,
        "installationPostalCode": null,
        "installationCountry": null,
        "createdDateTime": "2023-10-19T14:13:39Z",
        "modifiedDateTime": "2023-10-19T14:13:39Z",
        "placeId": null,
        "includePrice": false        
        "createdBy": {
            "id": 1,
            "firstName": "Test",
            "lastName": "User MS 123",
            "fullName": "Test User MS 123",
            "email": "preeti@fieldex.com",
            "imageUrl": null,
            "phone": "1137240378",
            "locationLattitude": 6.9450097,
            "locationLongitude": 80.77572,
            "skillDescription": null,
            "maxShiftHourType": "DAY",
            "maxShiftHousrsPerDay": 8.0,
            "shiftWorking": 0,
            "userType": null,
            "login": "load.test1@trial.custella.com",
            "timezone": "Asia/Kuala_Lumpur",
            "userDomain": null,
            "notifyManager": null,
            "employeeNo": null,
            "status": null,
            "online": false        
        },
        "salesOrder": null,
        "orderOwner": {
            "id": 1,
            "firstName": "Test",
            "lastName": "User MS 123",
            "fullName": "Test User MS 123",
            "email": "preeti@fieldex.com",
            "imageUrl": null,
            "phone": "1137240378",
            "locationLattitude": 6.9450097,
            "locationLongitude": 80.77572,
            "skillDescription": null,
            "maxShiftHourType": "DAY",
            "maxShiftHousrsPerDay": 8.0,
            "shiftWorking": 0,
            "userType": null,
            "login": "load.test1@trial.custella.com",
            "timezone": "Asia/Kuala_Lumpur",
            "userDomain": null,
            "notifyManager": null,
            "employeeNo": null,
            "status": null,
            "online": false
        },
        "modifiedBy": {
            "id": 1,
            "firstName": "Test",
            "lastName": "User MS 123",
            "fullName": "Test User MS 123",
            "email": "preeti@fieldex.com",
            "imageUrl": null,
            "phone": "1137240378",
            "locationLattitude": 6.9450097,
            "locationLongitude": 80.77572,
            "skillDescription": null,
            "maxShiftHourType": "DAY",
            "maxShiftHousrsPerDay": 8.0,
            "shiftWorking": 0,
            "userType": null,
            "login": "load.test1@trial.custella.com",
            "timezone": "Asia/Kuala_Lumpur",
            "userDomain": null,
            "notifyManager": null,
            "employeeNo": null,
            "status": null,
            "online": false
        },
        "customer": {
            "id": 80760,
            "name": "SOU 3",
            "email": null,
            "billingCity": "Putrajaya",
            "billingCountry": "Malaysia",
            "billingPostcode": "62502",
            "billingState": "Selangor",
            "billingStreet": "IOI City Mall, Lebuh IRC, Ioi Resort",
            "shippingCity": "Putrajaya",
            "shippingCountry": "Malaysia",
            "shippingPostcode": "62502",
            "shippingState": "Selangor",
            "shippingStreet": "IOI City Mall, Lebuh IRC, Ioi Resort",
            "billingLatitude": 2.970663,
            "billingLongitude": 101.7136681,
            "phone": null,
            "geoFence": null,
            "systemUsed": null,
            "isDeleted": "N",
            "customerSfExternalId": null,
            "customerExternalId": null,
            "shippingLatitude": 2.970663,
            "shippingLongitude": 101.7136681,
            "serviceZone": null,
            "categoryType": null,
            "contactPersonName": null,
            "customerReferenceNo": null
        },
        "customerPurchaseHistory": null,
        "customerPurchaseHistoryPickListLites": null,
        "jobOrderType": null,
        "taskList": null,
        "products": null,
        "showServiceChecklist": null,
        "showCustomerServiceReport": null,
        "showHandoverCertificate": null,
        "serviceChecklistRequired": null,
        "customerServiceReportRequired": null,
        "handoverCertificateRequired": null,
        "uncompleatedJobOrder": null,
        "jobOrderFaultType": null,
        "resolution": null,
        "jobDescription": null,
        "serviceChecklist": null,
        "customerServiceReport": null,
        "handoverCertificate": null,
        "ticketLite": null,
        "systemValue": null,
        "redFlag": null,
        "medicalRecordNumber": null,
        "origExt": null,
        "ward": null,
        "bed": null,
        "onCode": null,
        "onCodeMessage": null,
        "offCode": null,
        "offCodeMessage": null,
        "ipAddress": null,
        "hospitalCode": null,
        "fault": null,
        "additionalFaultsValue": null,
        "faultDetails": " ",
        "resolutionValue": null,
        "additionalResolutionsValue": null,
        "resolutionComments": " ",
        "openingDays": null,
        "workNotDoneReasonValue": null,
        "workNotDoneOther": null,
        "physicalDamage": null,
        "physicalDamageDescription": null,
        "bedStatus": null,
        "ableToFix": null,
        "recommendation": null,
        "billable": false,
        "additionalFaults": null,
        "additionalResolutions": null,
        "workNotDoneReason": null,
        "notifyCustomer": false,
        "assets": null,
        "invoiceNumber": null,
        "assetUnderWarranty": null,
        "installationLatitude": null,
        "installationLongitude": null,
        "uuid": "e1ed4d09-f02d-4a6b-944d-666376c64998"
    },
    "jobOrderProductStatus": null,
    "createdByUser": {
        "id": 1,
        "firstName": "Test",
        "lastName": "User MS 123",
        "fullName": "Test User MS 123",
        "email": "preeti@fieldex.com",
        "imageUrl": null,
        "phone": "1137240378",
        "locationLattitude": 6.9450097,
        "locationLongitude": 80.77572,
        "skillDescription": null,
        "maxShiftHourType": "DAY",
        "maxShiftHousrsPerDay": 8.0,
        "shiftWorking": 0,
        "userType": null,
        "login": "load.test1@trial.custella.com",
        "timezone": "Asia/Kuala_Lumpur",
        "userDomain": null,
        "notifyManager": null,
        "employeeNo": null,
        "status": "ACTIVE",
        "online": false
    },
    "lastModifiedByUser": {
        "id": 1,
        "firstName": "Test",
        "lastName": "User MS 123",
        "fullName": "Test User MS 123",
        "email": "preeti@fieldex.com",
        "imageUrl": null,
        "phone": "1137240378",
        "locationLattitude": 6.9450097,
        "locationLongitude": 80.77572,
        "skillDescription": null,
        "maxShiftHourType": "DAY",
        "maxShiftHousrsPerDay": 8.0,
        "shiftWorking": 0,
        "userType": null,
        "login": "load.test1@trial.custella.com",
        "timezone": "Asia/Kuala_Lumpur",
        "userDomain": null,
        "notifyManager": null,
        "employeeNo": null,
        "status": "ACTIVE",
        "online": false
    },
    "createdDate": "2023-10-19T14:13:39Z",
    "lastModifiedDate": "2023-10-19T14:13:39Z",
    "partOrder": null,
    "partStatusValue": null,
    "rmaNumber": null,
    "failureCode": null,
    "additionalFailureCode": null,
    "partUsageCode": null,
    "taxIncluded": false
}