Breaking Change - Resource percentages, customer account ID string, and item subscription account rename

Deployed Date: 03/22/2024

We wanted to align all our percentage values to be numbers instead of a mix of numbers and strings. In addition, we missed an ID in Customer Account that should be a string, and we re-named a recently added property under an Item’s subscription discounts to avoid having ['amount']['amount'].

CustomerAccount

The id of an order is being changed to be a string to match all other IDs in our resources.

{
    "orders": [
        {
-           "id": 1035166366
+           "id": "1035166366"
        }
    ]
}

DiscountList

percentage has been updated to be a number.

[
    {
-       "percentage": "50.0"
+       "percentage": 50.0
    }
]

Item

Renamed amount to amount_money to avoid having ['amount']['amount'] when accessing the property.

{
    "subscriptions": [
        {
            "subscription_plan_data": {
                "subscription_plan_variations": [
                    {
                        "subscription_plan_variation_data": {
                            "phases": [
                                {
                                    "pricing": {
                                        "discounts": [
                                            {
-                                               "amount": {
-                                                   "amount": 300,
-                                                   "currency": "USD",
-                                                   "formatted": "$3.00"
-                                                }
+                                               "amount_money": {
+                                                   "amount": 300,
+                                                   "currency": "USD",
+                                                   "formatted": "$3.00"
+                                                }
                                            }
                                        ]
                                    }
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}

ItemList

See Item resource for breaking changes

[
    {
        // See Item
    }
]

LoyaltyProgram

percentage has been updated to be a number.

{
    "reward_tiers": [
        {
-          "percentage": "50.0"
+          "percentage": 50.0
        }
    ]
}