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

# Retrieve a payment

> Retrieve a payment owned by the API key's organization. Use the id from creation as public_id. This response uses asset (not currency) and includes settlement details.



## OpenAPI

````yaml /openapi.json get /api/v1/payments/manage/intents/{public_id}/
openapi: 3.0.3
info:
  title: goChameleon Merchant API
  version: 1.0.0
  description: Create hosted USDC payments on Arc and check their status.
servers:
  - url: https://sandbox-api.gochameleon.xyz
    description: Sandbox — test keys
  - url: https://api.gochameleon.xyz
    description: Production — live keys
security:
  - merchantKey: []
paths:
  /api/v1/payments/manage/intents/{public_id}/:
    get:
      tags:
        - Payments
      summary: Retrieve a payment
      description: >-
        Retrieve a payment owned by the API key's organization. Use the id from
        creation as public_id. This response uses asset (not currency) and
        includes settlement details.
      operationId: manage_intents_retrieve
      parameters:
        - in: path
          name: public_id
          schema:
            type: string
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MerchantPaymentIntent'
          description: Payment and settlement details
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '404':
          description: Payment not found in this organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
      security:
        - merchantKey: []
components:
  schemas:
    MerchantPaymentIntent:
      type: object
      description: 'The merchant''s view: everything public, plus their own fields.'
      properties:
        support_email:
          type: string
          readOnly: true
        fee_bps:
          type: integer
          maximum: 9223372036854776000
          minimum: 0
          format: int64
        fee_amount:
          type: integer
          maximum: 9223372036854776000
          minimum: 0
          format: int64
        id:
          type: string
          readOnly: true
        status:
          $ref: '#/components/schemas/StatusEnum'
        amount:
          type: integer
          maximum: 9223372036854776000
          minimum: -9223372036854776000
          format: int64
          description: Exact amount the buyer sends, in base units.
        amount_display:
          type: string
          readOnly: true
        listed_amount:
          type: integer
          maximum: 9223372036854776000
          minimum: -9223372036854776000
          format: int64
          description: Advertised price, in base units.
        amount_nonce:
          type: integer
          maximum: 9223372036854776000
          minimum: -9223372036854776000
          format: int64
          description: >-
            Always 0. Payments are distinguished by the on-chain memo, not by a
            fractional surcharge.
        credited_amount:
          type: integer
          maximum: 9223372036854776000
          minimum: -9223372036854776000
          format: int64
        asset:
          type: string
          maxLength: 16
        chain:
          type: string
          maxLength: 32
        chain_id:
          type: integer
          readOnly: true
          nullable: true
        pay_to_address:
          type: string
          description: Snapshot of the wallet address, so the intent stays self-describing.
          maxLength: 128
        tx_hash:
          type: string
          readOnly: true
          nullable: true
        explorer_url:
          type: string
          readOnly: true
          nullable: true
        payer_address:
          type: string
          maxLength: 128
        block_number:
          type: integer
          maximum: 9223372036854776000
          minimum: -9223372036854776000
          format: int64
          nullable: true
        settlement_path:
          oneOf:
            - $ref: '#/components/schemas/SettlementPathEnum'
            - $ref: '#/components/schemas/BlankEnum'
        reference:
          type: string
          description: The merchant's own order id.
          maxLength: 64
        metadata: {}
        origin:
          type: string
          maxLength: 255
        source_type:
          type: string
          maxLength: 64
        source_id:
          type: string
          maxLength: 64
        button:
          type: string
          readOnly: true
          nullable: true
        last_error:
          type: string
          maxLength: 255
        expires_at:
          type: string
          format: date-time
        confirmed_at:
          type: string
          format: date-time
          nullable: true
        date_added:
          type: string
          format: date-time
          readOnly: true
        date_last_modified:
          type: string
          format: date-time
          readOnly: true
      required:
        - amount
        - amount_display
        - button
        - chain
        - chain_id
        - date_added
        - date_last_modified
        - expires_at
        - explorer_url
        - id
        - listed_amount
        - pay_to_address
        - support_email
        - tx_hash
    APIError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        details:
          nullable: true
        request_id:
          type: string
          nullable: true
    StatusEnum:
      enum:
        - pending
        - submitted
        - confirmed
        - underpaid
        - failed
        - expired
      type: string
      description: |-
        * `pending` - PENDING
        * `submitted` - SUBMITTED
        * `confirmed` - CONFIRMED
        * `underpaid` - UNDERPAID
        * `failed` - FAILED
        * `expired` - EXPIRED
    SettlementPathEnum:
      enum:
        - erc20
        - native
        - mixed
      type: string
      description: |-
        * `erc20` - ERC20
        * `native` - NATIVE
        * `mixed` - MIXED
    BlankEnum:
      enum:
        - ''
  securitySchemes:
    merchantKey:
      type: http
      scheme: bearer
      bearerFormat: Organization API key
      description: Use gck_test_ keys on sandbox and gck_live_ keys on production.

````

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