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

# Find Payment Charges

> Retrieve the fee and tax breakdown applied to a payment.



## OpenAPI

````yaml get /v1/aggregators/{raast-aggregator-id}/payments/{payment-id}/charges
openapi: 3.1.0
info:
  title: Raast Wire
  version: 1.0.0
  description: ''
servers:
  - url: https://api.getsafepay.com/raastwire
security: []
tags:
  - name: Aggregators
  - name: Access Keys
  - name: Merchants
  - name: Raast Merchants
  - name: Payments
  - name: Refunds
  - name: QRs
  - name: Utilities
  - name: Aliases
  - name: Ledgers
  - name: Webhooks
  - name: Settlement Operations
  - name: Settlement Reports
paths:
  /v1/aggregators/{raast-aggregator-id}/payments/{payment-id}/charges:
    parameters:
      - $ref: '#/components/parameters/AggregatorIdParam'
      - $ref: '#/components/parameters/PaymentIdParam'
    get:
      tags:
        - Payments
      summary: Find Payment Charges
      description: Retrieve the fee and tax breakdown applied to a payment.
      responses:
        '200':
          $ref: '#/components/responses/FindPaymentChargesResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - apiKey: []
components:
  parameters:
    AggregatorIdParam:
      name: raast-aggregator-id
      in: path
      required: true
      schema:
        type: string
        example: agg_2288490a-2176-4de5-b373-0ffb6f8e2e6e
      description: The unique identifier for the aggregator
    PaymentIdParam:
      name: payment-id
      in: path
      required: true
      schema:
        type: string
        example: pm_2288490a-2176-4de5-b373-0ffb6f8e2e6e
      description: The unique identifier for the payment
  responses:
    FindPaymentChargesResponse:
      description: This response contains the fee and tax breakdown of a payment
      headers:
        Content-Length:
          $ref: '#/components/headers/ContentLengthHeader'
        Date:
          $ref: '#/components/headers/DateHeader'
      content:
        application/json:
          schema:
            allOf:
              - $ref: '#/components/schemas/StandardResponse'
              - type: object
                properties:
                  data:
                    $ref: '#/components/schemas/PaymentCharges'
          examples:
            PaymentChargesFound:
              value:
                api_version: v1
                data:
                  payment_id: pm_8084eaf1-0f1b-43ef-bd27-23743d9c37f6
                  gross_amount: '500'
                  currency: PKR
                  fee_amount: '2'
                  net_amount: '483'
                  sales_tax_on_fee_amount: '0'
                  sales_tax_withholding_amount: '10'
                  income_tax_withholding_amount: '5'
                  digital_tax_amount: '0'
    Unauthorized:
      description: Unauthorized
      headers:
        Content-Length:
          $ref: '#/components/headers/ContentLengthHeader'
        Date:
          $ref: '#/components/headers/DateHeader'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiErrorEnvelope'
          examples:
            Unauthorized:
              value:
                api_version: v1
                error:
                  code: error.unauthorized_access
                  message: partner access key is required in request header
    NotFound:
      description: Resource not found
      headers:
        Content-Length:
          $ref: '#/components/headers/ContentLengthHeader'
        Date:
          $ref: '#/components/headers/DateHeader'
      content:
        application/json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ErrorResponse'
              - type: object
                properties:
                  code:
                    example: error.not_found
                  message:
                    example: Requested resource not found
  headers:
    ContentLengthHeader:
      schema:
        type: string
        example: '256'
    DateHeader:
      schema:
        type: string
        example: Sat, 12 Aug 2023 08:55:04 GMT
  schemas:
    StandardResponse:
      type: object
      description: Standard response structure for successful operations
      properties:
        api_version:
          type: string
          example: v1
          description: The current version of the API spec
        data:
          type: object
          description: Contains the response data
    PaymentCharges:
      type: object
      description: >-
        Fee and tax breakdown applied to a payment. All amounts are in the
        lowest currency denomination (paisa).
      properties:
        payment_id:
          type: string
          description: Identifier of the payment the charges apply to.
          example: pm_8084eaf1-0f1b-43ef-bd27-23743d9c37f6
        gross_amount:
          type: string
          description: Total payment amount before any deductions.
          example: '500'
        currency:
          type: string
          description: ISO 4217 currency code.
          example: PKR
        fee_amount:
          type: string
          description: Fee charged for the payment.
          example: '2'
        net_amount:
          type: string
          description: Amount credited to the merchant after fees and taxes.
          example: '483'
        sales_tax_on_fee_amount:
          type: string
          description: Sales tax charged on the fee.
          example: '0'
        sales_tax_withholding_amount:
          type: string
          description: Sales tax withheld on behalf of the merchant.
          example: '10'
        income_tax_withholding_amount:
          type: string
          description: Income tax withheld on behalf of the merchant.
          example: '5'
        digital_tax_amount:
          type: string
          description: Digital presence tax charged for the payment.
          example: '0'
    ApiErrorEnvelope:
      type: object
      description: Error wrapper that includes the API version and error metadata
      properties:
        api_version:
          type: string
          description: Indicates the API version associated with the response
          example: v1
        error:
          description: Structured error details describing why the request failed
          allOf:
            - $ref: '#/components/schemas/ErrorResponse'
          example:
            code: error.unauthorized_access
            message: partner access key is required in request header
    ErrorResponse:
      type: object
      description: Standard error response structure
      properties:
        code:
          type: string
          description: Error code identifying the type of error
        message:
          type: string
          description: Human-readable error message
  securitySchemes:
    apiKey:
      type: apiKey
      name: X-SFPY-AGGREGATOR-SECRET-KEY
      in: header

````