> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quentli.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send payment receipt

> Sends a payment receipt through the requested channels.



## OpenAPI

````yaml /openapi.yaml post /v1/payments/{id}/receipt
openapi: 3.0.3
info:
  title: Quentli REST API
  version: 1.0.0
  description: OpenAPI spec for Quentli REST endpoints.
servers:
  - url: https://api.quentli.com
    description: Production API
  - url: https://api.staging.quentli.com
    description: Staging API for production-like validation
  - url: https://api.demo.quentli.com
    description: Demo API hostname served by staging
security:
  - organizationApiKey: []
tags:
  - name: Auth
  - name: Billing
  - name: Catalog
  - name: Customers
  - name: Invoices
  - name: Payment Methods
  - name: Payment Sessions
  - name: Payments
  - name: Subscriptions
  - name: Tax Invoices
  - name: Webhooks
paths:
  /v1/payments/{id}/receipt:
    post:
      tags:
        - Payments
      summary: Send payment receipt
      description: Sends a payment receipt through the requested channels.
      operationId: payments_send_receipt
      parameters:
        - schema:
            type: string
            description: Identifier of the payment.
          required: true
          description: Identifier of the payment.
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendPaymentReceiptArgs'
      responses:
        '200':
          description: Payment receipt sent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendPaymentReceiptPayload'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '403':
          description: Permission denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '404':
          description: Payment not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
components:
  schemas:
    SendPaymentReceiptArgs:
      type: object
      properties:
        input:
          type: object
          properties:
            email:
              type: string
              format: email
              description: Email address to send the receipt to.
            channels:
              type: array
              items:
                type: string
                enum:
                  - EMAIL
                  - SMS
                  - WHATSAPP
              description: Channels used to send the receipt.
          required:
            - channels
          additionalProperties: false
      required:
        - input
      additionalProperties: false
      description: >-
        Request body for sending a payment receipt (payment id is provided in
        the URL path).
    SendPaymentReceiptPayload:
      type: object
      properties:
        paymentReceipt:
          $ref: '#/components/schemas/PaymentReceipt'
      required:
        - paymentReceipt
      description: Response after sending a payment receipt.
    UserError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
          required:
            - message
      required:
        - error
      additionalProperties: false
      description: Standard user-facing error response envelope.
    PaymentReceipt:
      type: object
      nullable: true
      properties:
        id:
          type: string
          description: Unique identifier of the payment receipt.
        createdAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
          description: When the receipt record was created.
        updatedAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
          description: When the receipt record was last updated.
        paymentId:
          type: string
          description: Payment associated with this receipt.
          example: p_1234567890abcdefghij
        messageId:
          type: string
          description: Outbound message associated with this receipt.
      required:
        - id
        - createdAt
        - updatedAt
        - paymentId
        - messageId
      description: Receipt message created for a payment.
  securitySchemes:
    organizationApiKey:
      type: http
      scheme: bearer
      description: 'Organization API key using `Authorization: Bearer sk_...`.'

````