saveAppliance

Create or update an appliance or a vehicle. Appliances / Vehicles are related to the Assignments module.

If the Assignments module is not enabled on this account, error code 1006 is returned.

If the created or updated appliance or vehicle belongs to a natural person and your account country is subject to the General Data Protection Regulation (GDPR), Erply logs the change in the customer information processing log.

Input parameters

Parameter name Description Possible value Required
applianceID  Appliance ID.  Integer    
applianceName  Name of appliance. Appliance-specific attribute. Available only if appliance module is enabled on your account.  String    
productID  Product ID. Appliance-specific attribute. Available only if appliance module is enabled on your account.  Integer    
invoiceID  Invoice ID.  Integer    
customerID  Customer ID.  Integer  yes  
salesDate  Sales date.  ISO date (yyyy-mm-dd)    
startDateOfWarranty  Start date of warranty.  ISO date (yyyy-mm-dd)    
endDateOfWarranty  End date of warranty.  ISO date (yyyy-mm-dd)    
serialNumber  Serial number.  String    
vehicleVIN  Vehicle-specific attribute. Available only if vehicle module is enabled on your account.  String    
vehicleMake  Vehicle-specific attribute. Available only if vehicle module is enabled on your account.  String    
vehicleModel  Vehicle-specific attribute. Available only if vehicle module is enabled on your account.  String    
vehicleVersion  Vehicle-specific attribute. Available only if vehicle module is enabled on your account.  String    
vehicleYearOfManufacture  Vehicle-specific attribute. Available only if vehicle module is enabled on your account.  String    
vehicleMileage  Vehicle-specific attribute. Available only if vehicle module is enabled on your account.  Integer    
vehicleUser  Vehicle-specific attribute. Available only if vehicle module is enabled on your account.  String    
notes  Additional information.  String    
*****  Additional attributes associated with this item.
Attributes must be supplied as a flat list, each attribute defined by the following set of three parameters. Replace # with set number (1, 2, 3, ...). When updating an existing entry, API will only update the attributes specified in input data and leave all other existing attributes unchanged. To delete an attribute, set its value to 'null' or 'undefined'.  
   
attributeName#  Attribute name. Name can only contain the following symbols: A-Z, a-z, 0-9, dash and underscore.  String    
attributeType#  Attribute type, possible types are 'text', 'int' and 'double'. By default 'text'.  String    
attributeValue#  Value of the attribute. Set value to 'null' or 'undefined' to delete an attribute.
'text' attribute can be any string, maximum 255 characters.
'int' must be a signed 32-bit integer.
'double' must be a decimal number. 
String    

Response

Field name Type Description
applianceID  Integer  ID of the created/updated item.