我尝试使用SquarePOS API
从HTTP POST请求中生成销售这是我在Postman中发出的请求
{
"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"
}
}
}
服务器以
回答module
这似乎表明订单已成功创建。但是,在浏览SquarePOS仪表板时,我看不到销售清单中出现的促销。
在创建订单时,我是否遗漏了某些内容?
答案 0 :(得分:0)
正在正确创建订单,但我认为您遗漏了一些东西。 Orders API允许您创建一个订单,然后您可以使用Charge端点收费。您目前无法通过API创建订单,并且无需向其收费即可将其显示在仪表板或销售点中。