(Quick Reference) Service: Update

Description: This web service is used to update an assigned customer category to a tax list object into the database

Method: PUT

Request content type: application/json




NameDescriptionTypeRequiredExample values
idid of the desired record to updateLongYes111
taxListIdthe id of the tax list to be assignedLongYes777
customerCategoryIdid of the customer category to assignLongYes123

URL with external_id:



NameDescriptionTypeRequiredExamples values
customerCategoryIdreference of the customer categoryStringYesCC-002
taxListIdreference of the tax listStringYesTL-001

Success Output

Success case: response.status=200
    "id": 11,
    "taxListReference": "RT-2",
    "customerCategoryReference": "101",
    "customerCategory": {
        "id": 3,
        "reference": "101",
        "name": "new Categ",
        "href": "/api/v1/customerCategories/3"
    "taxList": {
        "id": 12,
        "reference": "RT-2",
        "name": "Tx2",
        "href": "/api/v1/taxLists/12"
    "organization": "Lyon",
    "dateCreated": "2016-08-25T10:21:09Z",
    "lastUpdated": "2016-08-25T10:43:51Z"

Failure Output

Failure case:response.status = 400
    "error": "missing_param",
    "error_description": "taxListId parameter is missing"
	"error": "already_assigned",
 	"error_description": "customer category is already assigned to taxList."
     "error": "save_failed",
     "error_description": "Failed to save instance"
     "error_description": "The type of parameter taxListId you provided is not valid for this request."

Failure case:response.status = 404
    "error": "not_found",
    "error_description": "The taxList with the id 999 doesn't exist."

Failure case:response.status = 500
    "error": "server_error",
    "error_description": "Oops! Something went wrong..."