- Square Version:
2020-02-26 - Java:
5.0.0.20200226 - .NET:
5.0.0 - Node.js:
3.20200226.0 - PHP:
3.20200226.0 - Python:
5.0.0.20200226 - Ruby:
5.0.0.20200226
2020-02-26 Changelog
Square
BankAccounts API
CashDrawerShifts API
Catalog API
Customers API
Disputes API
Orders API
Webhooks
GA release: All SDKs have been updated to support the new Bank Accounts and CashDrawerShifts APIs.
Beta release: All SDKs have been updated to support the new Disputes API.
All SDKs have been updated to support the following changes:
Catalog API
- Batch upsert catalog objects endpoint — The
batchesfield is now required and the array must have at least one element. - CatalogModifier — Two fields added:
ordinalto support custom ordering in a modifier listmodifier_list_idto reference the parent modifier list
- CatalogModifierList — New field added:
ordinalto support custom ordering in a list of CatalogModifierList objects.
- Batch upsert catalog objects endpoint — The
Customers API changes
- SearchCustomers endpoint —
limitsize reduced from 1000 to 100 to improve the endpoint performance.
- SearchCustomers endpoint —
Orders API changes
- CreateOrderRequest — Previously these request fields were deprecated:
line_items,taxes,discounts. These fields are no longer available. Instead you now use theOrderobject in the request. For example,Order.line_items,Order.taxes, andOrder.discounts. - OrderLineItem type — There are two changes:
- The
taxesfield that was previously deprecated is no longer available. Instead, you now use theOrderLineItem.applied_taxesfield. This also now requires that you set theOrderLineItemTax.scopefield. - The
discountsfield that was previously deprecated is no longer available. Instead, you now use theOrderLineItem.applied_discountsfield. This also now requires that you set theOrderLineItemDiscount.scopefield.
- The
- CreateOrderRequest — Previously these request fields were deprecated:
Shared object updates
- Card object — New fields added:
card_type,prepaid_type. Currently, only the Payments API responses populate these fields.
- Card object — New fields added: