Creating an order

hi,

I have created an order using this call :

result = client.orders.create_order(
body = {
“order”: {
“location_id”: ‘TW3J’,
“reference_id”: “my-order-001”,
“line_items”: [
{
“name”: “Testing API Orders”,
“quantity”: “1”,
“base_price_money”: {
“amount”: 100,
“currency”: “GBP”
}
},
],
“idempotency_key”: “8193148c”
}
}
)
result_json = json.dumps(result.body, indent=4)
print(result_json)

However the order is not showing u on the GUI and i was wondering why this is happening and if there is something wrong in my call or something else that I am not doing correctly?

Thanks,
Kam

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Orders API
Create and Publish Invoices
Take a Pickup Order and Pay for It

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

The order you created using the CreateOrder endpoint will not immediately appear in the Seller Dashboard. Square only pushes orders to the Seller Dashboard if the orders meet specific conditions. In particular, an order will appear in the Seller Dashboard if it includes fulfillment details and has been paid for. If you’re testing in the Square Sandbox, the order will appear in the Seller Dashboard in Sandbox mode, but not in Production mode.

If you want to view the order you created, you can use the RetrieveOrder endpoint with the order_id returned from your CreateOrder call.

This answer was reviewed by @Bryan-Square.