question

pritesh25 avatar image
pritesh25 asked David Marginian Deactivated commented

com.clover.sdk.v1.ClientException: status code: 400

I am getting com.clover.sdk.v1.ClientException: status code: 400 while placing an new order.

Above issue is not happening every time but when i add below mentioned data(displayed in logcat screenshot) into line item then i got exception.

Below is logcat of line item which entered while placing an new order

client exception 400.png

Below is code snippet for adding line item into order.

//add line item into order object
mainCloverSDKViewModel.orderConnector?.addCustomLineItem(orderObject?.id, li, true)
OrdersLineItems
10 |2000

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

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated commented

I am guessing that note field is way too long.

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.

pritesh25 avatar image pritesh25 commented ·

If that is the reason then please mention maximum length of note and other fields also such as name,alternative name etc because nowhere mentioned maximum length of field(s) for LineItems.

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ pritesh25 commented ·
Unfortunately, we don't have good documentation around limits that I can find. I can tell by looking at your request though that note is too long.
0 Likes 0 ·

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