问题标签 [square-connect]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
132 浏览

webhooks - square connect api webhook 更新错误

我越来越

{"type":"bad_request","message":"Unexpected token }"}

从更新Webhooks端点。我正在尝试在 asp.net 中实现这一点。我的代码块如下:

谁能帮我这个?我已经在 Google 上搜索了任何连接 API 实施指南/示例,但没有运气。

0 投票
1 回答
1423 浏览

square-connect - square connect api的速率限制是多少?

目前文档只是说:

如果 Connect API 端点在短时间内收到太多与同一应用程序或访问令牌关联的请求,它们可能会以 429 Too Many Requests 错误进行响应。如果发生这种情况,请稍后重试您的请求。

非常感激!

0 投票
1 回答
887 浏览

asp.net - square connect api获取token错误

我已经从 OAuth 授权中成功获取了 square 的代码。但我无法交换它来获取访问令牌。我得到这个回应:

我的 asp.net 实现如下:

我被困在这一点上。不明白为什么它说缺少 client_id 参数,尽管我发送了这个参数。

0 投票
1 回答
90 浏览

square-connect - 创建项目,不可处理的实体

我正在尝试使用连接 api 来创建新产品。我不断收到以下错误。

我传递的对象确实有一个名称和一个变体。

我不确定为什么会失败,任何帮助都会很棒。

0 投票
1 回答
153 浏览

square-connect - 如何在 Square-Connect API 中输入一批付款

如果我有一个自定义的商业会计系统,并且我想使用存储的卡信息将一系列月末付款放到 Square-connect API 上,即非刷卡付款。我怎样才能做到这一点?

我看到我可以在哪里列出付款,但不能通过 API 创建新付款。

现在,这是一个手动过程,一个人将报告和所有数据输入到 Square 的“手动支付”网站。当然,这既费时又容易出错。

想法受到赞赏。

0 投票
1 回答
199 浏览

asp.net - 使用 square connect API 上传产品图片

我很难使用他们的连接 API 将产品图片上传到 Square。他们在 github 中提供了一些示例代码,但没有任何关于图像上传的内容。我的猜测是问题出在 Content-Type: multipart/form-data 上。我也尝试过使用 fiddler 的自定义 http 请求。谁能告诉我这样做的路径?我在 asp.net 中实现这个。

0 投票
1 回答
225 浏览

inventory-management - Square Connect 将库存数量调整为固定

我如何将 square connect API 上的数量调整为固定类型,例如:

我想将 square 上的数量更新为 5 ,是的,我不知道 square 上的数量是多少,所以我不能使用 -5 和调整类型 SALE。库存调整类型是否有任何选项可以使其固定。谢谢

0 投票
1 回答
386 浏览

c# - RestRequest 和 Square Connect

我正在运行以下代码:

响应错误消息指出:

不知道为什么我会收到此错误

0 投票
1 回答
191 浏览

ios - Defining custom url schemes whilst authenticating via OAuth to the Square Connect API

I do not want to accept payments from my app so I do not need the Commerce API but I am having trouble authenticating via an iOS app without being able to define custom url schemes in the "Redirect URL" field.

According to Square's API documentation, OAuth is the only authentication scheme available however it restricts the "Redirect URL" to http://localhost or https:// only.

Most OAuth implementations allow defining custom schemes yourapp://oauth-callback instead of just using https://oauth-callback to implement this sort of flow on mobile devices (at least on Apple devices).

0 投票
2 回答
129 浏览

square-connect - 自 2 月 ~10 日以来,POST REFUND 返回错误 400

我有一个脚本处理一些退款付款,这些付款从大约 2月10日。服务器响应 Content-Type is not supported ... 即使我的标头 Content-Type 看起来确实正确

相同的代码在该日期之前工作,这让我相信服务器端发生了一些变化,但我最近在 square-connect API 更改日志中没有注意到任何可以解释这个问题的东西。

任何帮助将不胜感激:)谢谢

请参阅下面的 JSON 请求和响应。