Version 13.0.0.20210721 (2021-07-21)
SDK updates
- The Square Java SDK now lets you customize
HttpClient
by creating anokhttpclient
instance and setting it inHttpClientConfiguration
to override the default behavior.
API updates
-
Orders API:
-
OrderServiceCharge object. Added a new field,
type
. It identifies the service charge type. -
OrderQuantityUnit,
OrderLineItem,
OrderLineItemDiscount,
OrderLineItemModifier,
OrderLineItemTax,
OrderServiceCharge,
OrderReturnLineItem,
OrderReturnLineItemModifier,
OrderReturnServiceCharge,
OrderReturnTax, and
OrderReturnDiscount objects. Added a new field,catalog_version
.
-
-
Locations API:
- Location object. Added a new field
tax_ids
of typeTaxIds
. In the current implementation, sellers in Ireland and France can configure tax IDs during the onboarding process. They can also provide the information later by updating the location information in the Seller Dashboard. These tax IDs appear in this field.
- Location object. Added a new field
-
Loyalty API:
- As of July 15, 2021, the country in which the seller’s Square account is activated determines whether Square uses pretax or post-tax purchase amounts to calculate accrued points. This change supports consumption tax models, such as value-added tax (VAT). Previously, point accrual was based on pretax purchase amounts only. This change does not affect the existing point balance of loyalty accounts. For more information, see Availability of Square Loyalty.
-
Payments API:
- UpdatePayment. The endpoint has moved to the general availability (GA) state. Also, you can now update gift card payments (similar to card, cash, and external payments).
-
Subscriptions API:
- The Subscriptions API has moved to the general availability (GA) state.
- CatalogSubscriptionPlan object. The
name
andprice
are now write-once fields. You specify these values at the time of creating a plan. After the plan is created, these fields cannot be updated. This makes a subscription plan immutable.
-
Inventory API:
- RetrieveInventoryTransfer. This new endpoint is introduced to support the retrieval of inventory transfer.
- RetrieveInventoryChanges. This endpoint is deprecated. Its support ends when it is retired in about 12 months.
- The following endpoints have updated URLs to conform to the standard REST API convention. For more information about migrating deprecated URLs to updated URLs in your application, see Inventory API: Migrate to Updated API Entities.
Documentation updates
- Webhooks. Revised the steps and descriptions for creating and using webhooks. For more information, see [Webhooks Overview.](https://developer.squareup.com/docs/webhook