Mark Address as Default
HTTP Request
POST https://zylkerfashionstore.zohostore.com/portaluser/address/{address_id}/default
Request Parameters
Parameter | Description |
address_id | address_id in the mapped shipping address detail of the user. |
Request Example
Copiedcurl -i -X POST \
-H "Cookie:_iamadt_client_portalId= *****;_iambdt_client_portalId= *****;" \
-d \
'' \
'https://zylkerfashionstore.zohostore.com/portaluser/address/40749000000419008/default'
Success Response
Copied{
"status_code": "0",
"status_message": "success",
"api_kind": "kind#make_address_default",
"payload": {
"contacts_zos_response": {
"code": 0,
"message": "Address has been marked as default shipping address."
}
}
}
Failure Response
Copied{
"status_code": "1",
"status_message": "failure",
"api_kind": "kind#make_address_default",
"error": {
"code": 37002,
"message": "Portal disabled"
},
"developer_message": "Portal disabled"
}
Use this API to mark an address book as default for an user.