- Square Version:
2021-04-21
- Java:
10.0.0.20210421
- .NET:
10.0.0
- Node.js:
10.0.0
- PHP:
10.0.0.20210421
- Python:
10.0.0.20210421
- Ruby:
10.0.0.20210421
2021-04-21 Changelog
Subscriptions API:
- ResumeSubscription. This new endpoint enables applications to resume deactivated subscriptions. After a subscription is created, there are events that can make a subscription non-billable, causing Square to deactivate the subscription. A seller can also resume deactivated subscriptions in the Seller Dashboard. Applications can call ListSubscriptionEvents to determine why Square deactivated a subscription.
Customers API:
Customer object:
- New
version
field (beta). This field represents the current version of the customer profile. You can include it in yourUpdateCustomer
andDeleteCustomer
requests to enable optimistic concurrency. For more information, see Customer profile versions and optimistic concurrency support. - The
groups
field and correspondingCustomerGroupInfo
object are retired.
- New
Customer webhooks have moved to the general availability (GA) state. Event notifications now include the
version
field (beta).
Invoices API:
The Invoices API has moved to the GA state.
Invoice object:
- A new required
accepted_payment_methods
field that defines the methods of payment that customers can use to pay an invoice on the Square-hosted invoice page. Valid values are defined in the new InvoiceAcceptedPaymentMethods enum. For more information, see the migration notes. - A new
subscription_id
field, which is included in invoices created for subscription billing.
- A new required
Loyalty API: (beta)
RetrieveLoyaltyProgram endpoint. This new endpoint accepts a program ID or the
main
keyword and returns the loyalty program in a seller's account. For more information, see Retrieve a loyalty program. This endpoint is preferred over theListLoyaltyPrograms
endpoint.Introduced a new mapping implementation for loyalty accounts:
- LoyaltyAccount object. Added the
mapping
field (of typeLoyaltyAccountMapping
), which is used to associate the loyalty account with a buyer. This field is recommended over themappings
field. - LoyaltyAccountMapping object. Added the
phone_number
field to represent a phone number mapping. This field is recommended over thetype
andvalue
fields.
- LoyaltyAccount object. Added the
A new loyalty.program.created webhook. Square now publishes an event notification when a loyalty program is created in the Square Seller Dashboard.
Inventory API:
- InventoryChange can now have its own measurement unit.
Catalog API:
- CatalogItem introduces the
sort_name
attribute that can take Japanese writing scripts to sort items by. When it is unspecified, the regularname
attribute is used for sorting. - CatalogPricingRule has the new
customer_group_ids_any
attribute included to support automatic application of discounts to specified product set purchased by members of any of the customer groups identified by thecustomer_group_ids_any
attribute values.
- CatalogItem introduces the
Team API:
- New Team webhooks:
team_member.created
,team_member.updated
, andteam_member.wage_setting.updated
to notify on created and updated team members and wage settings.
- New Team webhooks:
- Connect Node.js SDK: (retired)
- The Connect Node.js SDK is retired and replaced by the Square Node.js SDK. For migration information, see Connect Node.js SDK README.