Driftwatch

Square / Square API /

Breaking

Response field definition removed

What changed

Reads of this field return undefined, and the failure surfaces wherever that value is used rather than at the call.

Affects LoyaltyProgramRewardTier reachable from 2 operations.

Who is affected

Code that reads Square's LoyaltyProgramRewardTier objects, used by 2 Square operations.

Before and after

WhereBeforeAfter
LoyaltyProgramRewardTier.definitionpresentabsent

Code that breaks

// response.definition is now undefined
const definition = response.definition;

Based on Square’s published API specification. How severity is decided.