curl --location --request POST 'https://api.stateset.com/v1/invoices/inv_0901f083-aa1c-43c5-af5c-0a9d2fc64e30/send' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data-raw '{
"cc": ["[email protected]"],
"message": "Please find attached invoice for January services. Let me know if you have any questions."
}'
{
"id": "inv_0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "invoice",
"status": "sent",
"sent_at": "2024-01-20T12:00:00Z",
"email_details": {
"sent_to": ["[email protected]"],
"cc": ["[email protected]"],
"subject": "Invoice INV-2024-0001 from Stateset",
"message": "Please find attached invoice for January services. Let me know if you have any questions.",
"attachments": ["invoice_INV-2024-0001.pdf"]
},
"sent_count": 1,
"last_sent_at": "2024-01-20T12:00:00Z",
"next_reminder_date": "2024-01-27T12:00:00Z"
}
Send an invoice to the customer via email
curl --location --request POST 'https://api.stateset.com/v1/invoices/inv_0901f083-aa1c-43c5-af5c-0a9d2fc64e30/send' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data-raw '{
"cc": ["[email protected]"],
"message": "Please find attached invoice for January services. Let me know if you have any questions."
}'
{
"id": "inv_0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "invoice",
"status": "sent",
"sent_at": "2024-01-20T12:00:00Z",
"email_details": {
"sent_to": ["[email protected]"],
"cc": ["[email protected]"],
"subject": "Invoice INV-2024-0001 from Stateset",
"message": "Please find attached invoice for January services. Let me know if you have any questions.",
"attachments": ["invoice_INV-2024-0001.pdf"]
},
"sent_count": 1,
"last_sent_at": "2024-01-20T12:00:00Z",
"next_reminder_date": "2024-01-27T12:00:00Z"
}
invoices:write permissions.
Authorization: Bearer YOUR_API_KEY
curl --location --request POST 'https://api.stateset.com/v1/invoices/inv_0901f083-aa1c-43c5-af5c-0a9d2fc64e30/send' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data-raw '{
"cc": ["[email protected]"],
"message": "Please find attached invoice for January services. Let me know if you have any questions."
}'
{
"id": "inv_0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "invoice",
"status": "sent",
"sent_at": "2024-01-20T12:00:00Z",
"email_details": {
"sent_to": ["[email protected]"],
"cc": ["[email protected]"],
"subject": "Invoice INV-2024-0001 from Stateset",
"message": "Please find attached invoice for January services. Let me know if you have any questions.",
"attachments": ["invoice_INV-2024-0001.pdf"]
},
"sent_count": 1,
"last_sent_at": "2024-01-20T12:00:00Z",
"next_reminder_date": "2024-01-27T12:00:00Z"
}