question

globaliwebsite avatar image
globaliwebsite asked David Marginian Deactivated commented

description limit in create order end point

Hello,


I am using Create order end point, in the line item is there any character limit in description because I noticed some time order not created through API and return 400 bad request message. but without changing any code it works with order items.


Please advice

Orders
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

Regarding the 400 and the long description, yes there is a limit and the limit is present in the response:

                 
  1. {
  2.     "message": "400 Bad Request",
  3.     "error": {
  4.         "code": "processing_error",
  5.         "message": "[Maximum string length exceeded for 'name'. Max length is 127]"
  6.     }
  7. }

For the 500, try setting the name to a valid first/last name, not "abc".

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