Ad

An Order Of 52 Is Placed And Only 50 Is Passed Through The API Into Laravel DB

- 1 answer

Scenario: Orders placed with over 50 unique products are not being passed through the API correctly and are being cut off at 50 (An order of 52 is placed and only 50 is passed through the API into our Laravel database).

Where we add to increase products in the order in laravel code wise.

How to call order data API in laravel code

I tried in client.php

path:\vendor\bigcommerce\api\src\Bigcommerce\Api\client.php

return self::getCollection('/orders/' . $orderID . '/products/'. '?limit=200&page2', 'OrderProduct'); 

Expected result: Limitation isn’t in place for logged in users.

Any help, experience and knowledge sharing would be appreciated.

Ad

Answer

Main Api:

https://api.bigcommerce.com/stores/{store_hash}/v2/orders/{order_id}/products?limit={limit}&page={page_no}

Limit you can put 100 and page_no as 1 and store_hash and order_id you already have.

Ad
source: stackoverflow.com
Ad