# Created Order in Sandbox

**URL:** <https://developer.squareup.com/forums/t/created-order-in-sandbox/171>\
**Category:** Questions\
**Tags:** orders-api, sandbox\
**Created:** [April 28, 2020, 7:44pm UTC](https://developer.squareup.com/forums/t/created-order-in-sandbox/171 "2020-04-28T19:44:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![imusman](https://avatars.discourse-cdn.com/v4/letter/i/3be4f8/32.png) [@imusman](https://developer.squareup.com/forums/u/imusman)\
**Post date:** [April 28, 2020, 7:44pm UTC](https://developer.squareup.com/forums/t/created-order-in-sandbox/171/1 "2020-04-28T19:44:03Z")

</div>

Where can I see my orders of sandbox?  
I am creating an order through this endpoint “[https://connect.squareupsandbox.com/v2/locations/{{location\_id}}/orders](https://slack-redir.net/link?url=https%3A%2F%2Fconnect.squareupsandbox.com%2Fv2%2Flocations%2F%7B%7Blocation_id%7D%7D%2Forders)”. I am getting 200K status code and a valid response. But in sandbox’s dashboard I’m not seeing any order created.

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [April 28, 2020, 8:19pm UTC](https://developer.squareup.com/forums/t/created-order-in-sandbox/171/2 "2020-04-28T20:19:37Z")

</div>

Hey @imusman welcome to the forums!

For an order to be seen in Dashboard, it must have a `fulfillments` field, plus be paid for. Are those two requirements being done?

---

<div class="post-metadata">

**Author:** ![imusman](https://avatars.discourse-cdn.com/v4/letter/i/3be4f8/32.png) [@imusman](https://developer.squareup.com/forums/u/imusman)\
**Post date:** [April 29, 2020, 9:58am UTC](https://developer.squareup.com/forums/t/created-order-in-sandbox/171/3 "2020-04-29T09:58:47Z")

</div>

@sjosey Thanks for your response  
Yes, I have a `fulfillments` field. But what do you mean by “be paid for”?  
Do you mean order should be paid? If yes, how can I pay for the order? Which endpoint I would use?

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [April 29, 2020, 4:37pm UTC](https://developer.squareup.com/forums/t/created-order-in-sandbox/171/4 "2020-04-29T16:37:52Z")

</div>

Yes, you have to pay for the order. You can use [CreatePayment](https://developer.squareup.com/reference/square/payments-api/create-payment) and pass the `order_id` in the request.

---

<div class="post-metadata">

**Author:** ![ColinLongworth](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@ColinLongworth](https://developer.squareup.com/forums/u/ColinLongworth)\
**Post date:** [June 12, 2020, 6:35pm UTC](https://developer.squareup.com/forums/t/created-order-in-sandbox/171/5 "2020-06-12T18:35:01Z")

</div>

As some feedback to Square, you need to highlight this in the developer docs as it’s pretty crazy that an order can be created and fully available in the API but not show up in the Dashboard. Personally, I’d consider this a huge bug but I understand the thought process that went into it.

I made a quick gist to demo the process:

> <https://gist.github.com/MCKLtech/0551dc9d6f86d7921d67665b8e1d0e5c>

---

<div class="post-metadata">

**Author:** ![axme](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@axme](https://developer.squareup.com/forums/u/axme)\
**Post date:** [December 8, 2020, 4:02pm UTC](https://developer.squareup.com/forums/t/created-order-in-sandbox/171/6 "2020-12-08T16:02:28Z")

</div>

@sjosey @ColinLongworth does it need to be paid and have fulfillment details for an order to be seen in the sandbox dashboard or on the merchant’s dashboard or both?  
Is it possible to send an order that has been paid in advance and not through Square payment processor?

---

<div class="post-metadata">

**Author:** ![axme](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@axme](https://developer.squareup.com/forums/u/axme)\
**Post date:** [December 8, 2020, 4:44pm UTC](https://developer.squareup.com/forums/t/created-order-in-sandbox/171/7 "2020-12-08T16:44:54Z")

</div>

thank you \<3  
This is super helpful. To create an order outside of sandbox, should I follow this same structure?

If yes, what do you replace this with?  
//In the sandbox, you can use this demo source.  
$body\_sourceId = ‘ccof:customer-card-id-ok’;  
$body\_idempotencyKey = uniqid();  
$body\_amountMoney = new \Square\Models\Money;  
$body\_amountMoney-\>setAmount($order-\>getTotalMoney()-\>getAmount());  
$body\_amountMoney-\>setCurrency(\Square\Models\Currency::CAD);  
$body = new \Square\Models\CreatePaymentRequest(  
$body\_sourceId,  
$body\_idempotencyKey,  
$body\_amountMoney  
);

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [December 8, 2020, 5:15pm UTC](https://developer.squareup.com/forums/t/created-order-in-sandbox/171/8 "2020-12-08T17:15:32Z")

</div>

It must be paid to be seen anywhere including the dashboard or Square POS. If it’s not paid by Square, you cannot complete it so it will not show up. Yes, production will work the same; you just need to update your credentials and host domain (so use `connect.squareup.com` instead of `connect.squareupsandbox.com`).

---

<div class="post-metadata">

**Author:** ![axme](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@axme](https://developer.squareup.com/forums/u/axme)\
**Post date:** [December 8, 2020, 5:36pm UTC](https://developer.squareup.com/forums/t/created-order-in-sandbox/171/9 "2020-12-08T17:36:18Z")

</div>

Thank you @sjosey.  
Is there a workaround for placing an order via the Order API for people who want to redeem online a bundle that they had bought in cash?

Basically, people paid 10 coffees beforehand in cash and I want that they can order those 10 coffees from my app without having to pay. I wanted that the shop can receive that order as well.

---

<div class="post-metadata">

**Author:** ![axme](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@axme](https://developer.squareup.com/forums/u/axme)\
**Post date:** [December 9, 2020, 8:53pm UTC](https://developer.squareup.com/forums/t/created-order-in-sandbox/171/10 "2020-12-09T20:53:13Z")

</div>

Reply from Stephen on slack: 1. Technically, yes, you are able to pay for an order that has a total of $0. You will want to use the [PayOrder](https://developer.squareup.com/reference/square/orders-api/pay-order) endpoint and simply do not pass any `payment_ids` along with it.
