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

# Fetch Quotation

> Returns the details and current status of a specific payout quotation.

<Prompt description="Fetch Quotation" actions={["cursor"]}>
  Integrate the DollarPe Fetch Payout Quotation endpoint into my application.

  Endpoint: GET /payout/quotation/{quotation_id}
  Base URL: [https://api.dollarpe.in](https://api.dollarpe.in) (production) | [https://sandbox.dollarpe.in](https://sandbox.dollarpe.in) (sandbox)

  Auth headers required on every request:

  * X-API-KEY: your API key
  * X-TIMESTAMP: current Unix time in seconds
  * X-SIGNATURE: Base64(HMAC-SHA256(X-API-KEY + X-TIMESTAMP + sortedJSONBody, apiSecret))

  Task: Write a typed function that:

  1. Accepts a quotation\_id string
  2. Builds the auth headers
  3. Calls GET /payout/quotation/{quotation_id}
  4. Returns the quotation object (rate, expiry, status, deposit address)
  5. Handles 400 (not found / access denied) and 500 errors

  Language: TypeScript
</Prompt>

| API Status Code | Response                  | Reason                |
| --------------- | ------------------------- | --------------------- |
| 400             | Quotation ID is required. | Missing Quotation ID  |
| 400             | Quotation ID is invalid   | Invalid Quotation ID  |
| 500             | Internal Server Error     | Internal Server Error |


## OpenAPI

````yaml GET /payout/quotation/{quotation_id}
openapi: 3.1.0
info:
  title: DollarPe API
  description: API for DollarPe - Customer, Payout, and Webhook services
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://sandbox.dollarpe.xyz/pos/api/v1
    description: Payout API Base URL
    variables:
      base_url:
        default: https://sandbox.dollarpe.xyz
  - url: https://sandbox.dollarpe.xyz/cms/api/v1
    description: Customer API Base URL
    variables:
      base_url:
        default: https://sandbox.dollarpe.xyz
security:
  - ApiKeyAuth: []
    TimestampAuth: []
    SignatureAuth: []
tags:
  - name: Customer
    description: Customer related operations
    x-displayName: Customer
    x-traitTag: true
  - name: Payout
    description: Payout related operations
  - name: Webhooks
    description: Webhook related operations
  - name: Widget
    description: Hosted buy/sell widget session initialization
paths:
  /payout/quotation/{quotation_id}:
    get:
      tags:
        - Payout
      description: Fetch details of a specific quotation
      parameters:
        - name: quotation_id
          in: path
          required: true
          description: The unique identifier of the quotation
          schema:
            type: string
            format: uuid
            example: 2e104290-07c8-49f1-a5ca-0d27f0078f8a
      responses:
        '200':
          description: Quotation details fetched successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Success
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        example: 2e104290-07c8-49f1-a5ca-0d27f0078f8a
                      order_id:
                        type: string
                        format: uuid
                        example: 550e8400-e29b-41d4-a716-446655440000
                      customer_id:
                        type: string
                        format: uuid
                        example: def8b740-99f9-4cba-bc9e-99de57e927b4
                      bank_id:
                        type: string
                        format: uuid
                        example: 4e6f1b20-a73c-11ec-b909-0242ac120002
                      status:
                        type: string
                        example: PROCESSING
                      asset:
                        type: string
                        example: USDT
                      fiat:
                        type: string
                        example: INR
                      sending_amount:
                        type: number
                        example: 10
                      rate:
                        type: number
                        example: 87.2
                      receiving_amount:
                        type: number
                        example: 846.19
                      fees:
                        type: object
                        properties:
                          client_fee_fiat:
                            type: number
                            format: float
                            example: 450
                          client_fee_crypto:
                            type: number
                            format: float
                            example: 5
                          dollarpe_fee:
                            type: number
                            format: float
                            example: 450
                          pg_fee:
                            type: number
                            format: float
                            example: 18
                          client_gst_fiat:
                            type: number
                            format: float
                            example: 81
                          client_gst_crypto:
                            type: number
                            format: float
                            example: 0.9
                          dollarpe_gst:
                            type: number
                            format: float
                            example: 81
                          pg_gst:
                            type: number
                            format: float
                            example: 81
                          tds:
                            type: number
                            format: float
                            example: 889.17
                          gross_effective_exchange_rate:
                            type: number
                            format: float
                            example: 88.92
                      created_at:
                        type: string
                        format: date-time
                        example: '2025-03-04T15:54:20+00:00'
                      expiry_time:
                        type: string
                        format: date-time
                        example: '2025-03-04T15:59:20+00:00'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    example: false
                  message:
                    type: string
                    example: Bad Request
                  err_code:
                    type: string
                    example: REQ_FIELD_MISSING
                  errors:
                    type: object
                    properties:
                      quotation_id:
                        type: array
                        items:
                          type: string
                        example:
                          - quotation_id is invalid
                  data:
                    type: 'null'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
                    example: Internal Server Error
                  err_code:
                    type: string
                    example: SYS_INTERNAL_ERROR
                  errors:
                    type: string
                    example: Unexpected error occurred. Please try again later.
                  data:
                    type: 'null'
      servers:
        - url: https://sandbox.dollarpe.xyz/pos/api/v1
          description: Payout API Base URL
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API Key for authentication
    TimestampAuth:
      type: apiKey
      in: header
      name: X-TIMESTAMP
      description: Current timestamp in seconds since epoch
    SignatureAuth:
      type: apiKey
      in: header
      name: X-SIGNATURE
      description: HMAC SHA256 signature of the request encoded in Base64

````