FieldEx Developer
developer notes

Create Job Order Product

The JobOrderProductCreate API allows you to create a new Job Order Product. The request body includes quantity, product, job order, and other relevant information.

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

Headers

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

Example Request

{
    "quantity": 1,
    "product": {
        "id": 1
    },
    "unitPrice": null,
    "totalPrice": null,
    "partOrder": null,
    "failureCode": "",
    "additionalFailureCode": "",
    "partStatusValue": "Waiting for Parts",
    "transferBinType": "LOCATION_BIN",
    "jobOrder": {
        "id": 34886
    },
    "externalId": null
}

Example Response

//status - 201
{
    "id": 1552,
    "productListId": null,
    "quantity": 1,
    "unitPrice": null,
    "totalPrice": null,
    "serialNumber": null,
    "expireDataTime": null,
    "transferBinType": "LOCATION_BIN",
    "productType": null,
    "billable": null,
    "transferFromBin": null,
    "task": null,
    "product": {
        "id": 1,
        "name": null,
        "description": null,
        "attributes": null,
        "productSku": null,
        "productNumber": null,
        "price": null,
        "stockCount": null,
        "createdDateTime": "2023-11-27T06:07:04.147Z",
        "modifiedDateTime": null,
        "lastStockUpdated": null,
        "currency": null,
        "isActive": null,
        "hasTax": false,
        "warranty": null,
        "externalId": null,
        "remarks": null,
        "manufactureYear": null,
        "modelName": null,
        "manufacturer": null,
        "notForSale": null,
        "createdBy": null,
        "modifiedBy": null,
        "productFamily": null,
        "accessories": [],
        "attachments": [],
        "accessoryStrValue": null,
        "productType": null,
        "productMeasureUnit": null
    },
    "jobOrder": {
        "id": 5802,
        "jobOrderNumber": null,
        "jobOrderName": null,
        "installationDate": null,
        "installationTime": null,
        "completionDate": null,
        "status": null,
        "completionTime": null,
        "jobExternalId": null,
        "orderAmount": null,
        "jobSfExternalId": null,
        "contactPersonName": null,
        "contactPersonEmail": null,
        "contactPersonPhone": null,
        "resolution": null,
        "description": null,
        "jobDescription": null,
        "installationStreet": null,
        "installationCity": null,
        "installationState": null,
        "installationPostalCode": null,
        "installationCountry": null,
        "createdDateTime": "2023-11-27T06:07:04.147Z",
        "modifiedDateTime": "2023-11-27T06:07:04.147Z",
        "placeId": null,
        "isDeleted": false,
        "includePrice": false,
        "showServiceChecklist": null,
        "showCustomerServiceReport": null,
        "showHandoverCertificate": null,
        "serviceChecklistRequired": null,
        "customerServiceReportRequired": null,
        "handoverCertificateRequired": 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,
        "pmvId": null,
        "checklistRecordId": null,
        "additionalFaultsValue": null,
        "faultDetails": null,
        "resolutionValue": null,
        "additionalResolutionsValue": null,
        "resolutionComments": null,
        "openingDays": null,
        "workNotDoneReasonValue": null,
        "workNotDoneOther": null,
        "physicalDamage": null,
        "physicalDamageDescription": null,
        "bedStatus": null,
        "ableToFix": null,
        "recommendation": null,
        "billable": null,
        "daysCategory": null,
        "notifyCustomer": false,
        "checkInDuration": null,
        "totalDistance": null,
        "travelDuration": null,
        "invoiceNumber": null,
        "assetUnderWarranty": null,
        "completionDateTime": null,
        "installationLatitude": null,
        "installationLongitude": null,
        "uuid": "96049297-822c-459d-9ab4-b493dd588531",
        "createdByExternal": null,
        "modifiedByExternal": null,
        "createdBy": null,
        "salesOrder": null,
        "orderOwner": null,
        "modifiedBy": null,
        "customer": null,
        "customerPurchaseHistory": null,
        "jobOrderType": null,
        "jobOrderFaultType": null,
        "serviceZone": null,
        "customerPurchaseHistoryPickListLites": null,
        "taskList": null,
        "products": [],
        "uncompleatedJobOrder": null,
        "assets": null,
        "valueFault": null,
        "valueResolution": null,
        "site": null,
        "project": null,
        "additionalValueFaults": null,
        "additionalValueResolutions": null,
        "customerServiceReport": null,
        "serviceChecklist": null,
        "handoverCertificate": null,
        "ticket": null,
        "additionalFaults": null,
        "additionalResolutions": null,
        "workNotDoneReason": null,
        "hpForm": null,
        "createdByExternalUser": null,
        "modifiedByExternalUser": null,
        "deleted": false,
        "journeyStatusActive": false
    },
    "partOrder": null,
    "jobOrderProductStatus": null,
    "partStatusValue": "Waiting for Parts",
    "rmaNumber": null,
    "failureCode": "",
    "additionalFailureCode": "",
    "partUsageCode": null,
    "externalId": null,
    "firstSyncStatusToSalesForce": null,
    "taxIncluded": false
}