- 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
batches
field is now required and the array must have at least one element. - CatalogModifier — Two fields added:
ordinal
to support custom ordering in a modifier listmodifier_list_id
to reference the parent modifier list
- CatalogModifierList — New field added:
ordinal
to support custom ordering in a list of CatalogModifierList objects.
- Batch upsert catalog objects endpoint — The
Customers API changes
- SearchCustomers endpoint —
limit
size 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 theOrder
object in the request. For example,Order.line_items
,Order.taxes
, andOrder.discounts
. - OrderLineItem type — There are two changes:
- The
taxes
field that was previously deprecated is no longer available. Instead, you now use theOrderLineItem.applied_taxes
field. This also now requires that you set theOrderLineItemTax.scope
field. - The
discounts
field that was previously deprecated is no longer available. Instead, you now use theOrderLineItem.applied_discounts
field. This also now requires that you set theOrderLineItemDiscount.scope
field.
- 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: