Some of customers will not provide us with email but we still want to publish invoices and share links manually or just print and hand over a paper invoice.
Square invoice cannot be published when customer does not have email
Due to documented Requirements and limitations we cannot publish invoice when the customer does not have an email set.
The customer profile must include email_address or phone_number. An email address is required if the invoice is delivered by email or configured for automatic payment.
Trying to do so will result in the error:
[
{
'code': 'BAD_REQUEST',
'detail': 'Payer email is required',
'field': 'invoice.primary_recipient.customer_id',
'category': 'INVALID_REQUEST_ERROR'
}
]
The Invoice.status is read-only and cannot be changed with Update invoice api call.
Yet, we can “Create” invoices that have been created as draft using the API:
Our Merchants do not want the overhead of going to Square, editing and clicking of “Create” to get the invoice published.
How can we replicate the process available in Square Dashboard using the API?