# Create Order Issue

**URL:** <https://forums.ordoro.com/t/create-order-issue/1739>\
**Category:** Uncategorized\
**Created:** [August 24, 2023, 3:14pm UTC](https://forums.ordoro.com/t/create-order-issue/1739 "2023-08-24T15:14:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![btjtc](https://avatars.discourse-cdn.com/v4/letter/b/7ab992/32.png) [@btjtc](https://forums.ordoro.com/u/btjtc)\
**Post date:** [August 24, 2023, 3:14pm UTC](https://forums.ordoro.com/t/create-order-issue/1739/1 "2023-08-24T15:14:23Z")

</div>

When creating order M-PO1198-024-TEST via API, it’s coming through with zeroes for the line item prices, line item totals, order subtotal, and grand total. Oddly the initial order summary drilldown screen (prior to entering into the order details page) shows the correct total, but once you click through to the order detail screen all of that information shows zeroes. We’ve checked the API docs and believe the structure is correct. Please see JSON + screenshots below.

{  
“order\_id”: “PO1198-024-TEST”,  
“cart”: 114045,  
“order\_date”: “2023-08-21T00:00:00”,  
“shipping\_address”: {  
“name”: “withheld”,  
“street1”: “withheld”,  
“city”: “Ketchum”,  
“state”: “ID”,  
“zip”: “83340”,  
“country”: “USA”,  
“email”: “”  
},  
“billing\_address”: {  
“name”: “withheld”,  
“street1”: “withheld”,  
“city”: “Ketchum”,  
“state”: “ID”,  
“zip”: “83340”,  
“country”: “USA”,  
“email”: “”  
},  
“lines”: [  
{  
“quantity”: 6,  
“product”: {  
“sku”: “YSRQF33GSEHUXMAC4WTMDJMU”,  
“name”: “withheld”,  
“price”: 10.75,  
“taxable”: “false”  
}  
},  
{  
“quantity”: 12,  
“product”: {  
“sku”: “BDGTZ4X4JIJ6FEMMS6QGWCEB”,  
“name”: “withheld”,  
“price”: 10.75,  
“taxable”: “false”  
}  
},  
{  
“quantity”: 12,  
“product”: {  
“sku”: “O7OXMVEJU3VESTYJCTKFZXFU”,  
“name”: “withheld”,  
“price”: 10.75,  
“taxable”: “false”  
}  
}  
],  
“product\_amount”: 322.5,  
“tax\_amount”: 0,  
“grand\_total”: 322.5  
}

Order Summary Screenshot: [Annotation-Annotation on 2023-08-24 at 08-06-18.png.png - Droplr](https://d.pr/i/vf8JnN)

Order Details Screenshot: [Annotation-Annotation on 2023-08-24 at 08-04-24.png.png - Droplr](https://d.pr/i/GSTJoP)

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [August 24, 2023, 3:23pm UTC](https://forums.ordoro.com/t/create-order-issue/1739/2 "2023-08-24T15:23:38Z")

</div>

Hi @btjtc Thanks for the question,

If you look at the [POST /v3/order documentation](https://docs.ordoro.com/#tag/Order/operation/Order_POST) you will see that the lines include the information you are seeking if you require them to be displayed.

lines  
required Array of objects (Core API Order Line Schema) [items]

| product\_name | string |
| --- | --- |
| item\_price | number |
| quantity | integer |
| selected\_option | string |
| total\_price | number |
| tax\_lines | Array of objects[items] |

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [August 24, 2023, 3:33pm UTC](https://forums.ordoro.com/t/create-order-issue/1739/3 "2023-08-24T15:33:51Z")

</div>

As for the differences in the summary vs detail view, I believe this is a UI detail that calculates totals in the detail view.

---

<div class="post-metadata">

**Author:** ![mikewilliams](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/mikewilliams/32/171_2.png) [@mikewilliams](https://forums.ordoro.com/u/mikewilliams)\
**Post date:** [August 29, 2023, 6:07pm UTC](https://forums.ordoro.com/t/create-order-issue/1739/4 "2023-08-29T18:07:45Z")

</div>

@sophie Do we have to put both total price and item price? Or would total price be calculated. We changed our call to use item\_price instead of item{ price} but we’re still getting 0’s on all the line items. It’s also not clear if we need to pass the product\_total and grand\_total params either or if those override the line items.

{  
“quantity”: 6,  
“item\_price”: 10.75,  
“product”: {  
“sku”: “123456”,  
“name”: “Product Name”  
}

---

<div class="post-metadata">

**Author:** ![btjtc](https://avatars.discourse-cdn.com/v4/letter/b/7ab992/32.png) [@btjtc](https://forums.ordoro.com/u/btjtc)\
**Post date:** [September 7, 2023, 3:35pm UTC](https://forums.ordoro.com/t/create-order-issue/1739/5 "2023-09-07T15:35:53Z")

</div>

@sophie circling back on the message above from @mikewilliams

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [September 22, 2023, 6:07pm UTC](https://forums.ordoro.com/t/create-order-issue/1739/6 "2023-09-22T18:07:12Z")

</div>

> [@mikewilliams](#):
>
> It’s also not clear if we need to pass the product\_total and grand\_total params

Are you talking about for the order? What have you tried? I’m not sure i understand how you’re sending information and getting `0` amounts for everything. Have you looked at an order that has the values in the app via GET in the api to compare?

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [September 22, 2023, 6:18pm UTC](https://forums.ordoro.com/t/create-order-issue/1739/7 "2023-09-22T18:18:19Z")

</div>

```auto
“quantity”: 6,
“total_price”: 64.50,
“product”: {
“sku”: “123456”,
“name”: “Product Name”
}

```

edited from above to reflect total\_price

just ran a couple of curls, and i used `order.lines[0].total_price` to get the calculated values in the app.
