Skip to content

Modify Sale - Changes and Maintenance

A sale that has not being fully settled (it remains in an incomplete or open status) can be modified an unlimited amount of times.

There are, though, two parameters that are mandatory for modifying your sale: the original sale Id, and the current version of the sale (a numeric value to avoid parallel changes). The original sale Id will remain unchanged, while the version will increase once the modification succed.

The following Sale parameters can be changed:

  • The Note, by appending new content (removal of original note is not possible). Sending an empty note equals to leave it untouched. Also note that some constant text will be added to let know, within the note itself, that it was changed.

  • The Tax Mode, either by setting Tax inclusive as true or false (tax exclusive).

  • The Items. You can either add nor remove items in your sale, and even let the array of items empty as they are not mandatory.

  • The Total Amount fot the sale. Note that the total amount is linked with the sale items: you can have zero items and a total amount, but if some items are present, the total must match the total price to pay from those the items.

The Sample Code

ObjC

Swift

Universal Windows Platform SDK coming soon