x

Create and invoice using API

Often times, I see failed orders from my website. Whether it is a mismatch between the billing/shipping address, bank declined or some other reason, the order fails and the sale is lost.

 

I do get an email notification about this "Failed Order". What I would like to do is to use this notification as a trigger for programmatically (using PHP preferably) create an invoice and email that invoice to the customer.

 

This will help in completing the order. The customer can simply pay the invoice on Square's website without much inconvenience. 

 

Is there an API to do this?

666 Views
Message 1 of 2
Report
1 REPLY 1
Square Community Moderator

Hi @amitramani

 

I reached out to our API team and they informed me that this is currently a feature request and not something that's available at the moment. 

 

However, they took a look at your use case specifically, and mentioned that a few of our Invoicing & Services partnership integrations might work for what you're trying to do. 
 

Check them out here: 

Invoicing & Services

641 Views
Message 2 of 2
Report