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

# Get a link's checkout

> What a payer sees: the merchant's name, the price and the coins to choose from. Public: no API key needed. Call it from your server (the API doesn't allow cross-origin browser requests).

Use it to show the coins in your own checkout. See [Build your own checkout](https://docs.paywire.xyz/guides/custom-checkout.md).


## OpenAPI

````yaml GET /payments/links/{linkId}/checkout
openapi: 3.1.0
info:
  title: Paywire API
  version: 1.0.0
  description: >-
    Accept crypto payments: create payment links, follow orders, receive signed
    webhooks.
servers:
  - url: https://api.staging.paywire.xyz
    description: Staging (testnets)
security:
  - apiKey: []
tags:
  - name: Payment links
  - name: Orders
  - name: Account
  - name: Webhooks
paths:
  /payments/links/{linkId}/checkout:
    get:
      tags:
        - Payment links
      summary: Get a link's checkout
      description: >-
        What a payer sees: the merchant's name, the price and the coins to
        choose from. Public: no API key needed. Call it from your server (the
        API doesn't allow cross-origin browser requests).
      operationId: getCheckout
      parameters:
        - name: linkId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The payment link's id.
      responses:
        '200':
          description: The checkout.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Checkout'
              example:
                id: 0193a0c4-5f2e-7c1d-9b8a-3e4f5a6b7c8d
                merchantName: Example Shop
                amount: 49.9
                currency: USD
                allowedAssets:
                  - network: ethereum_sepolia
                    token: '0x1c7d4b196cb0c7b01d743fbc6116a902379c7238'
                    decimals: 6
                  - network: solana_devnet
                    token: native
                    decimals: 9
                orderTtlMinutes: 20
                returnUrl: https://shop.example.com/orders/1042
                isActive: true
        '404':
          description: No such link.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
              example:
                title: PaymentLink.NotFound
                status: 404
                detail: No payment link with this id.
      security: []
components:
  schemas:
    Checkout:
      type: object
      properties:
        id:
          type: string
          format: uuid
        merchantName:
          type: string
        amount:
          type: number
        currency:
          type: string
        allowedAssets:
          type: array
          items:
            $ref: '#/components/schemas/Asset'
        orderTtlMinutes:
          type: integer
        returnUrl:
          type:
            - string
            - 'null'
          format: uri
        isActive:
          type: boolean
    Problem:
      type: object
      description: RFC 7807 problem details. `title` is a stable error code.
      properties:
        type:
          type: string
        title:
          type: string
          example: PaymentLink.NotFound
        status:
          type: integer
        detail:
          type: string
    Asset:
      allOf:
        - $ref: '#/components/schemas/AssetRef'
        - type: object
          properties:
            decimals:
              type: integer
              example: 18
    AssetRef:
      type: object
      required:
        - network
        - token
      properties:
        network:
          type: string
          example: ethereum_sepolia
          description: Network id. See Networks and assets.
        token:
          type: string
          example: native
          description: >-
            `native` for the network's coin, else the token contract (mint on
            Solana).
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Your gateway's API key (`w3g_...`).

````

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