- Square Version:
2022-06-16 - Java:
20.1.0.20220616 - .NET:
19.1.0 - Node.js:
19.1.0 - PHP:
19.1.1.20220616 - Python:
19.1.0.20220616 - Ruby:
20.1.0.20220616
2022-06-16 Changelog
Bookings API:
- AppointmentSegment object. The
service_variation_idandservice_variation_versionattributes are now optional.
- AppointmentSegment object. The
Gift Card Activities API:
The Gift Card Activities API has moved to the general availability (GA) state.
GiftCardActivityRedeem object. Added the
statusfield, which indicates the redemption status:PENDING,COMPLETED, orCANCELED. This field is now included in allREDEEMactivities. Also added the correspondingGiftCardActivityRedeemStatusenum.gift_card.activity.updated webhook. New webhook event invoked when a
REDEEMactivity orIMPORTactivity is updated.CreateGiftCardActivity endpoint. The
redeem_activity_idfield is now optional forREFUNDactivities, which allows theREFUNDactivity type to be used for all gift card refunds. In addition, cross-tender refunds made from Square Point of Sale or the Square Seller Dashboard are now processed asREFUNDactivities instead ofUNLINKED_ACTIVITY_REFUNDactivities. For more information, see Migration notes.
Gift Cards API:
The Gift Cards API has moved to the GA state.
ListGiftCards endpoint. Gift cards returned in the response are now sorted by the
created_attimestamp in ascending order.
Inventory API:
- BatchRetrieveInventoryCounts endpoint. This endpoint now exposes the
limitfield for applications to set the maximum number of records to return in a page. - BatchRetrieveInventoryChanges endpoint. This endpoint now exposes the
limitfield for applications to set the maximum number of records to return in a page.
- BatchRetrieveInventoryCounts endpoint. This endpoint now exposes the
Payments API:
Card object. This object now includes a new field,
card_co_brand, which is set if a buyer uses a co-branded card for payment. For example, suppose a seller takes an in-person payment using a Square product such as Square Point of Sale. If the buyer uses Google Pay or Apple Pay that has an Afterpay card attached, the resultingPaymentobject has thecard_details.card.card_co_brandset toAFTERPAY. This additional information allows the seller to distinguish between an Afterpay card from some other card attached to Google Pay or Apple Pay.CreatePayment endpoint. By default, if an authorized payment (see Delayed Capture of a Card Payment) is not in a terminal state (
COMPLETED,CANCELED, orFAILED) after thedelay_durationtime period is expired, Square automatically cancels the payment. Now an application can optionally direct Square to complete the authorized payment by setting thedelay_actionfield toCOMPLETEin aCreatePaymentrequest. For more information, see Time threshold.
Payouts API:
- The Payouts API has moved to the GA state and replaces the deprecated V1 Settlements API.
Terminal API:
TerminalAction object. The following changes apply:
- Added
PINGas a supported Terminal action type. - Added the
device_metadatafield to support returning device information from a CreateTerminalAction request of thePINGtype. Examples of device information include battery level, operating system version, network connection settings, and other information.
For more information about using the
PINGTerminal action, see Check Device Information for a Square Terminal.- Added
- V1 Settlements API:
- Migrate from the Square Settlements API. Added a topic to document the migration from the V1 endpoints of ListSettlements and RetrieveSettlement to its V2 counterparts of ListPayouts, GetPayout, and ListPayoutEntries.
- Build Basics:
- International Development Considerations. Added to summarize the issues and considerations that a developer should be aware of when creating applications for use by sellers in other countries.