Hello Everyone.
I am building an app for my business where the customer will select which product they want, put in a basket and then walk to my shop and pay.
I am able to create the order in the sandbox using the API, but it does not show on my dashboard. I am using the sandbox and in the future my expectation is that once the person finalize the order(open state), it will show in my point of sale app and from there I can get the payment and finalize the order.
What am I Missing?
Here is my API post:
curl https://connect.squareupsandbox.com/v2/locations/*MYLOCATION*/orders \
-X POST \
-H 'Square-Version: 2020-04-22' \
-H 'Authorization: Bearer *My Authorization* \
-H 'Content-Type: application/json' \
-d '{
"idempotency_key": "3420a210-234f-4981-a76b-40c8dc894504",
"order": {
"location_id": "MY LOCATION",
"customer_id": "Id1234",
"line_items": [
{
"quantity": "12",
"catalog_object_id": "3AOBKCHYUPN66D7BK5XTP7GF"
}
]
}
}'
and the response status is 200.
{
"order": {
"id": "y7kfHcMQzFlFIwdgAiYsqOsJ2GVZY",
"location_id": "MY LOCATION",
"line_items": [
{
"uid": "LnzGPvmf980qzSE3brk14",
"catalog_object_id": "3AOBKCHYUPN66D7BK5XTP7GF",
"quantity": "12",
"name": "Water",
"variation_name": "Regular",
"base_price_money": {
"amount": 100,
"currency": "USD"
},
"gross_sales_money": {
"amount": 1200,
"currency": "USD"
},
"total_tax_money": {
"amount": 0,
"currency": "USD"
},
"total_discount_money": {
"amount": 0,
"currency": "USD"
},
"total_money": {
"amount": 1200,
"currency": "USD"
},
"variation_total_price_money": {
"amount": 1200,
"currency": "USD"
}
}
],
"created_at": "2020-05-26T17:42:01.174Z",
"updated_at": "2020-05-26T17:42:01.174Z",
"state": "OPEN",
"version": 1,
"total_tax_money": {
"amount": 0,
"currency": "USD"
},
"total_discount_money": {
"amount": 0,
"currency": "USD"
},
"total_tip_money": {
"amount": 0,
"currency": "USD"
},
"total_money": {
"amount": 1200,
"currency": "USD"
},
"total_service_charge_money": {
"amount": 0,
"currency": "USD"
},
"net_amounts": {
"total_money": {
"amount": 1200,
"currency": "USD"
},
"tax_money": {
"amount": 0,
"currency": "USD"
},
"discount_money": {
"amount": 0,
"currency": "USD"
},
"tip_money": {
"amount": 0,
"currency": "USD"
},
"service_charge_money": {
"amount": 0,
"currency": "USD"
}
},
"source": {
"name": "Sandbox for sq0idp-MxyfMHPFiiQu4UWlW5mTBg"
},
"customer_id": "id1234"
}
}
Thanks for writing in @DennisBYA
Unfortunately you can’t set up ordering to pay later - the customer has to pay ahead of time before it is pushed to Square's POS application.
Also, the order needs fulfillments which it seems like you're not using. For your back pocket, here's a doc from our developer guides on how to set up order pushing,
Square Community