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

# List the caller's unassigned store purchases

> Lists the caller's store purchases that the App Store or Play Store reported with no purchase intent bound to them, each with its current state, oldest received first.

Use this tool when you need to:
- Find a paid store purchase that reached no org because its transaction was never bound to a purchase intent
- Pick the transaction_id to claim into an org

Examples:
- GET /billing/store/unassigned-purchases

Hints:
- Takes no parameters and is not paged. items holds each purchase with transaction_id, store (app_store or play_store), sku, checkout_type (subscription, credit_pack or inference_topup), state (paid, refunded or expired), latest_event_at and received_at, in received_at order.
- Only purchases made with the caller's own store identity are listed; each is held by no org until the caller claims it, and a claimed one leaves the list.
- state is as of the store's latest event: a refunded purchase or an expired subscription grants nothing for the refunded or expired period when claimed, though a subscription whose renewal was refunded ahead of its period still grants the paid period before it.
- Use claimBillingUnassignedStorePurchase instead to complete one into an org.
- Any signed-in user, for their own purchases; no org is involved. An agent host's grant is refused with 403 agent_host_route_not_allowed.



## OpenAPI

````yaml api-reference/openapi.json GET /billing/store/unassigned-purchases
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /billing/store/unassigned-purchases:
    get:
      tags:
        - billing
      summary: List the caller's unassigned store purchases
      description: >-
        Lists the caller's store purchases that the App Store or Play Store
        reported with no purchase intent bound to them, each with its current
        state, oldest received first.


        Use this tool when you need to:

        - Find a paid store purchase that reached no org because its transaction
        was never bound to a purchase intent

        - Pick the transaction_id to claim into an org


        Examples:

        - GET /billing/store/unassigned-purchases


        Hints:

        - Takes no parameters and is not paged. items holds each purchase with
        transaction_id, store (app_store or play_store), sku, checkout_type
        (subscription, credit_pack or inference_topup), state (paid, refunded or
        expired), latest_event_at and received_at, in received_at order.

        - Only purchases made with the caller's own store identity are listed;
        each is held by no org until the caller claims it, and a claimed one
        leaves the list.

        - state is as of the store's latest event: a refunded purchase or an
        expired subscription grants nothing for the refunded or expired period
        when claimed, though a subscription whose renewal was refunded ahead of
        its period still grants the paid period before it.

        - Use claimBillingUnassignedStorePurchase instead to complete one into
        an org.

        - Any signed-in user, for their own purchases; no org is involved. An
        agent host's grant is refused with 403 agent_host_route_not_allowed.
      operationId: listBillingUnassignedStorePurchases
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListUnassignedStorePurchase'
          description: OK
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingErrorResponse'
          description: Gone
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingErrorResponse'
          description: Internal Server Error
components:
  schemas:
    ListUnassignedStorePurchase:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/UnassignedStorePurchase'
          type: array
      required:
        - items
      type: object
    BillingErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - bad_gateway
            - bad_request
            - checkout_pending
            - cli_upgrade_required
            - client_outdated
            - conflict
            - enterprise_invoice
            - forbidden
            - free_tier
            - gateway_timeout
            - gone
            - internal_error
            - invalid_surface
            - managed_elsewhere
            - method_not_allowed
            - no_billing_history
            - not_acceptable
            - not_found
            - not_implemented
            - payment_delinquent
            - payment_required
            - personal_org_requires_personal_plan
            - precondition_failed
            - provider_unavailable
            - rate_limited
            - request_canceled
            - request_timeout
            - request_too_large
            - requires_org_admin
            - service_unavailable
            - subscription_active
            - subscription_pending
            - team_org_requires_team_plan
            - team_plan_web_only
            - team_seats_via_membership
            - unauthenticated
            - unsupported_media_type
            - validation_failed
            - warm_slot_occupied
            - web_only
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
            - grant_scope_insufficient
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    UnassignedStorePurchase:
      additionalProperties: false
      properties:
        checkout_type:
          enum:
            - subscription
            - credit_pack
            - inference_topup
          type: string
        latest_event_at:
          format: date-time
          type: string
        received_at:
          format: date-time
          type: string
        sku:
          description: >-
            The canonical product: a subscription tier, a credit pack or a
            top-up SKU.
          type: string
        state:
          description: >-
            The purchase's state as of the store's latest event: a refunded
            purchase or an expired subscription grants nothing when claimed.
          enum:
            - paid
            - refunded
            - expired
          type: string
        store:
          enum:
            - app_store
            - play_store
          type: string
        transaction_id:
          description: The store transaction.
          type: string
      required:
        - transaction_id
        - store
        - sku
        - checkout_type
        - state
        - latest_event_at
        - received_at
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.