Bagisto Forum

    Bagisto

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

    is_default not working in address API

    General Discussion
    2
    3
    111
    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.
    • D
      discretemicros last edited by

      Hi,

      I am trying to make address as default using "is_default" option generated from response, but with no luck.

      https://localhost:8000/api/addresses/6?token=djigdfiogfijg
      Request Body:

      {
      "address1": [
      "Clock Tower"
      ],
      "first_name": "Firstname",
      "last_name": "LN",
      "city": "Dehradun",
      "country": "IN",
      "country_name": "India",
      "phone": "0123456798",
      "postcode": "248001",
      "state": "UT",
      "is_default": "True"
      }

      Response:

      {
      "message": "Your address has been updated successfully.",
      "data": {
      "id": 6,
      "first_name": "Firstname",
      "last_name": "LN",
      "company_name": null,
      "vat_id": null,
      "address1": [
      "New Address"
      ],
      "country": "IN",
      "country_name": "India",
      "state": "UT",
      "city": "Dehradun",
      "postcode": "248001",
      "phone": "0123456798",
      "is_default": false,
      "created_at": "2023-04-05T14:50:54.000000Z",
      "updated_at": "2023-04-05T15:20:39.000000Z"
      }
      }

      With every value in request the response for is_default comes false, please suggest if i am doing something wrong.

      1 Reply Last reply Reply Quote 0
      • sanjay-webkul
        sanjay-webkul last edited by

        Hi there.
        For address API. the issue is raised in our GitHub repository. and we will update you soon. once the issue will be fix.

        1 Reply Last reply Reply Quote 0
        • D
          discretemicros last edited by

          ok Thanks

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