FieldEx Developer
developer notes

Update Sales Order

The SalesOrderUpdate API allows you to update an existing Sales Order. The request body includes customer information, status, and other relevant information.

Method API Endpoint
PUT {{endpoint}}/api/ext/sales-orders

Headers

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

Example Request

{
    "salesOrder": {
        "customer": {
            "id": "3",
            "email": "null",
            "customerExternalId": "null"
        },
        "orderCurrency": "MYR",
        "salesOrderChannel": {
            "code": "FF",
            "name": "null"
        },
        "salesOrderType": {
            "code": "ORDER_TYPE_1"
        },
        "orderOwner": {
            "login": "tharindu@lavalabs.net"
        },
        "billingContact": {
            "externalId": "contact1"
        },
        "shippingContact": {
            "externalId": "contact1"
        },
        "country": {
            "name": "Malasiya"
        },
        "status": "DRAFT",
        "salesOrderExternalId": "fdfd",
        "orderName": "salesorder1",
        "orderStartDate": "2023-10-06",
        "orderEndDate": "2023-10-31",
        "orderAmount": "0"
    },
    "productVMSList": "[]"
}

Example Response

// 500 Response Code

{
    "type": "http://www.jhipster.tech/problem/problem-with-message",
    "title": "Internal Server Error",
    "status": 500,
    "detail": "Sales Order not found with ext : fdfd",
    "path": "/custella-0.0.1-SNAPSHOT/api/ext/sales-orders",
    "message": "error.http.500"
}