All Questions
127
questions
0
votes
0
answers
90
views
Magento 2.3.4 REST Api integration with stock using own API module
I would like to synchronize the stock with my supplier.
I am using Magento 2.3.4, supplier uses other system.
To get list of sku and quantity I have to use code like this:
$c = curl_init();
...
0
votes
0
answers
169
views
How to Override Save order Module in magento?
I trying to customize place order module but unable to find, i try to override the saveorder.php block but unable to override.
/var/www/html/durovinbathrooms/vendor/magento/module-checkout/Controller/...
0
votes
1
answer
554
views
Magento 2: 401 Unauthorized error with webapi.xml
Forgive me in advance for what is probably a basic overall question. I'm still learning Magento 2 (v.2.4.5-p1) and need some hand holding at times.
I've inherited this project with several endpoints ...
0
votes
0
answers
198
views
How to get Instagram profile info API in PHP
My problem is I get Instagram id and username, but I will need full name, profile image, email etc. I get like this Array:
( [id] => 123456 [username] => abc123)
$code = $this->getRequest()-...
0
votes
1
answer
291
views
Magento 2 - Request sample for carts/mine (GET)
I try to call the carts/mine GET route of the Magento 2 REST API, but it does not show a request sample in the documentation.
It says "Returns information for the cart for a specified customer.&...
0
votes
1
answer
416
views
Magento 2 - Where to find the complete REST API documentation
It seems like the official Magento 2 REST API Documentation is not complete.
I found this code in a application of one of our ex colleagues:
protected function addItemToCart($cartId, $cartItem)
{
...
2
votes
1
answer
353
views
REST API Performance issue in Magento 2
Is anyone here heavily using Magento rest API for catalog data (products/categories/attributes/sets/groups) persistence? like not once in a while but more as a system integration. how is the ...
1
vote
1
answer
631
views
Magento 2 - Custom rest api endpoint for PDF download - net::ERR_HTTP2_PROTOCOL_ERROR 200
I have created custom rest api endpoint in magento for downloading pdf file.
When testing it locally: From separate react JS project I am sending request to that endpoint and file is downloaded ...
1
vote
1
answer
598
views
Magento2 - Rest API - Add product to cart with "customizable option" of type "checkbox"
I have problems with adding products to the cart by REST Api, if the product has custom options and the option is of the "checkbox" type.
I tried as below, but then only one "checkbox&...
0
votes
1
answer
161
views
Mass data change via rest api
I would like to massively change the data in the order, customer and in the product
I can change the data in a single order using this query:
[POST] https://test-page.com/rest/V1/orders
Body: { "...
0
votes
2
answers
511
views
Magento2 Rest PUT API return payload of default store instead of the target store
I'm experiencing a problem with PUT API requests with Magento 2.3.5.
I send the requests to endpoints like:
/rest/STORECODE/V1/products/PRODUCT_CODE
The data are properly stored on the right store ...
0
votes
1
answer
480
views
Magneto Rest API to Update Tracking Number and Carrier Code is not working
I tried to update the tracking no and carrier code using the following API with the payload.
http://example.com/rest/default/V1/shipment/track
Payload
{
"entity":{
"order_id&...
1
vote
1
answer
387
views
Magento 2.3.4 Different hour in REST API
I send request via REST API
https://www.mysite.pl/rest/V1/orders/89
And have date and time:
"created_at": "2021-09-21 15:59:34",
When I go to Saels->Orders in admin there is ...
1
vote
1
answer
2k
views
Magento 2 rest API: create and associate select attribute option value for Manufacturer to product
I use "/all/V1/products" rest call to create product on Magento 2.
I'm using this code to create all settings as follow:
$data = [
"product" => [
...
0
votes
1
answer
2k
views
Magento 2 rest API: filter category by name
I need to find categories by name using Magento 2 rest api.
I use /all/V1/categories and filters but I can't get it to work.
Here's the code:
$url = "https://*******/index.php/rest";
$...