question

ridhima avatar image
ridhima asked joycebald edited

Do I need to pass order total also while adding a line item through Rest API custom order?

I'm trying to create a custom order with an employee ID and them I'm adding a line item to the order . The line item is getting updated but the order total is still Zero. I'm trying to do these with REST API

REST API
2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

joycebald avatar image joycebald commented ·

@ geometry dash scratch: No, you don't need to pass order total also while adding a line item through Rest API custom order.

0 Likes 0 ·
parquet76 avatar image parquet76 commented ·

If you are creating a custom order, you are responsible for setting the total, https://docs.clover.com/docs/creating-custom-orders and https://docs.clover.com/docs/calculating-order-totals.

0 Likes 0 ·

1 Answer

·
roseharris avatar image
roseharris answered

Yes, when adding a line item through the REST API, you typically need to update the order total separately. Think of it as ensuring solar panel are correctly aligned for maximum efficiency.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community