Driftwatch

Square / Square API /

Breaking

Response field cards removed

What changed

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

Affects Customer reachable from 8 operations.

Who is affected

Code that reads Square's Customer objects, used by 8 Square operations.

Before and after

WhereBeforeAfter
Customer.cardspresentabsent

Code that breaks

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

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