How fynd differ between permanent and communication address we need to understand the flow for address

how fynd differ between permanent and communication address we need to understand the flow for address I was checking this endpoint for creating address /application/cart/v1.0/address
with payload → ‘{“is_default_address”:true,“name”:“yash jain",“phone”:“7725878999”,“email”:"[email protected]”,“address”:“201”,“area”:“Shantaram Bhatt Chawl, Station Road, Jay Prakash Rd, Khar, Jawahar Nagar, Khar East”,“area_code”:“400051”,“address_type”:“home”,“geo_location”:{“latitude”:19.0668262,“longitude”:72.8422051}}’

1 Like

Currently, there is no specific logic implemented to distinguish between permanent and communication addresses in our system. The address_type field in the payload can accept any meaningful string that suits your needs. You can use values like “permanent” or “communication” to differentiate between these address types as per your requirements.

Here’s an example payload for creating an address:

{
  "is_default_address": true,
  "name": "Yash Jain",
  "phone": "7725878999",
  "email": "[email protected]",
  "address": "201",
  "area": "Shantaram Bhatt Chawl, Station Road, Jay Prakash Rd, Khar, Jawahar Nagar, Khar East",
  "area_code": "400051",
  "address_type": "permanent",  // You can use "permanent" or "communication" here
  "geo_location": {
    "latitude": 19.0668262,
    "longitude": 72.8422051
  }
}

You will get response like below

{
  id: '669608ea2419928e1155d8a6',
  address_id: 1657456,
  is_default_address: false,
  success: true
}

Feel free to use any sensible string for the address_type to suit your application’s needs.

1 Like