question

kennethbaker88 avatar image
kennethbaker88 asked kennethbaker88 answered

Adding more than four Line Items to an Order

I am trying to add more than four Line Items to an order. I am creating it using the

$curl = curl_init('https://api.eu.clover.com/v3/merchants/' . $merchant_id . '/orders/' . $order_id . '/line_items');

It will add the first four but not any after that.

OrdersREST APILineItems
10 |2000 characters needed characters left characters exceeded

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

David Marginian avatar image
David Marginian answered David Marginian edited

My guess is that you are using a merchant token and getting rate limited (https://docs.clover.com/docs/api-usage-rate-limits). Are you checking the response? That endpoint is for adding a single line item. Please see https://docs.clover.com/docs/working-with-orders.

10 |2000 characters needed characters left characters exceeded

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

kennethbaker88 avatar image
kennethbaker88 answered

Thank you so much, I was getting a rate limit.

10 |2000 characters needed characters left characters exceeded

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