2023-05-17 Changelog
Version Summary
- Square Version:
2023-05-17
-
Java:
29.0.0.20230517
-
.NET:
27.0.0
-
Node.js:
27.0.0
-
PHP:
27.0.0.20230517
-
Python:
27.0.0.20230517
-
Ruby:
28.0.0.20230517
Details
Merchant Custom Attributes API (beta):
The Merchant Custom Attributes API enables developers to create and manage custom attributes for merchants.
Cash Drawer Shifts API:
CashDrawerShift object. The following fields are renamed:
employee_ids
is nowteam_member_ids
opening_employee_id
is nowopening_team_member_id
ending_employee_id
is nowending_team_member_id
closing_employee_id
is nowclosing_team_member_id
These fields previously referenced
Employee
objects from the retired Employees API. With this update, the fields referenceTeam_Member
objects. You don't need to map retiredEmployee
objects to their replacementTeam_Member
objects because aTeam_Member
object has the same ID as theEmployee
object that it replaces.CashDrawerShiftEvent object. The
employee_id
field is renamed toteam_member_id
.
Catalog API:
CatalogModifier. Added the
location_overrides
field to support location-specific price overrides.CatalogTax object. Added the
applies_to_product_set_id
field to specify a product set to apply the tax to. The tax is applied to all products in the product set.
Inventory API:
InventoryState enum:
The new
IN_TRANSIT
value indicates that the associated inventory quantity is in transit from one location to another.IN_TRANSIT
replacesIN_TRANSIT_TO
.IN_TRANSIT_TO
is now deprecated.
Invoices API:
CreateInvoice and UpdateInvoice endpoints. You can now specify the
bank_account
payment method as anaccepted_payment_method
for all invoices. Previously, this payment method only supported invoices with a singleBALANCE
payment request. This change applies to all Square API versions starting May 17, 2023.
Loyalty API:
AccumulateLoyaltyPoints and CalculateLoyaltyPoints endpoints. Square now returns a
400 BAD REQUEST
error if the specified order includes thereturns
field. Square automatically adjusts loyalty points for returns during the refund flow.
Point of Sale API:
The Point of Sale API now supports Tap to Pay for Android and iPhone. For more information, see Point of Sale API Overview.
Locations API:
UpdateLocation endpoint. For added security, the Locations API now enforces a Square policy where a location's
business_name
can be changed no more than three times in a 12-month period.Clarified in the Locations API documentation that sellers can have up to 300 locations in their Square account.
Webhooks:
Event objects. All webhook data and object names have been renamed from
SquareEvent
toEvent
. For example,PaymentUpdatedSquareEvent
has changed toPaymentUpdatedEvent
.
If you need more assistance, contact Developer Support or ask for help in the Developer Forums.