---
title: "Send Payment Confirmation Emails Batch"
method: POST
path: "/payments/send-confirmation-emails"
---

# Send Payment Confirmation Emails Batch

`POST /payments/send-confirmation-emails`

Send payment confirmation emails to multiple payments in batch using Resend's batch API.

This endpoint efficiently sends payment confirmation emails for multiple payments at once,
respecting Resend's rate limits and batch size constraints (up to 100 emails per batch).

Args:
    payment_ids: List of payment IDs to send confirmation emails for
    user_id: ID of the authenticated user (from auth middleware)
    org_id: ID of the user's organization (from auth middleware)

Returns:
    dict: Detailed results including sent_count, failed_count, skipped_count, and per-payment results
    
Raises:
    HTTPException: 401 if unauthorized, 400 if invalid input, 500 if server error

## Query parameters

- `user_id` string
- `org_id` string

## Request body

- object — Body containing payment_ids array

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/every/apis/every-api.md) · [All operations](https://skmtc.net/every/apis/every-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/every/every-api/versions/f8600f7a4ae3/schema)
