Driftwatch

Square / Square API /

Breaking

Response field location_id removed

What changed

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

Affects InventoryAdjustment reachable from 8 operations.

Who is affected

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

Before and after

WhereBeforeAfter
InventoryAdjustment.location_idpresentabsent

Code that breaks

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

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