<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>headless commerce admin account</title>
  <link rel="self" href="https://liferay.dev/ca/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121432265" />
  <subtitle>headless commerce admin account</subtitle>
  <id>https://liferay.dev/ca/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121432265</id>
  <updated>2026-05-07T06:49:29Z</updated>
  <dc:date>2026-05-07T06:49:29Z</dc:date>
  <entry>
    <title>headless commerce admin account</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121432264" />
    <author>
      <name>Gennaro Lippiello</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121432264</id>
    <updated>2022-05-30T14:41:28Z</updated>
    <published>2022-05-30T14:41:27Z</published>
    <summary type="html">&lt;p&gt;Hello there, I'm using headless-commerce-admin-account/v1.0 in
  Liferay 7.4&lt;br /&gt; When I POST to
  &amp;quot;/accounts/by-externalReferenceCode/{externalReferenceCode}/accountAddresses/&amp;quot;
  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?&lt;/p&gt;
&lt;p&gt;This is the json I POST:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;{ &amp;quot;city&amp;quot;: &amp;quot;Example&amp;quot;, &amp;quot;name&amp;quot;: &amp;quot;Test_name&amp;quot;, &amp;quot;street1&amp;quot;: &amp;quot;Test_address&amp;quot;, &amp;quot;countryISOCode&amp;quot;: &amp;quot;IT&amp;quot;, &amp;quot;zip&amp;quot;: &amp;quot;80100&amp;quot;, &amp;quot;defaultBilling&amp;quot;: true, &amp;quot;defaultShipping&amp;quot;: true, &amp;quot;type&amp;quot;: 2 }&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is my response:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;{ &amp;quot;city&amp;quot;: &amp;quot;Example&amp;quot;, &amp;quot;countryISOCode&amp;quot;: &amp;quot;IT&amp;quot;, &amp;quot;defaultBilling&amp;quot;: false,&amp;quot;defaultShipping&amp;quot;: false, &amp;quot;description&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;externalReferenceCode&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;id&amp;quot;: 42547, &amp;quot;latitude&amp;quot;: 0, &amp;quot;longitude&amp;quot;: 0, &amp;quot;name&amp;quot;: &amp;quot;Test_name&amp;quot;, &amp;quot;phoneNumber&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;regionISOCode&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;street1&amp;quot;: &amp;quot;Test_address&amp;quot;, &amp;quot;street2&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;street3&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;type&amp;quot;: 2, &amp;quot;zip&amp;quot;: &amp;quot;80100&amp;quot; }&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Gennaro Lippiello</dc:creator>
    <dc:date>2022-05-30T14:41:27Z</dc:date>
  </entry>
</feed>
