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

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form