is_default not working in address API



  • 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.



  • 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.



  • ok Thanks


Log in to reply