- Square Version:
2022-08-17
- Java:
23.0.0.20220817
- .NET:
21.0.0
- Node.js:
21.0.0
- PHP:
21.0.0.20220817
- Python:
21.0.0.20220817
- Ruby:
22.0.0.20220817
2022-08-17 Changelog
Square
Checkout API
Customer Custom Attributes API
Customers API
Gift Card Activities API
Locations API
Loyalty API
Payments API
Terminal API
Webhook Subscriptions API
BETA
DEPRECATED
- Webhook Subscriptions API (beta). The Webhook Subscriptions API lets you programmatically manage your webhook subscriptions, including creating, updating, and deleting webhook subscriptions associated with an event. For more information, see Webhook Subscriptions API Overview.
Checkout API:
- CreateCheckout endpoint. This endpoint is deprecated and replaced by the CreatePaymentLink endpoint. For more information, see Migrate from CreateCheckout to CreatePaymentLink.
- CreatePaymentLink endpoint. The following changes apply:
- This endpoint now supports adding a shipping fee and an application fee as a checkout option. For more information, see Specify checkout options.
- The response now includes a
related_resources
field that contains full order details.
Customer Custom Attributes API:
- The Customer Custom Attributes API has moved to the general availability (GA) state.
- UpsertCustomerCustomAttribute and BulkUpsertCustomerCustomAttributes endpoints. The absolute value of a
Number
-type custom attribute provided in the request cannot exceed(2^63-1)/10^5
, or 92233720368547. This constraint applies to all Square versions. - Webhooks. Added new
.owned
and.visible
webhooks that allow you to receive notifications about changes to all custom attribute definitions and custom attributes owned by your application or visible to your application. The existing webhooks are deprecated and replaced by the new webhooks. For more information, see Migration notes.
Customers API:
- SearchCustomers endpoint. This endpoint now supports searching customer profiles based on the value or last updated date of one or more custom attributes. This feature is in beta. For more information, see Search based on custom attributes.
Gift Card Activities API:
- CreateGiftCardActivity endpoint. The
redeem_activity_id
field is now required to create aREFUND
activity. This requirement applies when custom payment processing applications refund a gift card payment to the same gift card. - The recommendation for all third-party applications to use the
REFUND
activity type for all gift card refunds has been revised. Instead, applications that use a custom payment processing system should use theUNLINKED_ACTIVITY_REFUND
activity to refund cross-tender payments.
- CreateGiftCardActivity endpoint. The
Locations API:
- Address object. The following fields that were previously removed are now restored:
sublocality_2
sublocality_3
administrative_district_level_2
administrative_district_level_3
first_name
last_name
- Address object. The following fields that were previously removed are now restored:
Loyalty API:
- The Loyalty API now supports creating and managing loyalty promotions. Loyalty promotions enable customers to earn extra loyalty points. For more information, see Manage Loyalty Promotions. This change introduces the following new endpoints:
- AccumulateLoyaltyPoints endpoint. The following changes apply:
- The
event
field in the response is deprecated and replaced by theevents
field. Starting in Square version 2022-08-17,event
is no longer returned. For more information, see Migration notes. - The response now includes an
ACCUMULATE_PROMOTION_POINTS
event if the specified order qualifies for promotion points. This event type is only supported for applications that use the Orders API to process orders.
- The
- CalculateLoyaltyPoints endpoint. The following changes apply:
- Added the
loyalty_account_id
field to the request, which determines how promotion points are computed for the specified Square order. - Added the
promotion_points
field to the response, which contains the computed promotion points for the specified Square order.
- Added the
- AdjustLoyaltyPoints endpoint. Added the
allow_negative_balance
field, which indicates whether to allow a negative adjustment to result in a negative point balance. - Webhooks. Added the
loyalty.promotion.created
andloyalty.promotion.updated
webhook events.
Payments API:
- Payment object. For PayPay payments, the
Payment.wallet_details.brand
field value is now set to PAYPAY. - CreatePayment endpoint. This endpoint now returns a
PAYMENT_AMOUNT_MISMATCH
error code when the amount provided in the request does not match the expected amount.
- Payment object. For PayPay payments, the
Terminal API:
- PayPay is now available in Japan as a payment source for in-person payments only.
- TerminalCheckout object. The
payment_type
field now supports thePayPay
value, which allows the Square Terminal to launch the PayPay checkout screen.
- Terminal API:
- PayPay QR Code Payments. Added a topic that explains how to take PayPay payments with the Terminal API.
- Test Square APIs in the Sandbox. Added a
device_id
that can be used to test PayPay checkout requests in the Square Sandbox.