cURL
curl --request GET \
--url https://us.api.flexprice.io/v1/invoices/{id}/emails \
--header 'x-api-key: <api-key>'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.invoices.list_invoice_emails(id="<id>")
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.invoices.listInvoiceEmails("<id>");
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Invoices.ListInvoiceEmails(ctx, "<id>")
if err != nil {
log.Fatal(err)
}
if res.ListEmailLogsResponse != nil {
// handle response
}
}{
"items": [
{
"cc_addresses": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"customer_id": "<string>",
"delivered_at": "2023-11-07T05:31:56Z",
"delivery_status": "queued",
"entity_id": "<string>",
"entity_type": "feature",
"environment_id": "<string>",
"from_address": "<string>",
"id": "<string>",
"idempotency_key": "<string>",
"metadata": {},
"provider": "resend",
"provider_message_id": "<string>",
"reply_to": "<string>",
"sent_at": "2023-11-07T05:31:56Z",
"status": "published",
"status_reason": "<string>",
"subject": "<string>",
"template_key": "invoice_finalized",
"tenant_id": "<string>",
"to_addresses": [
"<string>"
],
"trigger": "auto",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>"
}
],
"pagination": {
"limit": 123,
"offset": 123,
"total": 123
}
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}Invoices
List invoice emails
Use when showing which emails were sent for an invoice and whether each was delivered. Newest first.
GET
/
invoices
/
{id}
/
emails
cURL
curl --request GET \
--url https://us.api.flexprice.io/v1/invoices/{id}/emails \
--header 'x-api-key: <api-key>'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.invoices.list_invoice_emails(id="<id>")
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.invoices.listInvoiceEmails("<id>");
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Invoices.ListInvoiceEmails(ctx, "<id>")
if err != nil {
log.Fatal(err)
}
if res.ListEmailLogsResponse != nil {
// handle response
}
}{
"items": [
{
"cc_addresses": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"customer_id": "<string>",
"delivered_at": "2023-11-07T05:31:56Z",
"delivery_status": "queued",
"entity_id": "<string>",
"entity_type": "feature",
"environment_id": "<string>",
"from_address": "<string>",
"id": "<string>",
"idempotency_key": "<string>",
"metadata": {},
"provider": "resend",
"provider_message_id": "<string>",
"reply_to": "<string>",
"sent_at": "2023-11-07T05:31:56Z",
"status": "published",
"status_reason": "<string>",
"subject": "<string>",
"template_key": "invoice_finalized",
"tenant_id": "<string>",
"to_addresses": [
"<string>"
],
"trigger": "auto",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>"
}
],
"pagination": {
"limit": 123,
"offset": 123,
"total": 123
}
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}
