# \#node-js

**URL:** https://developer.squareup.com/forums/tag/node-js/36.md

[Latest](https://developer.squareup.com/forums/latest.md) · [Categories](https://developer.squareup.com/forums/categories.md) · [Tags](https://developer.squareup.com/forums/tags.md)

---

## [Implementing Checkout API in Node.js](https://developer.squareup.com/forums/t/implementing-checkout-api-in-node-js/26457)

<div class="topic-metadata">

**Author:** [@DavidStowell](https://developer.squareup.com/forums/u/DavidStowell)\
**Replies:** 3\
**Last updated:** [June 22, 2026, 2:32am UTC](https://developer.squareup.com/forums/t/implementing-checkout-api-in-node-js/26457 "2026-06-22T02:32:29Z")

</div>

Greetings, I have successfully implemented an older version of Checkout API, using CreateCheckout, in PHP. I am now updating the site to React and the latest version of the API, and am trying to figure out how to code t…

---

## [Axios Vulnerability in Square NPM requirements?](https://developer.squareup.com/forums/t/axios-vulnerability-in-square-npm-requirements/18288)

<div class="topic-metadata">

**Author:** [@robertgreenstreet](https://developer.squareup.com/forums/u/robertgreenstreet)\
**Replies:** 4\
**Last updated:** [August 29, 2024, 12:07am UTC](https://developer.squareup.com/forums/t/axios-vulnerability-in-square-npm-requirements/18288 "2024-08-29T00:07:32Z")

</div>

\# npm audit report axios 1.3.2 - 1.7.3 Severity: high Server-Side Request Forgery in axios - https://github.com/advisories/GHSA-8hc4-vh64-cxmj fix available via \`npm audit fix\` node\_modules/axios 1 high severity vulne…

---

## [Are there legal reasons not to create loyalty accounts via my application?](https://developer.squareup.com/forums/t/are-there-legal-reasons-not-to-create-loyalty-accounts-via-my-application/18489)

<div class="topic-metadata">

**Author:** [@robertgreenstreet](https://developer.squareup.com/forums/u/robertgreenstreet)\
**Replies:** 2\
**Last updated:** [August 29, 2024, 12:04am UTC](https://developer.squareup.com/forums/t/are-there-legal-reasons-not-to-create-loyalty-accounts-via-my-application/18489 "2024-08-29T00:04:47Z")

</div>

The Cat Cafe I’m working for is using a third-party booking system that “integrates” with Square, in that it sends over transaction and customer data–however it does not create loyalty accounts nor accumulate loyalty poi…

---

## [Revoke oauth token with Node.js SDK](https://developer.squareup.com/forums/t/revoke-oauth-token-with-node-js-sdk/14065)

<div class="topic-metadata">

**Author:** [@akmicro](https://developer.squareup.com/forums/u/akmicro)\
**Replies:** 2\
**Last updated:** [March 30, 2024, 2:50am UTC](https://developer.squareup.com/forums/t/revoke-oauth-token-with-node-js-sdk/14065 "2024-03-30T02:50:20Z")

</div>

I am using the Node.js SDK successfully for several API calls, but cannot get oAuthApi.revokeToken to work . This is my code - const newclient = client.withConfiguration({ accessToken: 'Client '+process.env.SQUARE\_APP…

---

## [Node.js SDK response.body vs response.result](https://developer.squareup.com/forums/t/node-js-sdk-response-body-vs-response-result/10400)

<div class="topic-metadata">

**Author:** [@goodjuju](https://developer.squareup.com/forums/u/goodjuju)\
**Replies:** 3\
**Last updated:** [August 22, 2023, 4:20pm UTC](https://developer.squareup.com/forums/t/node-js-sdk-response-body-vs-response-result/10400 "2023-08-22T16:20:16Z")

</div>

Hello. I’ve been using the node.js SDK. I’m able to output data from my server in the terminal. I’m also able to get data to the client(DOM). I’m able to do this by using res.send(response.body), which is a string in the…

---

## [createPayment node.js sdk api call times out but still creates payment](https://developer.squareup.com/forums/t/createpayment-node-js-sdk-api-call-times-out-but-still-creates-payment/8862)

<div class="topic-metadata">

**Author:** [@savvycatsolutions](https://developer.squareup.com/forums/u/savvycatsolutions)\
**Replies:** 2\
**Last updated:** [March 15, 2023, 3:42pm UTC](https://developer.squareup.com/forums/t/createpayment-node-js-sdk-api-call-times-out-but-still-creates-payment/8862 "2023-03-15T15:42:33Z")

</div>

I am using the Square api in a node.js backend (square - npm) to create credit card payments using the paymentsApi.createPayment() method as a promise and using a .then() block to handle success and a .catch() block to h…

---

## [BigInt Type Error on new Node SDK](https://developer.squareup.com/forums/t/bigint-type-error-on-new-node-sdk/1965)

<div class="topic-metadata">

**Author:** [@mniaey](https://developer.squareup.com/forums/u/mniaey)\
**Replies:** 10\
**Last updated:** [September 17, 2022, 11:48pm UTC](https://developer.squareup.com/forums/t/bigint-type-error-on-new-node-sdk/1965 "2022-09-17T23:48:55Z")

</div>

I am using an Express backend with the Node SDK. After updating to the latest version of the API, and version 9.0.0 of the Node SDK, my app can’t even list the catalog: $ curl http://localhost:3001 { "message":"Do not…

---

## [Sandbox OAuth Unauthorized](https://developer.squareup.com/forums/t/sandbox-oauth-unauthorized/6559)

<div class="topic-metadata">

**Author:** [@Ejay](https://developer.squareup.com/forums/u/Ejay)\
**Replies:** 6\
**Last updated:** [July 21, 2022, 6:09pm UTC](https://developer.squareup.com/forums/t/sandbox-oauth-unauthorized/6559 "2022-07-21T18:09:59Z")

</div>

I am having issues with the sandbox endpoints. I created a dotenv file that stores my tokens. However, when I try to create a customer in a js file it will state “AUTHENTICATION\_ERROR, UNAUTHORIZED, This request could no…

---

## [Requests hanging on NodeJS SDK](https://developer.squareup.com/forums/t/requests-hanging-on-nodejs-sdk/6024)

<div class="topic-metadata">

**Author:** [@sam\_899](https://developer.squareup.com/forums/u/sam_899)\
**Replies:** 3\
**Last updated:** [June 3, 2022, 9:23pm UTC](https://developer.squareup.com/forums/t/requests-hanging-on-nodejs-sdk/6024 "2022-06-03T21:23:11Z")

</div>

Hi, I’m using the nodejs sdk client, and noticing that sometimes, requests to fetch data from the square api is just hanging. I’ve been mostly testing with the orders endpoint, but i believe its happening with others t…

---

## [Team Member Information with Orders](https://developer.squareup.com/forums/t/team-member-information-with-orders/5916)

<div class="topic-metadata">

**Author:** [@NakedDev](https://developer.squareup.com/forums/u/NakedDev)\
**Replies:** 2\
**Last updated:** [May 11, 2022, 9:39pm UTC](https://developer.squareup.com/forums/t/team-member-information-with-orders/5916 "2022-05-11T21:39:51Z")

</div>

I am using the Square Node.js SDK. Version 18.0.0 and I am trying to fetch all Orders that are CLOSED or COMPLETED that has a team\_member\_id included with it. Can’t seem to find that. Any help with possibly hitting the r…

---

## [Nodejs - Instantiating a CatalogObject correctly](https://developer.squareup.com/forums/t/nodejs-instantiating-a-catalogobject-correctly/5567)

<div class="topic-metadata">

**Author:** [@micarner](https://developer.squareup.com/forums/u/micarner)\
**Replies:** 1\
**Last updated:** [March 31, 2022, 4:06pm UTC](https://developer.squareup.com/forums/t/nodejs-instantiating-a-catalogobject-correctly/5567 "2022-03-31T16:06:26Z")

</div>

Hello, I don’t need any help here, but I wanted to post this because it was confusing me for a hot minute. I’m coming from Java, but am doing this integration with nodejs so I can learn about it. I kept trying to make …

---

## [Bug: Catalog API for listing Items is missing a field](https://developer.squareup.com/forums/t/bug-catalog-api-for-listing-items-is-missing-a-field/5125)

<div class="topic-metadata">

**Author:** [@matteo](https://developer.squareup.com/forums/u/matteo)\
**Replies:** 7\
**Last updated:** [February 11, 2022, 8:08pm UTC](https://developer.squareup.com/forums/t/bug-catalog-api-for-listing-items-is-missing-a-field/5125 "2022-02-11T20:08:14Z")

</div>

I’m trying to read the soldOut field that exists in an item variation field’s locationOverrides response, but it is not there for the Node SDK. I am calling the ListCatalog endpoint. Only the locationId exists in it. Whe…

---

## [Square Web Payments SDK Mobile Browser](https://developer.squareup.com/forums/t/square-web-payments-sdk-mobile-browser/4476)

<div class="topic-metadata">

**Author:** [@tommypope](https://developer.squareup.com/forums/u/tommypope)\
**Replies:** 3\
**Last updated:** [December 17, 2021, 1:56am UTC](https://developer.squareup.com/forums/t/square-web-payments-sdk-mobile-browser/4476 "2021-12-17T01:56:57Z")

</div>

I’m using the Square Web Payments SDK on a React web app. It all is working perfectly on desktop, testing Chrome and Safari. When testing the build on a mobile browser, Safari, the payment form doesn’t populate.

---

## [Square Node SDK Post Requests return error 'Expected "{" (line 1, character 1)'](https://developer.squareup.com/forums/t/square-node-sdk-post-requests-return-error-expected-line-1-character-1/3388)

<div class="topic-metadata">

**Author:** [@jake-fryde](https://developer.squareup.com/forums/u/jake-fryde)\
**Replies:** 8\
**Last updated:** [September 13, 2021, 4:18pm UTC](https://developer.squareup.com/forums/t/square-node-sdk-post-requests-return-error-expected-line-1-character-1/3388 "2021-09-13T16:18:48Z")

</div>

Hello, I’ve been getting the following error since Sunday when using the Node SDK. It seems like this is only happening on requests which result in a PUT or POST request under the hood as calls like listCards or listLoca…

---

## [404 error using node.js checkoutAPI](https://developer.squareup.com/forums/t/404-error-using-node-js-checkoutapi/3220)

<div class="topic-metadata">

**Author:** [@cucumberbob](https://developer.squareup.com/forums/u/cucumberbob)\
**Replies:** 1\
**Last updated:** [August 15, 2021, 2:25pm UTC](https://developer.squareup.com/forums/t/404-error-using-node-js-checkoutapi/3220 "2021-08-15T14:25:44Z")

</div>

I’m trying to use square hosted checkout for my pizza business. It looks as though the data I’m sending is valid, as I had various issues I fixed with validity before this one. I was getting 401 errors for a bit, so chan…

---

## [Version value returned from customer list API](https://developer.squareup.com/forums/t/version-value-returned-from-customer-list-api/3160)

<div class="topic-metadata">

**Author:** [@lascolam](https://developer.squareup.com/forums/u/lascolam)\
**Replies:** 2\
**Last updated:** [August 6, 2021, 3:01pm UTC](https://developer.squareup.com/forums/t/version-value-returned-from-customer-list-api/3160 "2021-08-06T15:01:01Z")

</div>

The output from the customers API in the online API explorer (https://developer.squareup.com/explorer/square/customers-api/list-customers#) includes a “version” key with a 64-bit integer value. (Reference doc here: GET /…

---

## [BigInt type error on CatalogApi](https://developer.squareup.com/forums/t/bigint-type-error-on-catalogapi/2911)

<div class="topic-metadata">

**Author:** [@schrade](https://developer.squareup.com/forums/u/schrade)\
**Replies:** 2\
**Last updated:** [June 28, 2021, 5:35pm UTC](https://developer.squareup.com/forums/t/bigint-type-error-on-catalogapi/2911 "2021-06-28T17:35:43Z")

</div>

– Console Log Here is your first location: { id: ‘LZ89B1KRZYV9C’, name: ‘XYZ STORE’, – snip --, mcc: ‘5999’ } reports::getSearchCatalogItems() Unexpected Error: ReferenceError: BigInt is not defined at Object.coerceS…

---

## [Square POS does not forward order generated in API to KDS](https://developer.squareup.com/forums/t/square-pos-does-not-forward-order-generated-in-api-to-kds/2499)

<div class="topic-metadata">

**Author:** [@archlinuxusa](https://developer.squareup.com/forums/u/archlinuxusa)\
**Replies:** 1\
**Last updated:** [May 10, 2021, 9:51pm UTC](https://developer.squareup.com/forums/t/square-pos-does-not-forward-order-generated-in-api-to-kds/2499 "2021-05-10T21:51:49Z")

</div>

Hello! Any other orders, including using the square online order system when they post to the POS they are automatically sent over to my freshKDS and printed automatically. However, when I generate an order using the A…

---

## [PHP website online payment with digital wallet like google and apple](https://developer.squareup.com/forums/t/php-website-online-payment-with-digital-wallet-like-google-and-apple/2288)

<div class="topic-metadata">

**Author:** [@tm\_developer123](https://developer.squareup.com/forums/u/tm_developer123)\
**Replies:** 1\
**Last updated:** [April 12, 2021, 5:38pm UTC](https://developer.squareup.com/forums/t/php-website-online-payment-with-digital-wallet-like-google-and-apple/2288 "2021-04-12T17:38:08Z")

</div>

I read the " Walkthrough: Integrate Square Payments in a Website"(https://developer.squareup.com/docs/payment-form/payment-form-walkthrough ) which is using node. I also see that there are SDKs available (https://develo…

---

## [Unchecked runtime.lastError: The message port closed before a response was received. Error with sqpaymentform-node.js-starterkit](https://developer.squareup.com/forums/t/unchecked-runtime-lasterror-the-message-port-closed-before-a-response-was-received-error-with-sqpaymentform-node-js-starterkit/2136)

<div class="topic-metadata">

**Author:** [@vwtrev](https://developer.squareup.com/forums/u/vwtrev)\
**Replies:** 1\
**Last updated:** [March 20, 2021, 11:25am UTC](https://developer.squareup.com/forums/t/unchecked-runtime-lasterror-the-message-port-closed-before-a-response-was-received-error-with-sqpaymentform-node-js-starterkit/2136 "2021-03-20T11:25:10Z")

</div>

Hi, my client is looking to move over to Square (on my recommendation as it looks like a very professional payments company) but I’m new here. We are looking at using the online payments feature on our website as well as…

---

## [Using minified version of Node.js SDK for Square](https://developer.squareup.com/forums/t/using-minified-version-of-node-js-sdk-for-square/1481)

<div class="topic-metadata">

**Author:** [@waddelleng](https://developer.squareup.com/forums/u/waddelleng)\
**Replies:** 1\
**Last updated:** [December 23, 2020, 12:07am UTC](https://developer.squareup.com/forums/t/using-minified-version-of-node-js-sdk-for-square/1481 "2020-12-23T00:07:57Z")

</div>

I noticed there is a square.cjs.production.min.js file in the node\_modules folder when I install square in npm. Can i add that to my project which gets minified, or is it best to minify the node\_modules/square folder us…

---

## [Order-Ahead Sample Application](https://developer.squareup.com/forums/t/order-ahead-sample-application/1308)

<div class="topic-metadata">

**Author:** [@michaelhilland](https://developer.squareup.com/forums/u/michaelhilland)\
**Replies:** 9\
**Last updated:** [December 10, 2020, 5:40pm UTC](https://developer.squareup.com/forums/t/order-ahead-sample-application/1308 "2020-12-10T17:40:05Z")

</div>

Evening, Hoping for some guidance. I am attempting to create the Order-Ahead Sample Application But I have already ran into a wall from step two. Testing your credentials it states to the following command in the roo…

---

## [NodeJS Square SDK package deprecation](https://developer.squareup.com/forums/t/nodejs-square-sdk-package-deprecation/443)

<div class="topic-metadata">

**Author:** [@webspence](https://developer.squareup.com/forums/u/webspence)\
**Replies:** 5\
**Last updated:** [December 1, 2020, 9:28pm UTC](https://developer.squareup.com/forums/t/nodejs-square-sdk-package-deprecation/443 "2020-12-01T21:28:37Z")

</div>

NOTICE: Square Connect Node.js SDK deprecated How drastic will the changes be for the new NodeJS SDK coming later this year? I am about to start building a backend based mostly around Square and was originally going t…

---

## [Converting circular structure to JSON↵ --\> starting at object with constructor 'ClientRequest'↵ | property 'socket' -\> object with constructor 'TLSSocket'↵ --- property '\_httpMessage' closes the circle"](https://developer.squareup.com/forums/t/converting-circular-structure-to-json-starting-at-object-with-constructor-clientrequest-property-socket-object-with-constructor-tlssocket-property-httpmessage-closes-the-circle/1289)

<div class="topic-metadata">

**Author:** [@charvai](https://developer.squareup.com/forums/u/charvai)\
**Replies:** 3\
**Last updated:** [December 1, 2020, 5:57pm UTC](https://developer.squareup.com/forums/t/converting-circular-structure-to-json-starting-at-object-with-constructor-clientrequest-property-socket-object-with-constructor-tlssocket-property-httpmessage-closes-the-circle/1289 "2020-12-01T17:57:30Z")

</div>

router.post(’/payment/create’ , (req , res) =\> { const {nonce , buyerVerificationToken}=req.body let payload = { "source\_id": nonce, "verification\_token": buyerVerificationToken, "autocomplete": true, …

---

## [Selling BitCoin and receive it in Cashapp with the Square Node.Js SDK](https://developer.squareup.com/forums/t/selling-bitcoin-and-receive-it-in-cashapp-with-the-square-node-js-sdk/1296)

<div class="topic-metadata">

**Author:** [@Eden4789](https://developer.squareup.com/forums/u/Eden4789)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 8:49am UTC](https://developer.squareup.com/forums/t/selling-bitcoin-and-receive-it-in-cashapp-with-the-square-node-js-sdk/1296 "2020-11-25T08:49:01Z")

</div>

I have a client that wants me to use Node.Js to do the following: Read their balance Sell BitCoin and give them the money in Cashapp How can I achieve this using the Square Node.Js SDK? Thanks.

---

## [Node.js SDK Beta](https://developer.squareup.com/forums/t/node-js-sdk-beta/1278)

<div class="topic-metadata">

**Author:** [@skipper](https://developer.squareup.com/forums/u/skipper)\
**Replies:** 0\
**Last updated:** [November 19, 2020, 7:47pm UTC](https://developer.squareup.com/forums/t/node-js-sdk-beta/1278 "2020-11-19T19:47:37Z")

</div>

We’re excited to announce our new Node.js SDK is now available in beta! This freshly-named square package is a major update that adds TypeScript support along with a ton of usability and debugging features. See https://g…

---

## [Can I use the square logo?](https://developer.squareup.com/forums/t/can-i-use-the-square-logo/1234)

<div class="topic-metadata">

**Author:** [@koutaku](https://developer.squareup.com/forums/u/koutaku)\
**Replies:** 1\
**Last updated:** [November 12, 2020, 5:57pm UTC](https://developer.squareup.com/forums/t/can-i-use-the-square-logo/1234 "2020-11-12T17:57:12Z")

</div>

Can I use the square logo on the credit card entry screen to reassure users?

---

## [Clarifying requirements for a simple card payment form](https://developer.squareup.com/forums/t/clarifying-requirements-for-a-simple-card-payment-form/1193)

<div class="topic-metadata">

**Author:** [@adamSquare](https://developer.squareup.com/forums/u/adamSquare)\
**Replies:** 2\
**Last updated:** [November 5, 2020, 11:00pm UTC](https://developer.squareup.com/forums/t/clarifying-requirements-for-a-simple-card-payment-form/1193 "2020-11-05T23:00:19Z")

</div>

Hi all I’m new to square and I just want to check my options. I have very simple requirements for a form that I want to embed on our website. The form will just accept the obvious credit card types, no other payment …

---

## [Nodejs BatchUpserts](https://developer.squareup.com/forums/t/nodejs-batchupserts/267)

<div class="topic-metadata">

**Author:** [@georgeedwards](https://developer.squareup.com/forums/u/georgeedwards)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 5:02pm UTC](https://developer.squareup.com/forums/t/nodejs-batchupserts/267 "2020-05-18T17:02:03Z")

</div>

I am trying to call the BatchUpsert method on the Catalog API from the Square API SDK. All of my operations so far have been successful, but now I am trying to do a batch operation, I am having issues and the SDK docs fo…
