headless commerce admin account

thumbnail
Gennaro Lippiello, modified 3 Years ago. Junior Member Posts: 39 Join Date: 3/9/22 Recent Posts

Hello there, I'm using headless-commerce-admin-account/v1.0 in Liferay 7.4
When I POST to "/accounts/by-externalReferenceCode/{externalReferenceCode}/accountAddresses/" I set the fields defaultBilling and defaultShipping to true, but the created address returned to me has both fields on false. Is this a bug or am I doing something wrong?

This is the json I POST:

{ "city": "Example", "name": "Test_name", "street1": "Test_address", "countryISOCode": "IT", "zip": "80100", "defaultBilling": true, "defaultShipping": true, "type": 2 }

This is my response:

{ "city": "Example", "countryISOCode": "IT", "defaultBilling": false,"defaultShipping": false, "description": "", "externalReferenceCode": "", "id": 42547, "latitude": 0, "longitude": 0, "name": "Test_name", "phoneNumber": "", "regionISOCode": "", "street1": "Test_address", "street2": "", "street3": "", "type": 2, "zip": "80100" }