Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Releases: square/connect-nodejs-sdk

Version 6.20201216.0

16 Dec 19:57
3c12c06
Compare
Choose a tag to compare

Existing API updates

Orders API:

New SDK release

Documentation updates

Version 5.20201118.0

18 Nov 20:46
c676e07
Compare
Choose a tag to compare

New API releases

  • Bookings API (beta). The Bookings API lets you create applications to set up and manage bookings for appointments of fixed duration in which selected staff members of a Square seller provide specified services in supported locations for particular customers.

Existing API updates

  • Payments API:
    • Payment. The object now includes the risk_evaluation field to identify the Square-assigned risk level associated with the payment. Sellers can use this information to provide the goods and services or refund the payment.

New SDK release

Documentation updates

  • The Testing topics are moved from the end of the table of contents to the top, in the Home section under Testing your Application.
  • Pay for Orders. The topic is revised to add clarity for when to use the Payments API and Orders API to pay for an order. The Orders integration section for the Payments API is simplified accordingly.

Version 4.20201028.5 (2020-10-28)

28 Oct 19:18
0b91ba4
Compare
Choose a tag to compare

Existing API updates

  • Terminal API. New endpoints to enable sellers in Canada refund Interac payments.

  • Loyalty API (beta):

  • Locations API:

    • Location object. Has a new read-only field,full_format_logo_url, which provides URL of a full-format logo image for the location.
    • Webhooks. The Locations API now supports notifications for when a location is created and when a location is updated.
  • Orders API:

  • Invoices API (beta):

    • Invoice object. The payment_requests field can now contain up to 13 payment requests, with a maximum of 12 INSTALLMENT request types. This is a service-level change that applies to all Square API versions. For more information, see Payment requests.

Version 4.20200923.4 (2020-09-23T00:00)

23 Sep 18:55
9d7a54b
Compare
Choose a tag to compare

Existing API updates

  • Invoices API (beta)
    • InvoiceStatus enum. Added the PAYMENT_PENDING value. Previously, the Invoices API returned a PAID or PARTIALLY_PAID status for invoices in a payment pending state. Now, the Invoices API returns a PAYMENT_PENDING status for all invoices in a payment pending state, including those previously returned as PAID or PARTIALLY_PAID.
  • Payments API
    • ListPayment. The endpoint now supports the limit parameter.
  • Refunds API
  • DeviceDetails. The object now includes the device_installation_id field.

Documentation updates

  • Payment status. Added details about the Payment.status changes and how the status relates to the seller receiving the funds.
  • Refund status. Added details about the PaymentRefund.status changes and how the status relates to the cardholder receiving the funds.
  • CreateRefund errors. Added documentation for the REFUND_DECLINED error code.

Version 4.20200826.3 (2020-08-26T00:00)

26 Aug 16:51
6a6467d
Compare
Choose a tag to compare

Existing API updates

  • Orders API
    • Order object. The total_tip_money field is now GA.
    • CreateOrder, UpdateOrder, and BatchRetrieveOrders. These APIs now support merchant-scoped endpoints (for example, the CreateOrder endpoint POST /v2/orders). The location-scoped variants of these endpoints (for example, the CreateOrder endpoint POST /v2/locations/{location_id}/orders) continue to work, but these endpoints are now deprecated. You should use the merchant-scoped endpoints (you provide the location information in the request body).
  • Labor API
    • Migrate from Employees to Team Members. The Employees API is now deprecated in this release. Accordingly, update references to the Shift.employee_id field to the Shift.team_member_id field of the Labor API.
  • v2 Employees API (deprecated)
  • v1 Employees API (deprecated)

Documentation updates

  • Point of Sale API
  • Team API
    • Team API Overview. Documented the limitation related to creating a team member in the Square Sandbox.

Version 4.20200812.2 (2020-08-12T00:00)

12 Aug 17:23
1ea2495
Compare
Choose a tag to compare

API releases

Existing API updates

SqPaymentForm SDK updates

Documentation updates

Version 4.20200722.1 (2020-07-22T00:00)

22 Jul 16:48
fafefbb
Compare
Choose a tag to compare

API releases

Existing API updates

  • Catalog API

  • Locations API

  • Merchants API

  • Orders API

    • PricingOptions. You can now enable the auto_apply_discounts of the options to have rule-based discounts automatically applied to an Order that is pre-configured with a pricing rule.
  • Inventory API

    • Replaced 500 error on max string length exceeded with a max length error message. Max length attribute added to string type fields.
  • Terminal API (beta)

    • TerminalCheckout object. The TerminalCheckoutCancelReason field is renamed to ActionCancelReason.

Documentation updates

Version 4.20200625.0 (2020-06-25T00:00)

25 Jun 16:01
6fe3467
Compare
Choose a tag to compare

New API release

Existing API updates

  • Catalog API

    • Pricing is now GA. It allows an application to configure catalog item pricing rules for the specified discounts to apply automatically.
  • Payments API

Version 3.20200528.0 (2020-05-28)

28 May 16:59
e52d1da
Compare
Choose a tag to compare

API releases

Existing API updates

  • Orders API

    • CalculateOrder (beta) endpoint. Use the endpoint to calculate adjustments (for example, taxes and discounts) to an order for preview purposes. In response, the endpoint returns the order showing the calculated totals. You can use this endpoint with an existing order or an order that has not been created.
      The endpoint does not update an existing order. It only returns a calculated view of the order that you provided in the request. To create or update an order, use the CreateOrder and UpdateOrder endpoints, respectively.
    • Order type. Two fields are added in support of the Loyalty API integration. For more information, see Deferred reward creation. For an example, see Redeem Points.
      • Order.rewards represents rewards added to an order by calling the CreateLoyaltyReward endpoint.
      • Order.discount.reward_ids indicates that a discount is the result of the specified rewards that were added to an order using the CreateLoyaltyReward endpoint.
  • Customers API

    • The Search Customers endpoint supports search by email address, phone number, and reference ID with the following additional query filters:
    • The created_at, updated_at, and id attributes on the Customer resource are updated to be optional. As a result, they no longer are required input parameters when you call the Square SDKs to create a Customer object. You might need to update the dependent SDKs to the latest version to mediate breaking your existing code.

Version 3.20200422.2 (2020-04-25)

25 Apr 18:25
ed539f9
Compare
Choose a tag to compare

Existing API updates

  • OAuth API
    • Obtain Token endpoint: Removed the scopes property from the request body.