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

# Retrieve payment receipt



## OpenAPI

````yaml GET /payment-receipts/{id}/
openapi: 3.0.3
info:
  title: Piriod API
  version: 1.0.0
  description: >
    Piriod API for billing, payments, procurement and collections.


    All requests require:

    - `Authorization: Token <api_token>` header.

    - `x-simple-workspace: <workspace_id>` header (the account/workspace
    identifier).

    - Optionally `x-piriod-test-mode: true` to operate against test-mode data.


    See the Documentation tab for getting started, integration flows,
    authentication,

    error handling and pagination/filtering guides.
servers:
  - url: https://api.piriod.com
    description: Production
security:
  - TokenAuth: []
paths:
  /payment-receipts/{id}/:
    parameters:
      - $ref: '#/components/parameters/IdPath'
      - $ref: '#/components/parameters/WorkspaceHeader'
      - $ref: '#/components/parameters/TestModeHeader'
    get:
      tags:
        - Billing
      summary: Retrieve payment receipt
      responses:
        '200':
          description: The payment receipt.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentReceipt'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    IdPath:
      name: id
      in: path
      required: true
      schema:
        type: string
      description: Resource identifier.
    WorkspaceHeader:
      name: x-simple-workspace
      in: header
      required: true
      schema:
        type: string
      description: Workspace (account) identifier. Required for every request.
      example: acc_01H8XYZ123ABC
    TestModeHeader:
      name: x-piriod-test-mode
      in: header
      required: false
      schema:
        type: boolean
        default: false
      description: Whether to operate against test-mode data. Defaults to `false`.
  schemas:
    PaymentReceipt:
      type: object
      description: |
        A fiscal payment receipt (e.g. Mexican REP / "complemento de pago"). It
        groups one or more payment sources that completed payment of an invoice.
      properties:
        id:
          type: integer
          readOnly: true
        sources:
          type: array
          description: |
            IDs of payment sources covered by this receipt. All sources must
            belong to invoices for the same customer and document type, and
            cannot already have a payment receipt.
          items:
            type: string
        document:
          type: string
          enum:
            - MX22
          readOnly: true
          nullable: true
          description: Fiscal document type (set automatically by the biller).
        number:
          type: integer
          readOnly: true
        date:
          type: string
          format: date
          nullable: true
        custom_change:
          type: number
          nullable: true
          minimum: 1
          description: Custom currency conversion factor.
        metadata:
          type: object
        tax_settings:
          type: object
          description: Country-specific tax-agency settings (validated at create/update).
        status:
          type: string
          enum:
            - draft
            - finalized
          readOnly: true
        biller_status:
          type: string
          readOnly: true
        tax_agency:
          type: object
          readOnly: true
        local_file:
          type: string
          format: uri
          readOnly: true
          nullable: true
        created:
          type: string
          format: date-time
          readOnly: true
        updated:
          type: string
          format: date-time
          readOnly: true
      required:
        - sources
    Error:
      type: object
      properties:
        detail:
          type: string
          description: Human-readable error message.
      example:
        detail: Authentication credentials were not provided.
  responses:
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: |
        Use header `Authorization: Token <api_token>`.
        API tokens are obtained from the Piriod dashboard.

````