Magento 2.3 REST API not working for default store - rest/V1/inventory/source-items Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar ManaraMagento 2 api rest update product per store id. Ot workingMagento2 - Additional_option not coming in Order REST apiMagento 2 API, catalog price rule is not appliedCustom rest API not working in magento 1.9.2.4Magento 2 rest API - How to Manage API Authentication Lifecycle on Mobile Devices Application?How to Solve Magento 2 checkout not working for custom address field?How to setup different Advanced Inventory Options for each store?Existing Products not saving after upgrading to Magento 2.3Observer for the event controller_action_predispatch not working for default Magento2 REST APIsMagento 2.3 - How to Get product-salable-quantity using REST API?
How to not starve gigantic beasts
Identify story/novel: Tribe on colonized planet, not aware of this. "Taboo," altitude sickness, robot guardian (60s? Young Adult?)
"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?
How to find the right literary agent in the USA?
Can I criticise the more senior developers around me for not writing clean code?
What *exactly* is electrical current, voltage, and resistance?
SQL Query not selecting all points that it should?
Is Diceware more secure than a long passphrase?
Why is an operator the quantum mechanical analogue of an observable?
Does Feeblemind produce an ongoing magical effect that can be dispelled?
Do I need to protect SFP ports and optics from dust/contaminants? If so, how?
Why didn't the Space Shuttle bounce back into space many times as possible so that it loose lot of kinetic energy over there?
Additive group of local rings
What's parked in Mil Moscow helicopter plant?
Error: Syntax error. Missing ')' for CASE Statement
Seek and ye shall find
What is the term for a person whose job is to place products on shelves in stores?
Married in secret, can marital status in passport be changed at a later date?
What is "leading note" and what does it mean to "raise a note"?
Is it acceptable to use working hours to read general interest books?
Is this homebrew racial feat, Stonehide, balanced?
Second order approximation of the loss function (Deep learning book, 7.33)
Flash for group photos near wall
Has a Nobel Peace laureate ever been accused of war crimes?
Magento 2.3 REST API not working for default store - rest/V1/inventory/source-items
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraMagento 2 api rest update product per store id. Ot workingMagento2 - Additional_option not coming in Order REST apiMagento 2 API, catalog price rule is not appliedCustom rest API not working in magento 1.9.2.4Magento 2 rest API - How to Manage API Authentication Lifecycle on Mobile Devices Application?How to Solve Magento 2 checkout not working for custom address field?How to setup different Advanced Inventory Options for each store?Existing Products not saving after upgrading to Magento 2.3Observer for the event controller_action_predispatch not working for default Magento2 REST APIsMagento 2.3 - How to Get product-salable-quantity using REST API?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
In Magento2.3
I'm using http://localhost/new-jk/rest/V1/inventory/source-items
it is working fine for all stores but only default is not updating properly
The service is updating quantity of product but the salable quantity does not change only for default stock.
can someone face this issue? please guide
magento2 magento2.3 rest-api
add a comment |
In Magento2.3
I'm using http://localhost/new-jk/rest/V1/inventory/source-items
it is working fine for all stores but only default is not updating properly
The service is updating quantity of product but the salable quantity does not change only for default stock.
can someone face this issue? please guide
magento2 magento2.3 rest-api
By seeing you query it looks like default might be removed from stores list somehow, Can you please check store listing API and check all available stores.
– Aaditya
9 hours ago
add a comment |
In Magento2.3
I'm using http://localhost/new-jk/rest/V1/inventory/source-items
it is working fine for all stores but only default is not updating properly
The service is updating quantity of product but the salable quantity does not change only for default stock.
can someone face this issue? please guide
magento2 magento2.3 rest-api
In Magento2.3
I'm using http://localhost/new-jk/rest/V1/inventory/source-items
it is working fine for all stores but only default is not updating properly
The service is updating quantity of product but the salable quantity does not change only for default stock.
can someone face this issue? please guide
magento2 magento2.3 rest-api
magento2 magento2.3 rest-api
edited 5 hours ago
Yann Martel
10716
10716
asked 10 hours ago
Alam ZaibAlam Zaib
9718
9718
By seeing you query it looks like default might be removed from stores list somehow, Can you please check store listing API and check all available stores.
– Aaditya
9 hours ago
add a comment |
By seeing you query it looks like default might be removed from stores list somehow, Can you please check store listing API and check all available stores.
– Aaditya
9 hours ago
By seeing you query it looks like default might be removed from stores list somehow, Can you please check store listing API and check all available stores.
– Aaditya
9 hours ago
By seeing you query it looks like default might be removed from stores list somehow, Can you please check store listing API and check all available stores.
– Aaditya
9 hours ago
add a comment |
2 Answers
2
active
oldest
votes
You can simply indicate to your endpoint that you are fetching data from default store.
It should look like below:
http://localhost/new-jk/rest/default/V1/inventory/source-items
i am executing this with curl functions and using passing this array in json format $body = json_encode(['sourceItems' =>[ ['source_code' => $stock['source'], 'sku' => $data['sku'], 'quantity'=>$data['stock'], 'status'=> $product_status] ]]);
– Alam Zaib
10 hours ago
it is working fine for other store but the salable quantity in default stock not updating
– Alam Zaib
9 hours ago
add a comment |
By seeing you query it looks like default might be removed from stores
list somehow, Can you please check store listing API and check all
available stores
<host>/rest/<store_code>/V1/inventory/source-items
But if you haven't configure any stores then pass default
<host>/rest/all/V1/inventory/source-items
For all store you need to pass website_id in post parameters
And to fetch all store data using API
storeStoreRepositoryV1
Group repository interface
http://magento.host/index.php/rest/V1/store/storeGroups
method : GETAuthorization : Bearer <admin token>
This will return website_id, root_category_id, default_store_id, name, code
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f272270%2fmagento-2-3-rest-api-not-working-for-default-store-rest-v1-inventory-source-it%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can simply indicate to your endpoint that you are fetching data from default store.
It should look like below:
http://localhost/new-jk/rest/default/V1/inventory/source-items
i am executing this with curl functions and using passing this array in json format $body = json_encode(['sourceItems' =>[ ['source_code' => $stock['source'], 'sku' => $data['sku'], 'quantity'=>$data['stock'], 'status'=> $product_status] ]]);
– Alam Zaib
10 hours ago
it is working fine for other store but the salable quantity in default stock not updating
– Alam Zaib
9 hours ago
add a comment |
You can simply indicate to your endpoint that you are fetching data from default store.
It should look like below:
http://localhost/new-jk/rest/default/V1/inventory/source-items
i am executing this with curl functions and using passing this array in json format $body = json_encode(['sourceItems' =>[ ['source_code' => $stock['source'], 'sku' => $data['sku'], 'quantity'=>$data['stock'], 'status'=> $product_status] ]]);
– Alam Zaib
10 hours ago
it is working fine for other store but the salable quantity in default stock not updating
– Alam Zaib
9 hours ago
add a comment |
You can simply indicate to your endpoint that you are fetching data from default store.
It should look like below:
http://localhost/new-jk/rest/default/V1/inventory/source-items
You can simply indicate to your endpoint that you are fetching data from default store.
It should look like below:
http://localhost/new-jk/rest/default/V1/inventory/source-items
answered 10 hours ago
magefmsmagefms
2,8302529
2,8302529
i am executing this with curl functions and using passing this array in json format $body = json_encode(['sourceItems' =>[ ['source_code' => $stock['source'], 'sku' => $data['sku'], 'quantity'=>$data['stock'], 'status'=> $product_status] ]]);
– Alam Zaib
10 hours ago
it is working fine for other store but the salable quantity in default stock not updating
– Alam Zaib
9 hours ago
add a comment |
i am executing this with curl functions and using passing this array in json format $body = json_encode(['sourceItems' =>[ ['source_code' => $stock['source'], 'sku' => $data['sku'], 'quantity'=>$data['stock'], 'status'=> $product_status] ]]);
– Alam Zaib
10 hours ago
it is working fine for other store but the salable quantity in default stock not updating
– Alam Zaib
9 hours ago
i am executing this with curl functions and using passing this array in json format $body = json_encode(['sourceItems' =>[ ['source_code' => $stock['source'], 'sku' => $data['sku'], 'quantity'=>$data['stock'], 'status'=> $product_status] ]]);
– Alam Zaib
10 hours ago
i am executing this with curl functions and using passing this array in json format $body = json_encode(['sourceItems' =>[ ['source_code' => $stock['source'], 'sku' => $data['sku'], 'quantity'=>$data['stock'], 'status'=> $product_status] ]]);
– Alam Zaib
10 hours ago
it is working fine for other store but the salable quantity in default stock not updating
– Alam Zaib
9 hours ago
it is working fine for other store but the salable quantity in default stock not updating
– Alam Zaib
9 hours ago
add a comment |
By seeing you query it looks like default might be removed from stores
list somehow, Can you please check store listing API and check all
available stores
<host>/rest/<store_code>/V1/inventory/source-items
But if you haven't configure any stores then pass default
<host>/rest/all/V1/inventory/source-items
For all store you need to pass website_id in post parameters
And to fetch all store data using API
storeStoreRepositoryV1
Group repository interface
http://magento.host/index.php/rest/V1/store/storeGroups
method : GETAuthorization : Bearer <admin token>
This will return website_id, root_category_id, default_store_id, name, code
add a comment |
By seeing you query it looks like default might be removed from stores
list somehow, Can you please check store listing API and check all
available stores
<host>/rest/<store_code>/V1/inventory/source-items
But if you haven't configure any stores then pass default
<host>/rest/all/V1/inventory/source-items
For all store you need to pass website_id in post parameters
And to fetch all store data using API
storeStoreRepositoryV1
Group repository interface
http://magento.host/index.php/rest/V1/store/storeGroups
method : GETAuthorization : Bearer <admin token>
This will return website_id, root_category_id, default_store_id, name, code
add a comment |
By seeing you query it looks like default might be removed from stores
list somehow, Can you please check store listing API and check all
available stores
<host>/rest/<store_code>/V1/inventory/source-items
But if you haven't configure any stores then pass default
<host>/rest/all/V1/inventory/source-items
For all store you need to pass website_id in post parameters
And to fetch all store data using API
storeStoreRepositoryV1
Group repository interface
http://magento.host/index.php/rest/V1/store/storeGroups
method : GETAuthorization : Bearer <admin token>
This will return website_id, root_category_id, default_store_id, name, code
By seeing you query it looks like default might be removed from stores
list somehow, Can you please check store listing API and check all
available stores
<host>/rest/<store_code>/V1/inventory/source-items
But if you haven't configure any stores then pass default
<host>/rest/all/V1/inventory/source-items
For all store you need to pass website_id in post parameters
And to fetch all store data using API
storeStoreRepositoryV1
Group repository interface
http://magento.host/index.php/rest/V1/store/storeGroups
method : GETAuthorization : Bearer <admin token>
This will return website_id, root_category_id, default_store_id, name, code
answered 9 hours ago
AadityaAaditya
4,52621139
4,52621139
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f272270%2fmagento-2-3-rest-api-not-working-for-default-store-rest-v1-inventory-source-it%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
By seeing you query it looks like default might be removed from stores list somehow, Can you please check store listing API and check all available stores.
– Aaditya
9 hours ago