Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Address field empty on save-address request

    General Discussion
    2
    2
    159
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Peppek1993 last edited by

      Hey, when calling api/v1/save-address with example body

      {
        "billing": {
            "address": [
              "Some street 123"
            ],
            "save_as_address": false,
            "use_for_shipping": true,
            "first_name": "Adam",
            "last_name": "Adam",
            "email": "adam@adam.com",
            "company_name": "xxx",
            "city": "Madrid",
            "state": "Illinois",
            "country": "PL",
            "postcode": 12345,
            "phone": 123454423
          },
        "shipping":{
            "address": [
              "12341234"
            ],
            "save_as_address": false,
            "first_name": "adas",
            "last_name": "asdf",
            "email": "asdasd@gmail.com",
            "company_name": "1234",
            "city": "test",
            "state": "test",
            "country": "PL",
            "postcode": 55555,
            "phone": 55555555
          }
      }
      

      The request goes through and everything seems fine, cart is being updated and I can see billing and shipping addresses in cart

      But one thing is missing

      in cart.billing_address and cart.shipping_address the address array is empty.

      adeb4212-fe31-4811-b96f-a8e99cf4875f-image.png
      Request payload

      Response

      2e2f5bb2-9972-4e66-aea6-75e7e6ebf93f-image.png

      Also in response, the rates array is empty aswell and i'm not getting a list of shipment methods like on the original api.

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @Peppek1993

        Kindly let us know are you facing these issues on the master branch if yes, then kindly raise your issue on GitHub.

        https://github.com/bagisto/bagisto/issues

        Thanks & Regards

        1 Reply Last reply Reply Quote 0
        • First post
          Last post