FieldEx Developer
developer notes

Update Customer

The CustomerUpdate API allows you to update an existing customer record. The request body includes the customer name, email address, phone number, as well as other relevant information.

Method Endpoint
PUT {{endpoint}}/api/ext/customers

Header

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

Example Request

{
    "name": "customer15",
    "email": "customer@custella.com",
    "phone": "0987654321",
    "phone2": "1234567890",
    "contactPersonName": "customer15",
    "area": "400",
    "customerReferenceNo": "000015",
    "fax": "1234567890",
    "website": "customer.com",
    "industry": {
        "industryName": "Advertising"
    },
    "noOfEmployees": "20 - 50 Employees",
    "billingStreet": null,
    "billingCity": null,
    "billingState": null,
    "billingPostcode": null,
    "billingCountry": null,
    "shippingStreet": null,
    "shippingCity": null,
    "shippingState": null,
    "shippingPostcode": null,
    "shippingCountry": null,
    "description": "business customer",
    "customerType": "Customer",
    "paymentTerm": "Immediate payment",
    "serviceZone": null,
    "categoryType": {
        "id": 1
    },
    "customerExternalId": "customer1EXT",
    "customerSecondExternalId": "customer1Ext2",
    "customerSfExternalId": null,
    "customerSector": {
        "id": 1,
        "name": "sector"
    },
    "customerSubSector": {
        "id": 1,
        "name": "sub sector A"
    },
    "geoFence": null,
    "generateLoadingBay": false,
    "customersType": {
        "name": "Personal"
    }
}

Example Response

//Example response - Status 200

{
    "id": 80757
}