Magento 2.1 : How can I save a shipping address using the REST V1 APIMagento2: How to get shipping address for order in REST API?Set Shipping Address via Magento 2 REST APIMagento 2 REST API paypal paymentMagento 2 : Can the REST API return plain text?Magento 2 REST API Update Single Customer AddressREST API and setting the quotes Billing & Shipping addressesCan i get all customers, along with their address information, using the REST api?Magento 2 - validate shipping address before moving to payment page?Do I need to add shipping address every time whenever I place a new order in Magento 2 REST API?how to make billing address same as shipping address magento2

Earliest evidence of objects intended for future archaeologists?

Repurpose telephone line to ethernet

Is there any road between the CA State Route 120 and Sherman Pass Road (Forest Route 22S0) that crosses Yosemite/Serria/Sequoia National Park/Forest?

Why does my air conditioner still run, even when it is cooler outside than in?

Does C++20 mandate source code being stored in files?

Can I submit a paper under an alias so as to avoid trouble in my country?

Starships without computers?

Why don't sharp and flat root note chords seem to be present in much guitar music?

Have ejective consonants ever arisen on their own?

Are there reliable, formulaic ways to form chords on the guitar?

Use of vor in this sentence

Can others monetize my project with GPLv3?

Unbiased estimator of exponential of measure of a set?

Why would the President need briefings on UFOs?

Changing a TGV booking

Is "stainless" a bulk or a surface property of stainless steel?

Why do some academic journals requires a separate "summary" paragraph in addition to an abstract?

What is the latest version of SQL Server native client that is compatible with Sql Server 2008 r2

Vacuum collapse -- why do strong metals implode but glass doesn't?

How did Apollo 15's depressurization work?

Is it appropriate for a business to ask me for my credit report?

E: Sub-process /usr/bin/dpkg returned an error code (1) - but how do I find the meaningful error messages in APT's output?

Is a butterfly one or two animals?

Infinite loop in CURSOR



Magento 2.1 : How can I save a shipping address using the REST V1 API


Magento2: How to get shipping address for order in REST API?Set Shipping Address via Magento 2 REST APIMagento 2 REST API paypal paymentMagento 2 : Can the REST API return plain text?Magento 2 REST API Update Single Customer AddressREST API and setting the quotes Billing & Shipping addressesCan i get all customers, along with their address information, using the REST api?Magento 2 - validate shipping address before moving to payment page?Do I need to add shipping address every time whenever I place a new order in Magento 2 REST API?how to make billing address same as shipping address magento2






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I'm trying to save just the shipping address using the REST V1 API of Magento 2. I know there is an endpoint to save the billing-address, but there seems to be lack of a way to save the shipping address.



There is a shipping-information endpoint, but this requires you to already set your shipping method.



Does anyone know how I can do this?










share|improve this question
























  • Did you ever find a solution to this? In Magento 2.2 I can use billing-address endpoint to set the Billing and Shipping address to the same thing, but can't work out how to set a different shipping address without affecting the billing address.

    – Paul Blundell
    Dec 7 '17 at 10:36

















2















I'm trying to save just the shipping address using the REST V1 API of Magento 2. I know there is an endpoint to save the billing-address, but there seems to be lack of a way to save the shipping address.



There is a shipping-information endpoint, but this requires you to already set your shipping method.



Does anyone know how I can do this?










share|improve this question
























  • Did you ever find a solution to this? In Magento 2.2 I can use billing-address endpoint to set the Billing and Shipping address to the same thing, but can't work out how to set a different shipping address without affecting the billing address.

    – Paul Blundell
    Dec 7 '17 at 10:36













2












2








2








I'm trying to save just the shipping address using the REST V1 API of Magento 2. I know there is an endpoint to save the billing-address, but there seems to be lack of a way to save the shipping address.



There is a shipping-information endpoint, but this requires you to already set your shipping method.



Does anyone know how I can do this?










share|improve this question














I'm trying to save just the shipping address using the REST V1 API of Magento 2. I know there is an endpoint to save the billing-address, but there seems to be lack of a way to save the shipping address.



There is a shipping-information endpoint, but this requires you to already set your shipping method.



Does anyone know how I can do this?







magento2 checkout api magento-2.1 rest






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 13 '16 at 14:12









Giel BerkersGiel Berkers

7,5293 gold badges45 silver badges88 bronze badges




7,5293 gold badges45 silver badges88 bronze badges















  • Did you ever find a solution to this? In Magento 2.2 I can use billing-address endpoint to set the Billing and Shipping address to the same thing, but can't work out how to set a different shipping address without affecting the billing address.

    – Paul Blundell
    Dec 7 '17 at 10:36

















  • Did you ever find a solution to this? In Magento 2.2 I can use billing-address endpoint to set the Billing and Shipping address to the same thing, but can't work out how to set a different shipping address without affecting the billing address.

    – Paul Blundell
    Dec 7 '17 at 10:36
















Did you ever find a solution to this? In Magento 2.2 I can use billing-address endpoint to set the Billing and Shipping address to the same thing, but can't work out how to set a different shipping address without affecting the billing address.

– Paul Blundell
Dec 7 '17 at 10:36





Did you ever find a solution to this? In Magento 2.2 I can use billing-address endpoint to set the Billing and Shipping address to the same thing, but can't work out how to set a different shipping address without affecting the billing address.

– Paul Blundell
Dec 7 '17 at 10:36










1 Answer
1






active

oldest

votes


















0














For now, I guess that there is no endpoint to save shipping address in Magento 2.x



But I am using this for saving shipping address:
PUT /V1/customers/me/ with 2 fields below in body json:



"default_shipping": true,
"default_billing": true





share|improve this answer



























    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
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f136108%2fmagento-2-1-how-can-i-save-a-shipping-address-using-the-rest-v1-api%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









    0














    For now, I guess that there is no endpoint to save shipping address in Magento 2.x



    But I am using this for saving shipping address:
    PUT /V1/customers/me/ with 2 fields below in body json:



    "default_shipping": true,
    "default_billing": true





    share|improve this answer





























      0














      For now, I guess that there is no endpoint to save shipping address in Magento 2.x



      But I am using this for saving shipping address:
      PUT /V1/customers/me/ with 2 fields below in body json:



      "default_shipping": true,
      "default_billing": true





      share|improve this answer



























        0












        0








        0







        For now, I guess that there is no endpoint to save shipping address in Magento 2.x



        But I am using this for saving shipping address:
        PUT /V1/customers/me/ with 2 fields below in body json:



        "default_shipping": true,
        "default_billing": true





        share|improve this answer













        For now, I guess that there is no endpoint to save shipping address in Magento 2.x



        But I am using this for saving shipping address:
        PUT /V1/customers/me/ with 2 fields below in body json:



        "default_shipping": true,
        "default_billing": true






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 19 '16 at 3:55









        David NguyenDavid Nguyen

        1819 bronze badges




        1819 bronze badges






























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f136108%2fmagento-2-1-how-can-i-save-a-shipping-address-using-the-rest-v1-api%23new-answer', 'question_page');

            );

            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







            Popular posts from this blog

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?