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

# Get a card payment

> One call your POS made through the POS Gateway, with every other call on the same payment (`related`: the authorization, its capture, a void or a refund share its `retRef`). This is what a `transaction/…` webhook names.



## OpenAPI

````yaml /api-reference/openapi.json get /pos-gateway/transactions/{id}
openapi: 3.1.1
info:
  title: Mojo Payments API
  description: >-
    Invoices, deposits, payments and locations for merchants; the merchant
    portfolio for reseller partners. Authenticate with an API key: exchange it
    at `POST /oauth/token` for a 10-minute access token, and send that as
    `Authorization: Bearer <token>`. Guides:
    https://kb.paymentsmojo.com/developers/overview
  version: '1'
servers:
  - url: https://api.paymentsmojo.com
security:
  - Bearer: []
tags:
  - name: Locations
  - name: Reseller portfolio
  - name: Invoice payments
  - name: Customers
  - name: Campaign pages
  - name: Authentication
  - name: Merchant accounts (MIDs)
  - name: Merchant applications
  - name: POS Gateway
  - name: Deposits
  - name: Card transactions
  - name: Recurring billing
  - name: Webhooks
paths:
  /pos-gateway/transactions/{id}:
    get:
      tags:
        - POS Gateway
      summary: Get a card payment
      description: >-
        One call your POS made through the POS Gateway, with every other call on
        the same payment (`related`: the authorization, its capture, a void or a
        refund share its `retRef`). This is what a `transaction/…` webhook
        names.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            pattern: ^-?(?:0|[1-9]\d*)$
            type: integer
            format: int64
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PosGatewayTransactionDetail'
        '401':
          description: >-
            No access token, or it expired or its key was revoked. Get a new
            token.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: >-
            The key doesn't have the permission this needs, or the organization
            is suspended.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not Found
        '429':
          description: Too many requests. Wait and try again.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    PosGatewayTransactionDetail:
      required:
        - transaction
        - locationId
        - related
      type: object
      properties:
        transaction:
          $ref: '#/components/schemas/PosGatewayTransactionView'
        locationId:
          type:
            - 'null'
            - string
          format: uuid
        related:
          type: array
          items:
            $ref: '#/components/schemas/PosGatewayTransactionView'
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
          description: A short summary, e.g. "Check the request".
        status:
          type: integer
          format: int32
        detail:
          type: string
          description: What to change, in plain words.
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Field validation messages, by field (400 only).
      description: What went wrong (RFC 9457).
    PosGatewayTransactionView:
      required:
        - id
        - startedAt
        - action
        - mid
        - locationName
        - hsn
        - orderId
        - retRef
        - amount
        - respStat
        - respCode
        - respText
        - error
        - durationMs
        - keyId
      type: object
      properties:
        id:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int64
        startedAt:
          type: string
          format: date-time
        action:
          type: string
        mid:
          type:
            - 'null'
            - string
        locationName:
          type:
            - 'null'
            - string
        hsn:
          type:
            - 'null'
            - string
        orderId:
          type:
            - 'null'
            - string
        retRef:
          type:
            - 'null'
            - string
        amount:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - 'null'
            - number
            - string
          format: double
        respStat:
          type:
            - 'null'
            - string
        respCode:
          type:
            - 'null'
            - string
        respText:
          type:
            - 'null'
            - string
        error:
          type:
            - 'null'
            - string
        durationMs:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        keyId:
          type:
            - 'null'
            - string
        version:
          type:
            - 'null'
            - string
  securitySchemes:
    Bearer:
      type: http
      description: >-
        An access token from POST /oauth/token (your API key's id and secret).
        It lasts 10 minutes.
      scheme: bearer
      bearerFormat: JWT

````

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