Skip to content

Migration guide for v7

Olivier Bellone edited this page Sep 22, 2018 · 2 revisions

Coupon.percentOff attribute

The percentOff attribute on the Coupon model class is now a BigDecimal instead of a Long.

If you are using API version 2018-07-27 or more recent, the API will return a value with up to two decimal places.

If you are using an older API version, the API will return an integer value, but you can use the percentOffPrecise attribute to get the exact value.

FileUpload -> File

The FileUpload class has been renamed to File, to reflect the changes in API version 2018-09-24. Request methods are unchanged.