Sending square's receipt via text message

If I want to use Square on my web application to send receipt via text message, is there any API can support this?

Hi @v-purple welcome to the forums!

Unfortunately we do not currently have an API that would send out texts for you. You could definitely retrieve the receipt via Square’s APIs (notably in the Payments API), but you would need to set up the texting part yourself.

I’m sorry, I don’t get it. What do you mean by setting up the texting part yourself?

Square does not send out receipts via the API, so I was meaning if you do want this to happen, you can, but you would need to build out the functionality yourself. You could set up a texting service that sends the receipt_url (from the Payments API) to a customer, for instance. But the texting service would need to be built out by you; all Square provides is the receipt_url.

You can use a service like Twilio to do this along with a payment.updated webhook. If you need further assistance let me know.