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

# Get a purchase

> Returns the resource only when it belongs to the organization encoded in the tenant API key. Missing and cross-tenant identifiers both return 404.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/purchases/{purchaseId}
openapi: 3.1.0
info:
  title: Nautilus Public API
  version: 1.0.0
  description: >-
    Tenant-scoped public API. Except for /api/v1/openapi.json, requests use a
    Clerk tenant API key as a Bearer token. The key's organizationId is the sole
    tenant scope; organization IDs supplied by callers are never accepted.
    Detail endpoints deliberately return 404 for both missing and cross-tenant
    records. Canonical collections use the standard envelope and endpoint-bound
    cursor pagination. Timestamps are UTC ISO 8601 values and monetary amounts
    ending in Cents are integer cents. Responses use narrow serializers and
    exclude credentials, API keys, provider configuration, access tokens,
    webhook secrets, raw provider payloads, and internal workflow or activity
    data.
servers:
  - url: https://app.nautilus.co
security:
  - tenantApiKey: []
tags:
  - name: Contract
  - name: Cancellations
  - name: Sites
  - name: Products
  - name: Checkout links
  - name: Purchases
  - name: Contact lists
  - name: Contacts
  - name: Marketing
  - name: Forms
  - name: Vouchers
  - name: Links
  - name: Automations
  - name: Surveys
  - name: Cases
  - name: Sonny's POS
  - name: Analytics
  - name: Messaging
  - name: Legacy
    description: Deprecated noncanonical endpoints retained for compatibility.
paths:
  /api/v1/purchases/{purchaseId}:
    get:
      tags:
        - Purchases
      summary: Get a purchase
      description: >-
        Returns the resource only when it belongs to the organization encoded in
        the tenant API key. Missing and cross-tenant identifiers both return
        404.
      operationId: getPurchase
      parameters:
        - name: purchaseId
          in: path
          required: true
          schema:
            type: string
        - name: includeCodes
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: >-
            When true, includes fulfillment or voucher codes. Codes are excluded
            by default because they grant value.
      responses:
        '200':
          description: Tenant-scoped resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Purchase'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    Purchase:
      type: object
      additionalProperties: false
      properties:
        id:
          type: string
          description: >-
            Stable encrypted public identifier. It does not contain the payment
            processor identifier.
        purchasedAt:
          type: string
          format: date-time
          description: UTC ISO 8601 timestamp.
        amountCents:
          anyOf:
            - type: integer
              description: Amount in integer cents.
            - type: 'null'
        refunded:
          type: boolean
        purchaseKind:
          type: string
          enum:
            - membership
            - single
            - gift
        itemName:
          anyOf:
            - type: string
            - type: 'null'
        email:
          anyOf:
            - type: string
            - type: 'null'
        phone:
          anyOf:
            - type: string
            - type: 'null'
        licensePlate:
          anyOf:
            - type: string
            - type: 'null'
        giftRecipientName:
          anyOf:
            - type: string
            - type: 'null'
        giftRecipientPhone:
          anyOf:
            - type: string
            - type: 'null'
        checkoutLinkId:
          anyOf:
            - type: string
            - type: 'null'
        referralCode:
          anyOf:
            - type: string
            - type: 'null'
        redeemLocation:
          anyOf:
            - type: string
            - type: 'null'
        termsAcceptedAt:
          anyOf:
            - type: string
              format: date-time
              description: UTC ISO 8601 timestamp.
            - type: 'null'
        utmSource:
          anyOf:
            - type: string
            - type: 'null'
        utmMedium:
          anyOf:
            - type: string
            - type: 'null'
        utmCampaign:
          anyOf:
            - type: string
            - type: 'null'
        utmTerm:
          anyOf:
            - type: string
            - type: 'null'
        utmContent:
          anyOf:
            - type: string
            - type: 'null'
        gclid:
          anyOf:
            - type: string
            - type: 'null'
        gbraid:
          anyOf:
            - type: string
            - type: 'null'
        wbraid:
          anyOf:
            - type: string
            - type: 'null'
        fbclid:
          anyOf:
            - type: string
            - type: 'null'
        referrer:
          anyOf:
            - type: string
            - type: 'null'
        landingUrl:
          anyOf:
            - type: string
            - type: 'null'
        fulfillmentCodes:
          type: array
          items:
            type: string
      required:
        - id
        - purchasedAt
        - amountCents
        - refunded
        - purchaseKind
        - itemName
        - email
        - phone
        - licensePlate
        - giftRecipientName
        - giftRecipientPhone
        - checkoutLinkId
        - referralCode
        - redeemLocation
        - termsAcceptedAt
        - utmSource
        - utmMedium
        - utmCampaign
        - utmTerm
        - utmContent
        - gclid
        - gbraid
        - wbraid
        - fbclid
        - referrer
        - landingUrl
      description: fulfillmentCodes is omitted unless includeCodes=true.
    Error:
      type: object
      additionalProperties: false
      properties:
        error:
          type: string
      required:
        - error
  responses:
    BadRequest:
      description: >-
        Malformed parameters, unsupported provider, or unavailable resource for
        this organization.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, invalid, legacy, or non-tenant Bearer credential.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: >-
        The resource does not exist, is unavailable, or belongs to another
        organization.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalServerError:
      description: Internal server error. No internal exception data is exposed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    tenantApiKey:
      type: http
      scheme: bearer
      bearerFormat: Clerk tenant API key
      description: >-
        Clerk tenant API key. The organizationId encoded by the key is the exact
        and only tenant scope.

````