(Quick Reference) Service: Save

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



Method: POST

Request content type: application/json


NameDescriptionTypeRequiredExample values
taxListIdthe id of the tax list to be assignedLong/StringYes777
customerCategoryIdid of the customer category to assignLong/StringYes123

Success Output

Success case: response.status=201
    "id": 14,
    "taxListReference": "RT-23",
    "customerCategoryReference": "101",
    "customerCategory": {
        "id": 3,
        "reference": "101",
        "name": "new Categ",
        "href": "/api/v1/customerCategories/3"
    "taxList": {
        "id": 14,
        "reference": "RT-23",
        "name": "Tx22",
        "href": "/api/v1/taxLists/14"
    "organization": "Lyon",
    "dateCreated": "2016-08-25T10:35:24Z",
    "lastUpdated": "2016-08-25T10:35:24Z"

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..."