<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>thread Invoice Drafts &amp;amp; Publishing in Payments Troubleshooting</title>
    <link>https://community.squareup.com/t5/Payments-Troubleshooting/Invoice-Drafts-amp-Publishing/m-p/364546#M39140</link>
    <description>&lt;UL&gt;&lt;LI&gt;I was trying to integrate invoice API and followed &lt;A href="https://developer.squareup.com/docs/invoices-api/overview#payment-requests" target="_self"&gt;this&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;the documentation states that 2 steps must be done&lt;UL&gt;&lt;LI&gt;first, create the invoice (which will result in creating a draft invoice, not instantly charged)&lt;/LI&gt;&lt;LI&gt;then publish the invoice whenever you want to charge the customer card&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;so we did that, and it worked for the most part&lt;/LI&gt;&lt;LI&gt;but then we started detecting receiving a lot of `CARD_DECLINED` error when trying to publish some invoices&lt;/LI&gt;&lt;LI&gt;that itself is not the problem, but apparently those invoice we fail to publish; seem to be updated from draft to paid a little while after we get the CARD_DECLINED issue&lt;/LI&gt;&lt;LI&gt;when going back to the documentation; we have noticed that adding `due_date` while creating a draft invoice is required&lt;/LI&gt;&lt;LI&gt;and the documentation says that the invoice will be automatically charged (probably even without calling the publish-invoice API) even the due date is due&lt;/LI&gt;&lt;LI&gt;so the question is; how can we stop invoices being charged if/after we fail to publish them for any reason&lt;/LI&gt;&lt;LI&gt;note: we must have instant charge functionality&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Sun, 21 Sep 2025 06:28:01 GMT</pubDate>
    <dc:creator>mohabamr</dc:creator>
    <dc:date>2025-09-21T06:28:01Z</dc:date>
    <item>
      <title>Invoice Drafts &amp; Publishing</title>
      <link>https://community.squareup.com/t5/Payments-Troubleshooting/Invoice-Drafts-amp-Publishing/m-p/364546#M39140</link>
      <description>&lt;UL&gt;&lt;LI&gt;I was trying to integrate invoice API and followed &lt;A href="https://developer.squareup.com/docs/invoices-api/overview#payment-requests" target="_self"&gt;this&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;the documentation states that 2 steps must be done&lt;UL&gt;&lt;LI&gt;first, create the invoice (which will result in creating a draft invoice, not instantly charged)&lt;/LI&gt;&lt;LI&gt;then publish the invoice whenever you want to charge the customer card&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;so we did that, and it worked for the most part&lt;/LI&gt;&lt;LI&gt;but then we started detecting receiving a lot of `CARD_DECLINED` error when trying to publish some invoices&lt;/LI&gt;&lt;LI&gt;that itself is not the problem, but apparently those invoice we fail to publish; seem to be updated from draft to paid a little while after we get the CARD_DECLINED issue&lt;/LI&gt;&lt;LI&gt;when going back to the documentation; we have noticed that adding `due_date` while creating a draft invoice is required&lt;/LI&gt;&lt;LI&gt;and the documentation says that the invoice will be automatically charged (probably even without calling the publish-invoice API) even the due date is due&lt;/LI&gt;&lt;LI&gt;so the question is; how can we stop invoices being charged if/after we fail to publish them for any reason&lt;/LI&gt;&lt;LI&gt;note: we must have instant charge functionality&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 21 Sep 2025 06:28:01 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Payments-Troubleshooting/Invoice-Drafts-amp-Publishing/m-p/364546#M39140</guid>
      <dc:creator>mohabamr</dc:creator>
      <dc:date>2025-09-21T06:28:01Z</dc:date>
    </item>
  </channel>
</rss>

