Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
headless commerce admin account
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" }