# How can I show the thank-you page for an order created via code?

**URL:** <https://forum.wixstudio.com/t/how-can-i-show-the-thank-you-page-for-an-order-created-via-code/4939>\
**Category:** Ask the community\
**Tags:** question, code, wix-stores\
**Created:** [January 21, 2021, 3:26pm UTC](https://forum.wixstudio.com/t/how-can-i-show-the-thank-you-page-for-an-order-created-via-code/4939 "2021-01-21T15:26:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexmeuer](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alexmeuer/32/24180_2.png) [@alexmeuer](https://forum.wixstudio.com/u/alexmeuer)\
**Post date:** [January 21, 2021, 3:26pm UTC](https://forum.wixstudio.com/t/how-can-i-show-the-thank-you-page-for-an-order-created-via-code/4939/1 "2021-01-21T15:26:14Z")

</div>

I’ve created an order manually using the wix-stores-backend api, and I was wondering if it’s possible to send the user to the wix-stores thank-page for that order?  
If I use `wixLocation.to('/thank-you-page')` there’s no way to populate the page with the order data.

---

<div class="post-metadata">

**Author:** ![binyaminm](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/binyaminm/32/16506_2.png) [@binyaminm](https://forum.wixstudio.com/u/binyaminm)\
**Post date:** [January 21, 2021, 8:27pm UTC](https://forum.wixstudio.com/t/how-can-i-show-the-thank-you-page-for-an-order-created-via-code/4939/2 "2021-01-21T20:27:31Z")

</div>

The thank-you page works like a dynamic page, you just need to add the order Id to the URL  
For example:  
wixLocation.to(‘/thank-you-page/838528e8-ab3f-4c45-b609-0339906a1e32’)

---

<div class="post-metadata">

**Author:** ![alexmeuer](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alexmeuer/32/24180_2.png) [@alexmeuer](https://forum.wixstudio.com/u/alexmeuer)\
**Post date:** [January 22, 2021, 9:54am UTC](https://forum.wixstudio.com/t/how-can-i-show-the-thank-you-page-for-an-order-created-via-code/4939/3 "2021-01-22T09:54:42Z")

</div>

Thanks!  
Tangentially related: Do you know if order confirmation emails are supposed to be sent for orders created with the wix-stores-backend? They don’t seem to be sending for me (or maybe that’s because I’m in preview mode). Is there a way to send that email manually? I can’t find anything about it in the api docs.

---

<div class="post-metadata">

**Author:** ![binyaminm](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/binyaminm/32/16506_2.png) [@binyaminm](https://forum.wixstudio.com/u/binyaminm)\
**Post date:** [January 22, 2021, 9:25pm UTC](https://forum.wixstudio.com/t/how-can-i-show-the-thank-you-page-for-an-order-created-via-code/4939/4 "2021-01-22T21:25:16Z")

</div>

@alexmeuer Happy to help.  
Order confirmation emails supposed to be sent on live mode
