Estimate shipping methods by address id Error REST API : Magento 2 The Next CEO of Stack OverflowRest Api service for shipping information Post -Getting error in Rest Api guest-cart. [POST] V1/guest-carts/cart-id/itemsInternal Server Error (500) estimate-shipping-methodsCheckout experience via REST API Magento2 - how to setup quote_currencyGET V1/guest-carts/cartId/items not working?Magento 2: How to get JSON API Variable in Modelwhat is entity when create an order using REST apiCan not add product to cart rest APIAdd No-Required params to custom REST API
Bold, vivid family
Inappropriate reference requests from Journal reviewers
Between two walls
If the heap is initialized for security, then why is the stack uninitialized?
What was the first Unix version to run on a microcomputer?
Sending manuscript to multiple publishers
Is it possible to search for a directory/file combination?
How to transpose the 1st and -1th levels of arbitrarily nested array?
A "random" question: usage of "random" as adjective in Spanish
Why do airplanes bank sharply to the right after air-to-air refueling?
Elegant way to replace substring in a regex with optional groups in Python?
Giving the same color to different shapefiles in QGIS
What is the result of assigning to std::vector<T>::begin()?
Do I need to enable Dev Hub in my PROD Org?
Why does the UK parliament need a vote on the political declaration?
Contours of a clandestine nature
Why do remote companies require working in the US?
How to make a variable always equal to the result of some calculations?
multiple labels for a single equation
At which OSI layer a user-generated data resides?
Is it ever safe to open a suspicious html file (e.g. email attachment)?
Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?
Would a galaxy be visible from outside, but nearby?
Rotate a column
Estimate shipping methods by address id Error REST API : Magento 2
The Next CEO of Stack OverflowRest Api service for shipping information Post -Getting error in Rest Api guest-cart. [POST] V1/guest-carts/cart-id/itemsInternal Server Error (500) estimate-shipping-methodsCheckout experience via REST API Magento2 - how to setup quote_currencyGET V1/guest-carts/cartId/items not working?Magento 2: How to get JSON API Variable in Modelwhat is entity when create an order using REST apiCan not add product to cart rest APIAdd No-Required params to custom REST API
I am trying to call this magento 2 built in API :
POST http://domain.com/rest/V1/carts/mine/estimate-shipping-methods-by-address-id
In Body :
"addressId": 194
But I got this error:
"message": "No such entity with %fieldName = %fieldValue",
"parameters":
"fieldName": "addressId",
"fieldValue": 194
Can any body help ?
magento2 api rest
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am trying to call this magento 2 built in API :
POST http://domain.com/rest/V1/carts/mine/estimate-shipping-methods-by-address-id
In Body :
"addressId": 194
But I got this error:
"message": "No such entity with %fieldName = %fieldValue",
"parameters":
"fieldName": "addressId",
"fieldValue": 194
Can any body help ?
magento2 api rest
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am trying to call this magento 2 built in API :
POST http://domain.com/rest/V1/carts/mine/estimate-shipping-methods-by-address-id
In Body :
"addressId": 194
But I got this error:
"message": "No such entity with %fieldName = %fieldValue",
"parameters":
"fieldName": "addressId",
"fieldValue": 194
Can any body help ?
magento2 api rest
I am trying to call this magento 2 built in API :
POST http://domain.com/rest/V1/carts/mine/estimate-shipping-methods-by-address-id
In Body :
"addressId": 194
But I got this error:
"message": "No such entity with %fieldName = %fieldValue",
"parameters":
"fieldName": "addressId",
"fieldValue": 194
Can any body help ?
magento2 api rest
magento2 api rest
asked Jan 25 '18 at 8:42
Jsparo30Jsparo30
6591626
6591626
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The expected format for the body is slightly different:
"address":
"id": 0,
"region": "string",
"region_id": 0,
"region_code": "string",
"country_id": "string",
"street": [
"string"
],
"company": "string",
"telephone": "string",
"fax": "string",
"postcode": "string",
"city": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"vat_id": "string",
"customer_id": 0,
"email": "string",
"same_as_billing": 0,
"customer_address_id": 0,
"save_in_address_book": 0,
"extension_attributes":
"gift_registry_id": 0
,
"custom_attributes": [
"attribute_code": "string",
"value": "string"
]
So in your case I would try:
"address":
"id": 194
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%2f210951%2festimate-shipping-methods-by-address-id-error-rest-api-magento-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The expected format for the body is slightly different:
"address":
"id": 0,
"region": "string",
"region_id": 0,
"region_code": "string",
"country_id": "string",
"street": [
"string"
],
"company": "string",
"telephone": "string",
"fax": "string",
"postcode": "string",
"city": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"vat_id": "string",
"customer_id": 0,
"email": "string",
"same_as_billing": 0,
"customer_address_id": 0,
"save_in_address_book": 0,
"extension_attributes":
"gift_registry_id": 0
,
"custom_attributes": [
"attribute_code": "string",
"value": "string"
]
So in your case I would try:
"address":
"id": 194
add a comment |
The expected format for the body is slightly different:
"address":
"id": 0,
"region": "string",
"region_id": 0,
"region_code": "string",
"country_id": "string",
"street": [
"string"
],
"company": "string",
"telephone": "string",
"fax": "string",
"postcode": "string",
"city": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"vat_id": "string",
"customer_id": 0,
"email": "string",
"same_as_billing": 0,
"customer_address_id": 0,
"save_in_address_book": 0,
"extension_attributes":
"gift_registry_id": 0
,
"custom_attributes": [
"attribute_code": "string",
"value": "string"
]
So in your case I would try:
"address":
"id": 194
add a comment |
The expected format for the body is slightly different:
"address":
"id": 0,
"region": "string",
"region_id": 0,
"region_code": "string",
"country_id": "string",
"street": [
"string"
],
"company": "string",
"telephone": "string",
"fax": "string",
"postcode": "string",
"city": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"vat_id": "string",
"customer_id": 0,
"email": "string",
"same_as_billing": 0,
"customer_address_id": 0,
"save_in_address_book": 0,
"extension_attributes":
"gift_registry_id": 0
,
"custom_attributes": [
"attribute_code": "string",
"value": "string"
]
So in your case I would try:
"address":
"id": 194
The expected format for the body is slightly different:
"address":
"id": 0,
"region": "string",
"region_id": 0,
"region_code": "string",
"country_id": "string",
"street": [
"string"
],
"company": "string",
"telephone": "string",
"fax": "string",
"postcode": "string",
"city": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"vat_id": "string",
"customer_id": 0,
"email": "string",
"same_as_billing": 0,
"customer_address_id": 0,
"save_in_address_book": 0,
"extension_attributes":
"gift_registry_id": 0
,
"custom_attributes": [
"attribute_code": "string",
"value": "string"
]
So in your case I would try:
"address":
"id": 194
answered Feb 21 '18 at 9:41
AlexanderAlexander
1
1
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%2f210951%2festimate-shipping-methods-by-address-id-error-rest-api-magento-2%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