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

# Receipts

> Returns a PDF listing all billable transactions associated with the user. When `loan_number` is sent, the receipt can cover every borrower on that loan, depending on your contract.

> [!WARNING]
>
> Receipt generation is only available in Production. The receipts endpoint is not supported in Sandbox.

## Example receipt

![Example Argyle billing receipt.](https://mintcdn.com/argyle/QY9l-CtcSx2-TuFM/images/api-ref/receipts/1-receipt.png?fit=max\&auto=format\&n=QY9l-CtcSx2-TuFM\&q=85\&s=804d00bd65e198993550746587ea0943)


## OpenAPI

````yaml post /v2/receipts
openapi: 3.0.0
info:
  title: Receipts API
  version: v2
  description: >
    Returns a PDF listing all billable transactions associated with the user.
    When `loan_number` is sent, the receipt can cover every borrower on that
    loan, depending on your contract.
servers:
  - url: https://api-sandbox.argyle.com
    description: Sandbox
  - url: https://api.argyle.com
    description: Production
security:
  - basicAuth: []
paths:
  /v2/receipts:
    post:
      summary: Generate a receipt
      description: >-
        Returns a PDF listing all billable transactions associated with the
        user. When `loan_number` is sent, the receipt can cover every borrower
        on that loan, depending on your contract.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                user:
                  type: string
                  format: uuid
                  description: ID of the user.
                loan_number:
                  type: string
                  description: >
                    The loan number in the lender's loan origination system. Use
                    the same
                    [`loan.number`](/api-reference/verifications/order-a-verification#body-loan-number)
                    that's on the verification order.


                    - Required for certain contract types; your Argyle team will
                    tell you if this applies. Ignored otherwise.

                    - Leading and trailing spaces are trimmed. A blank value is
                    treated as omitted. Matching is case-sensitive.
              required:
                - user
            example:
              user: 018051aa-f7a9-a0db-2f38-6cfa325e9d69
              loan_number: '12345678'
      responses:
        '200':
          description: ''
          headers:
            Content-Type:
              description: Content type of response payload.
              schema:
                type: string
                example: application/pdf
            Content-Disposition:
              description: >
                Receipt filename in the format `Argyle_receipt_MM-DD-YYYY_<last
                12 characters of the receipt ID>.pdf`. The date is the day the
                receipt is generated in UTC.
              schema:
                type: string
                example: inline; filename=Argyle_receipt_11-06-2026_c1b101b077f1.pdf
            Content-Length:
              description: Size of response payload in bytes.
              schema:
                type: integer
                example: 12345
          content:
            application/pdf:
              schema:
                type: string
                format: binary
              examples:
                default:
                  value: >
                    200 OK

                    Content-Type: application/pdf

                    Content-Disposition: inline;
                    filename=Argyle_receipt_11-06-2026_c1b101b077f1.pdf

                    Content-Length: 12345


                    [PDF binary stream omitted]
        '400':
          description: >
            The request could not be completed. The `detail` field contains an
            error message you can show to the user.


            | When | `detail` |

            | --- | --- |

            | A loan number is required for this user and wasn't sent | Loan
            number is missing. Add the loan number and try again. |

            | The loan number doesn't belong to this user | Loan number
            {loan_number} doesn't match this borrower. Check the loan number and
            try again. |

            | Nothing billable to print | No billable events found for this user
            |
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: >-
                      Error message describing why the receipt could not be
                      generated.
              examples:
                missing_loan_number:
                  summary: Missing loan number
                  value:
                    detail: Loan number is missing. Add the loan number and try again.
                loan_number_mismatch:
                  summary: Loan number does not match borrower
                  value:
                    detail: >-
                      Loan number 12345678 doesn't match this borrower. Check
                      the loan number and try again.
                no_billable_events:
                  summary: No billable events
                  value:
                    detail: No billable events found for this user
      servers:
        - url: https://api.argyle.com
          description: Production
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Username = api_key_id, Password = api_key_secret

````