Search

decrementAttributeValue

Decrement attribute value.

This API call is for editing custom objects. ERPLY has an object storage where you can store custom data for plug-ins, integrations etc.

For other object storage functions, see getObjects, saveObject, deleteObject (which allow to manipulate whole objects), and incrementAttributeValue, decrementAttributeValue — which provide a way to atomically increment or decrement one numeric field of a specific object (eg. to implement a counter).

Input parameters

Parameter nameDescriptionPossible valueRequired
objectIDID of the objectInteger yes
attributeNameObject field nameString yes
amountAmount to decrementInteger or decimal yes
partnerKeyThis request can only be called if you have our partnerKey.String yes

Response

Field nameTypeDescription
attributeValueAttribute value after update