Invoice Status - how to mark an invoice as sent?

Hi

I have got a code that create an invoice. However, at the moment all the invoice is set to draft. Is there a way to programmatically set the status of an invoice from draft to live and just leave it as draft on the development environment.

Thanks

Hi @sampzz

You can use the Invoice_Send endpoint and set both SendByEmail and SendBySnailMail to false. This will then do the same as selecting “Flag invoice as sent” would in the UI.

For example:

    "Body": {
      "SendItem": {
        "InvoiceID": "12345",
        "SendByEmail": "false",
        "SendBySnailMail": "false"
      }
   }

There’s more info on this here:
https://api.quickfile.co.uk/d/v1_2/Invoice_Send

Hi
Thank you, i try that now.

1 Like

Hi

i am guessing the send by mail sends it to the user email. However what is the “SendBySnailMail” the documentation doesnt really explain it?

“Snail mail” is another word for post. We’ll arrange for the invoice to be printed, put into an envelope, and sent to the address on the invoice itself. There are certain requirements for this, and a small fee for it too.

We have an article on the basics of this here: Snail mail credit

it is working now thanks

1 Like