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

# Get package purchase

> Get a purchase for a package, including payment details.

<Warning>This endpoint is part of API v1, which is deprecated. Please use the [v2 API](/getting-started/introduction) instead.</Warning>

<Info>Replace `{your-subdomain}` with your workspace’s subdomain. <br /> Learn how to find your subdomain in [Workspace subdomain](/getting-started/workspace-subdomain).</Info>


## OpenAPI

````yaml bundled-v1/packages.yaml GET /packages/{package_id}/purchases/{purchase_id}
openapi: 3.0.3
info:
  title: NeetoCal Packages APIs
  version: 1.0.0
servers:
  - description: NeetoCal APIs
    url: https://{your-subdomain}.neetocal.com/api/external/v1
    variables:
      your-subdomain:
        default: spinkart
        description: >-
          Replace **spinkart** with your [workspace's
          subdomain](/getting-started/workspace-subdomain).
security: []
tags:
  - name: Packages
    description: APIs to manage packages of the workspace.
paths:
  /packages/{package_id}/purchases/{purchase_id}:
    get:
      tags:
        - Packages
      summary: Get package details purchase
      description: Get a purchase for a package, including payment details.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - in: path
          name: package_id
          description: >-
            Id of the package. You can get `package_id` by listing all packages
            using our [List packages](/api-reference/packages/list) API. Here
            you will see id for each package.
          required: true
          schema:
            type: string
        - in: path
          name: purchase_id
          description: >-
            Id of the purchase to retrieve. You can get `purchase_id` by listing
            purchases for a package using our [List package
            purchases](/api-reference/packages/list-purchases) API. Here you
            will see id for each purchase.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK - Request succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/purchase_show_response'
components:
  parameters:
    api_key_header:
      in: header
      name: X-Api-Key
      description: >-
        Use the X-Api-Key header to provide your workspace API key. Refer to
        [Authentication](/getting-started/authentication) for more information.
      required: true
      schema:
        type: string
  schemas:
    purchase_show_response:
      type: object
      properties:
        purchase:
          $ref: '#/components/schemas/purchase_with_payment'
          description: Detailed purchase information including payment details.
    purchase_with_payment:
      allOf:
        - $ref: '#/components/schemas/purchase'
        - type: object
          properties:
            payment:
              $ref: '#/components/schemas/payment'
              description: Payment information associated with the purchase.
    purchase:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the purchase.
          example: 1b217cc5-69b5-4fb1-a13c-c22f9c14e7f9
        name:
          type: string
          description: Name of the person who made the purchase.
          example: John Doe
        email:
          type: string
          format: email
          description: Email address of the person who made the purchase.
          example: john@example.com
        purchase_code:
          type: string
          description: Unique code associated with the purchase.
          example: PUR-123456
        duration_remaining:
          type: integer
          description: Remaining duration in seconds for the purchased package.
          example: 3600
        status:
          type: string
          description: Current status of the purchase.
          example: confirmed
        notes:
          type: string
          nullable: true
          description: Additional notes or comments about the purchase.
          example: Customer requested priority support
        package_id:
          type: string
          description: ID of the package that was purchased.
          example: aff17ff8-1bf8-4e77-a3c5-2f86104f9a20
        duration:
          type: integer
          description: Total duration in seconds of the purchased package.
          example: 7200
        created_at:
          type: string
          format: date-time
          description: Timestamp when the purchase was created.
          example: '2023-12-01T10:00:00Z'
        updated_at:
          type: string
          format: date-time
          description: Timestamp when the purchase was last updated.
          example: '2023-12-01T10:30:00Z'
    payment:
      type: object
      properties:
        amount:
          type: string
          description: The payment amount as a string to preserve decimal precision.
          example: '120.0'
        currency:
          type: string
          description: The currency code for the payment amount (e.g., "inr", "usd").
          example: inr
        status:
          type: string
          description: Current status of the payment.
          example: successful
        payment_at:
          type: string
          format: date-time
          description: Timestamp when the payment was processed.
          example: '2023-12-01T10:30:00Z'

````