SquarePOS - 为什么销售没有出现在仪表板上?

SquarePOS - Why isn't the sale appearing on dashboard ?

我正在尝试使用 SquarePOS API

从 HTTP POST 请求生成销售

这是我在 Postman 中发出的请求

curl -X POST \
  https://connect.squareup.com/v2/locations/*****/orders \
  -H 'Authorization: Bearer ******' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -H 'Postman-Token: ******' \
  -d '{
  "idempotency_key": "123456AZD",
  "reference_id": "my-order-006",
  "line_items": [
    {
      "name": "Américain - Article de base",
      "quantity": "1",
      "base_price_money": {
        "amount": 1599,
        "currency": "EUR"
      }
    }
  ],
  "taxes": [

  ],
  "discounts": [

  ]
}'

服务器回复

{
    "order": {
        "id": "DQYutFAsu5hB8Xr56zBdmiilxd4F",
        "location_id": "N7VH9XRBT57MP",
        "line_items": [
            {
                "quantity": "1",
                "name": "Américain - Article de base",
                "base_price_money": {
                    "amount": 1599,
                    "currency": "EUR"
                },
                "gross_sales_money": {
                    "amount": 1599,
                    "currency": "EUR"
                },
                "total_tax_money": {
                    "amount": 0,
                    "currency": "EUR"
                },
                "total_discount_money": {
                    "amount": 0,
                    "currency": "EUR"
                },
                "total_money": {
                    "amount": 1599,
                    "currency": "EUR"
                }
            }
        ],
        "created_at": "2018-04-30T12:44:47.816Z",
        "updated_at": "2018-04-30T12:44:47.816Z",
        "status": "OPEN",
        "reference_id": "my-order-006",
        "total_tax_money": {
            "amount": 0,
            "currency": "EUR"
        },
        "total_discount_money": {
            "amount": 0,
            "currency": "EUR"
        },
        "total_money": {
            "amount": 1599,
            "currency": "EUR"
        }
    }
}

好像订单创建成功了。但是,在浏览 SquarePOS 仪表板时,我没有看到销售出现在销售列表中。

我在创建订单时是否遗漏了什么?

订单创建正确,但我认为您遗漏了什么。 Orders API 允许您创建一个订单,然后您可以使用费用收取 endpoint.You 目前无法通过 API 创建订单并让它们显示在仪表板或销售点而不收取费用。