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

# Get one in-person sale

> Read a single POS sale, including its items and payment. Requires the READ_POS scope.

An id that belongs to an online order is answered with 404 rather than returned, because this surface is limited to in-person sales.


## OpenAPI

````yaml apps-api/specs/pos.json GET /pos/sales/{id}
openapi: 3.1.0
info:
  title: 'Salesive Apps API: Point of Sale'
  version: 1.0.0
  description: >-
    Ring up in-person sales and reconcile them from an installed third-party
    app. Every endpoint authenticates with an installed-app access token (prefix
    `app_`) and requires `READ_POS` or `WRITE_POS`. The target store is bound to
    the token server-side from the installation, so never send a shop id.
servers:
  - url: https://api.salesive.com/api/v1
    description: Production
security:
  - AppToken: []
tags:
  - name: Point of sale
    description: In-person sales, their receipts and daily totals.
paths:
  /pos/sales/{id}:
    get:
      tags:
        - Point of sale
      summary: Get one in-person sale
      description: >-
        Returns a single POS sale, including its line items and payment. An id
        that belongs to an online order is answered with 404, not returned.
        Requires `READ_POS`.
      operationId: getPosSale
      parameters:
        - $ref: '#/components/parameters/PosSaleId'
      responses:
        '200':
          description: The sale.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/EnvelopeBase'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/PosSale'
        '404':
          description: No POS sale with that id in this store.
components:
  parameters:
    PosSaleId:
      name: id
      in: path
      required: true
      description: The POS sale's order id (Mongo ObjectId).
      schema:
        type: string
  schemas:
    EnvelopeBase:
      type: object
      description: >-
        Standard Salesive response envelope. The operation-specific payload is
        carried in `data`.
      required:
        - status
        - success
        - message
      properties:
        status:
          type: integer
          description: HTTP status code, echoed in the body.
        success:
          type: boolean
          description: Whether the request succeeded.
        message:
          type: string
          description: Human-readable result message.
    PosSale:
      type: object
      description: >-
        An in-person sale. It is the same order record the dashboard's POS
        creates: source `pos`, status `paid`, stock reduced and a completed
        payment attached.
      properties:
        _id:
          type: string
        orderId:
          type: integer
          description: The store-facing order number.
        shop:
          type: string
        user:
          type: string
        items:
          type: array
          items:
            type: object
            properties:
              _id:
                type: string
              name:
                type: string
              price:
                type: number
              quantity:
                type: integer
              sku:
                type:
                  - string
                  - 'null'
              imageUrl:
                type:
                  - string
                  - 'null'
              itemType:
                type: string
                enum:
                  - product
                  - food
                  - service
        subtotal:
          type: number
        discount:
          type: number
        tax:
          type: number
        shippingCost:
          type: number
        status:
          type: string
          enum:
            - pending
            - processing
            - paid
            - cancelled
            - refunded
        source:
          type: string
          enum:
            - online
            - pos
        paymentMethod:
          type: string
          enum:
            - cash
            - card
            - transfer
            - other
        posCustomerName:
          type:
            - string
            - 'null'
        posCustomerEmail:
          type:
            - string
            - 'null'
        posCustomerPhone:
          type:
            - string
            - 'null'
        additionalInfo:
          type: array
          items:
            $ref: '#/components/schemas/AdditionalInfoItem'
        payment:
          $ref: '#/components/schemas/PaymentSummary'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    AdditionalInfoItem:
      type: object
      required:
        - label
        - value
      properties:
        label:
          type: string
        value:
          type: string
    PaymentSummary:
      type: object
      description: The completed payment created with the sale.
      properties:
        _id:
          type: string
        status:
          type: string
        amount:
          type: number
        total:
          type: number
        channel:
          type: string
        provider:
          type: string
  securitySchemes:
    AppToken:
      type: http
      scheme: bearer
      description: >-
        Installed-app access token (prefix app_), issued by the OAuth install
        flow. The store is bound to the token server-side, so never send a shop
        id.

````

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