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

# Get payment intent

> Get a single payment intent by ID. Use this to check whether a payment has settled (`status` becomes `succeeded`) as an alternative or reconciliation fallback to webhooks.

<Info>
  Slash Payment Processing is in beta and not enabled for all accounts. Contact
  [support@joinslash.com](mailto:support@joinslash.com) to get access.
</Info>


## OpenAPI

````yaml get /payment-intent/{paymentIntentId}
openapi: 3.1.0
info:
  title: Slash Public API
  description: API description
  version: 0.0.1
  contact: {}
servers:
  - url: https://api.slash.com
    description: production
security:
  - api_key: []
  - partner_api_key: []
  - bearer: []
  - developer_application: []
paths:
  /payment-intent/{paymentIntentId}:
    get:
      description: >-
        Get a single payment intent by ID. Use this to check whether a payment
        has settled (`status` becomes `succeeded`) as an alternative or
        reconciliation fallback to webhooks.
      parameters:
        - name: paymentIntentId
          in: path
          required: true
          schema:
            type: string
        - name: filter:legalEntityId
          description: >-
            The legal entity ID. Required if authenticating with access to
            multiple legal entities.
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  paymentIntent:
                    $ref: '#/components/schemas/PaymentIntent'
                    x-entrypoint:
                      virtualPath: schemas/PaymentIntent
                      sourcePath: schemas/PaymentIntent.yaml
                      title: PaymentIntent
                      origin: ./src/publicApi
                required:
                  - paymentIntent
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: TooManyRequests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - api_key: []
        - bearer: []
components:
  schemas:
    PaymentIntent:
      type: object
      description: >-
        A payment intent represents a single intent to collect a card payment
        from a buyer. Checkout sessions and card-enabled invoices each create
        one payment intent; its `status` tracks the payment from creation
        through settlement.
      properties:
        id:
          type: string
          description: Unique identifier for the payment intent.
        status:
          type: string
          description: >-
            Status of the payment intent. `pending` intents have not been paid
            yet; `processing` intents have a payment in flight awaiting
            settlement; `succeeded` intents have a confirmed settled payment;
            `failed` intents had a payment attempt fail; `canceled` intents were
            canceled and can no longer be paid.
          enum:
            - pending
            - processing
            - succeeded
            - failed
            - canceled
        amount:
          type: integer
          description: Payment amount in cents.
        currency:
          type: string
          description: >-
            ISO currency code for the payment. Only `usd` is currently
            supported.
          enum:
            - usd
        checkoutSessionId:
          type: string
          description: >-
            The checkout session collecting this payment, when the intent was
            created via `POST /checkout-session`. Absent for payment intents
            created by other products (for example card-enabled invoices).
        createdAt:
          type: string
          format: date-time
          description: ISO-8601 timestamp the payment intent was created at.
        updatedAt:
          type: string
          format: date-time
          description: ISO-8601 timestamp the payment intent last changed status.
      required:
        - id
        - status
        - amount
        - currency
        - createdAt
        - updatedAt
      x-entrypoint:
        virtualPath: schemas/PaymentIntent
        sourcePath: schemas/PaymentIntent.yaml
        title: PaymentIntent
        origin: ./src/publicApi
      title: PaymentIntent
    Error:
      type: object
      properties:
        message:
          type: string
        name:
          type: string
        identifier:
          type: string
        rawStatus:
          type: number
        meta:
          type: object
          additionalProperties: true
      required:
        - message
        - name
        - identifier
        - rawStatus
      x-entrypoint:
        origin: ./src/publicApi
        sourcePath: ./src/publicApi/main.yaml
        title: Error
        virtualPath: components/Error
      title: Error
  securitySchemes:
    api_key:
      type: apiKey
      description: |
        API key authentication for public API requests.

        Keys come in two flavors:

        - *Legal-entity-scoped keys* are pinned to a single legal entity.
          Minted via the dashboard under a specific entity; every request
          acts on that entity.
        - *User-scoped keys* are pinned to a user and span every legal
          entity that user has access to. Every request made with a
          user-scoped key (except `GET /legal-entity`, which lists the
          legal entities the user can access) must include an
          `x-legal-entity` header naming the legal entity the request is
          operating on. Requests without the header are rejected with
          `400`. The authenticated user must have an active permission
          role on the supplied legal entity, otherwise the request is
          rejected with `403`.
      name: X-API-Key
      in: header
    partner_api_key:
      type: apiKey
      description: |
        Partner-program API key authentication.

        Keys are minted in the partner dashboard (Developers → API Keys),
        are scoped to a single partner program, and are prefixed with
        `sk_partner_`. Partner keys are only accepted by routes that
        declare this scheme; they are rejected by `api_key` routes and
        vice versa.
      name: X-API-Key
      in: header
    bearer:
      type: http
      scheme: bearer
    developer_application:
      type: http
      scheme: basic

````