Version 18.0.0.20211215 (2021-12-15)
API updates
-
Invoices API:
-
The Invoices API now supports seller accounts in France. For more information, see International availability and considerations.
-
France only:
Invoice
object. Added a newpayment_conditions
field, which contains payment terms and conditions that are displayed on the invoice. This field is available only for sellers in France. For more information, see Payment conditions.Square version 2021-12-15 or higher is required to set this field, but it is returned in
ListInvoices
andRetrieveInvoice
requests for all Square versions.
-
-
Cards API
- Added the
CARD_DECLINED_VERIFICATION_REQUIRED
error code to the list of error codes returned by CreateCard.
- Added the
-
Catalog API:
-
CreateCatalogImage endpoint
- Updated to support attaching multiple images to a Catalogbject instance.
- Added
is_primary
option to let the caller choose to attach an image as the primary image on the object for display with the Square Point of Sale and other first-party Square applications. For more information, see Upload and Attach Images.
-
CatalogObject object
- Retired the
image_id
field, used to hold a single image object attached to an image-supporting object of theITEM
,ITEM_VARIATION
,CATEGORY
, orMODIFIER_LIST
type, in Square API version 2021-12-15 and later, which supports attachment of multiple images. Theimage_id
field is still supported in Square API version prior to 2021-12-15. For more information, see Work with Images: Overview.
- Retired the
-
CatalogItem, CatalogItemVariation, CatalogCategory or CatalogModifierList object
- Added
image_ids
list to hold attached image objects. The first element ofimage_ids
list refers to the primary image attached to the catalog object. For more information, see Work with Images: Overview.
- Added
-
UpdateCatalogImage endpoint
- Added to support replacing the image file encapsulated by an existing CatalogImage object. For more information, see Replace image file on a CatalogImage object.
-
CatalogPricingRule object
- Added minimum_order_subtotal_money field to require that the minimum order subtotal be reached before the pricing rule may be applied.
-
Documentation updates
- Added a new top-level node for Developer Tools. This node includes such features as Sandbox, API Logs, and Webhooks.
- Added Webhook Event Logs (beta) documentation to the Developer