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

# Get credit note

> Retrieve a single credit note by ID.



## OpenAPI

````yaml https://api.meteroid.com/api-docs/openapi.json get /api/v1/credit-notes/{credit_note_id}
openapi: 3.1.0
info:
  title: meteroid
  description: ''
  license:
    name: LicenseRef-Meteroid-EE
    identifier: LicenseRef-Meteroid-EE
  version: 0.1.0
servers: []
security: []
tags:
  - name: Add-ons
  - name: Batch Jobs
  - name: Budgets
    description: >-
      Beta: may change before general availability. Spending limits on a
      customer's usage, or one subscription's, per currency, with alerts at
      percentages of the amount.
    x-beta: true
  - name: Checkout Sessions
  - name: Checks
    description: >-
      Beta: may change before general availability. Whether a customer may
      consume more of a feature right now.
    x-beta: true
  - name: Connect
    description: Manage connected accounts (Express & Standard)
  - name: Coupons
  - name: Credit Notes
  - name: Credit units
    description: >-
      Custom denominations, such as "credits", that usage can be priced in and
      credit granted or sold in, instead of money.
  - name: Credits
    description: >-
      Prepaid credit: a customer's wallets, credit grants, ledger and top-ups.
      Promotional credit applies before tax like a discount; paid credit applies
      after tax like a payment.
  - name: Custom Properties
  - name: Customers
  - name: Entitlements
  - name: Events
  - name: Features
  - name: Invoices
  - name: Licenses
    description: >-
      Licenses for your customers' self-hosted installations: signed tokens
      carrying their plan's entitlements, activated and refreshed by the
      installation over the public licensing endpoints.
  - name: Metrics
  - name: OAuth
    description: OAuth 2.0 token endpoints (public, client-credentials auth)
  - name: OAuth Apps
    description: Manage OAuth applications for Connect integrations
  - name: Plans
  - name: Product Families
  - name: Products
  - name: Subscriptions
  - name: Usage
  - name: Usage costs
    description: >-
      Beta: may change before general availability. A customer's or a
      subscription's usage events and usage over time, with what they cost.
    x-beta: true
  - name: Webhook Endpoints
    description: Manage outbound webhook endpoints and inspect their deliveries
paths:
  /api/v1/credit-notes/{credit_note_id}:
    get:
      tags:
        - Credit Notes
      summary: Get credit note
      description: Retrieve a single credit note by ID.
      operationId: get_credit_note_by_id
      parameters:
        - name: credit_note_id
          in: path
          description: Credit Note ID
          required: true
          schema:
            $ref: '#/components/schemas/CreditNoteId'
          example: cn_123
      responses:
        '200':
          description: Credit note details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditNote'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '404':
          description: Credit note not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
      security:
        - bearer_auth: []
components:
  schemas:
    CreditNoteId:
      type: string
      format: MeteroidId
      examples:
        - crn_7n42DGM5Tflk9n8mt7Fhc7
    CreditNote:
      type: object
      required:
        - id
        - credit_note_number
        - status
        - credit_type
        - customer_id
        - invoice_id
        - invoice_number
        - currency
        - subtotal
        - tax_amount
        - total
        - refunded_amount_cents
        - credited_amount_cents
        - line_items
        - tax_breakdown
        - created_at
        - custom_properties
      properties:
        created_at:
          type: string
          format: date-time
        credit_note_number:
          type: string
        credit_type:
          $ref: '#/components/schemas/CreditType'
        credited_amount_cents:
          type: integer
          format: int64
        currency:
          $ref: '#/components/schemas/Currency'
        custom_properties:
          description: User-defined custom property values, keyed by definition `key`.
        customer_id:
          $ref: '#/components/schemas/CustomerId'
        finalized_at:
          type:
            - string
            - 'null'
          format: date-time
        id:
          $ref: '#/components/schemas/CreditNoteId'
        invoice_id:
          $ref: '#/components/schemas/InvoiceId'
        invoice_number:
          type: string
        line_items:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceLineItem'
        memo:
          type:
            - string
            - 'null'
        plan_version_id:
          oneOf:
            - $ref: '#/components/schemas/PlanVersionId'
            - type: 'null'
        reason:
          type:
            - string
            - 'null'
        refunded_amount_cents:
          type: integer
          format: int64
        status:
          $ref: '#/components/schemas/CreditNoteStatus'
        subscription_id:
          oneOf:
            - $ref: '#/components/schemas/SubscriptionId'
            - type: 'null'
        subtotal:
          type: integer
          format: int64
        tax_amount:
          type: integer
          format: int64
        tax_breakdown:
          type: array
          items:
            $ref: '#/components/schemas/TaxBreakdownItem'
        total:
          type: integer
          format: int64
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
        voided_at:
          type:
            - string
            - 'null'
          format: date-time
    RestErrorResponse:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
    CreditType:
      type: string
      title: CreditType
      enum:
        - CREDIT_TO_BALANCE
        - REFUND
        - DEBT_CANCELLATION
    Currency:
      type: string
      enum:
        - AED
        - AFN
        - ALL
        - AMD
        - ANG
        - AOA
        - ARS
        - AUD
        - AWG
        - AZN
        - BAM
        - BBD
        - BDT
        - BGN
        - BHD
        - BIF
        - BMD
        - BND
        - BOB
        - BRL
        - BSD
        - BTN
        - BWP
        - BYN
        - BZD
        - CAD
        - CDF
        - CHF
        - CLP
        - CNH
        - CNY
        - COP
        - CRC
        - CUC
        - CUP
        - CVE
        - CZK
        - DJF
        - DKK
        - DOP
        - DZD
        - EGP
        - ERN
        - ETB
        - EUR
        - FJD
        - FKP
        - GBP
        - GEL
        - GHS
        - GIP
        - GMD
        - GNF
        - GTQ
        - GYD
        - HKD
        - HNL
        - HRK
        - HTG
        - HUF
        - IDR
        - ILS
        - INR
        - IQD
        - IRR
        - ISK
        - JMD
        - JOD
        - JPY
        - KES
        - KGS
        - KHR
        - KMF
        - KPW
        - KRW
        - KWD
        - KYD
        - KZT
        - LAK
        - LBP
        - LKR
        - LRD
        - LSL
        - LYD
        - MAD
        - MDL
        - MGA
        - MKD
        - MMK
        - MNT
        - MOP
        - MRU
        - MUR
        - MVR
        - MWK
        - MXN
        - MYR
        - MZN
        - NAD
        - NGN
        - NIO
        - NOK
        - NPR
        - NZD
        - OMR
        - PAB
        - PEN
        - PGK
        - PHP
        - PKR
        - PLN
        - PYG
        - QAR
        - RON
        - RSD
        - RUB
        - RWF
        - SAR
        - SBD
        - SCR
        - SDG
        - SEK
        - SGD
        - SHP
        - SLL
        - SOS
        - SRD
        - SSP
        - STD
        - STN
        - SVC
        - SYP
        - SZL
        - THB
        - TJS
        - TMT
        - TND
        - TOP
        - TRY
        - TTD
        - TWD
        - TZS
        - UAH
        - UGX
        - USD
        - UYU
        - UZS
        - VES
        - VND
        - VUV
        - WST
        - XAF
        - XCD
        - XOF
        - XPF
        - YER
        - ZAR
        - ZMW
        - ZWL
      examples:
        - EUR
    CustomerId:
      type: string
      format: MeteroidId
      examples:
        - cus_7n42DGM5Tflk9n8mt7Fhc7
    InvoiceId:
      type: string
      format: MeteroidId
      examples:
        - inv_7n42DGM5Tflk9n8mt7Fhc7
    InvoiceLineItem:
      type: object
      required:
        - name
        - amount_total
        - start_date
        - end_date
        - tax_rate
        - sub_line_items
      properties:
        amount_total:
          type: integer
          format: int64
        credit_unit:
          oneOf:
            - $ref: '#/components/schemas/InvoiceLineCreditUnit'
              description: >-
                Usage priced in a credit unit. The line's money amounts then
                only carry the credits the

                customer's balance in that unit did not cover, billed at `rate`.
            - type: 'null'
        description:
          type:
            - string
            - 'null'
        end_date:
          type: string
          format: date
        name:
          type: string
        quantity:
          type: string
          format: decimal
        quoted_unit_price:
          type: string
          format: decimal
          description: >-
            The tax-included unit price the customer was quoted, on a line
            billed from

            tax-inclusive prices. `unit_price` is its net counterpart.
        start_date:
          type: string
          format: date
        sub_line_items:
          type: array
          items:
            $ref: '#/components/schemas/SubLineItem'
        tax_rate:
          type: string
          format: decimal
        unit_price:
          type: string
          format: decimal
    PlanVersionId:
      type: string
      format: MeteroidId
      examples:
        - plv_7n42DGM5Tflk9n8mt7Fhc7
    CreditNoteStatus:
      type: string
      title: CreditNoteStatus
      enum:
        - DRAFT
        - FINALIZED
        - VOIDED
    SubscriptionId:
      type: string
      format: MeteroidId
      examples:
        - sub_7n42DGM5Tflk9n8mt7Fhc7
    TaxBreakdownItem:
      type: object
      required:
        - taxable_amount
        - tax_amount
        - tax_rate
        - name
      properties:
        exemption_reason:
          type:
            - string
            - 'null'
          description: >-
            Free-text legal exemption mention (EU exempt/reverse-charge
            invoices).
        exemption_type:
          oneOf:
            - $ref: '#/components/schemas/TaxExemptionType'
            - type: 'null'
        name:
          type: string
        tax_amount:
          type: integer
          format: int64
        tax_rate:
          type: string
          format: decimal
        tax_reference:
          type:
            - string
            - 'null'
          description: >-
            Accounting/reporting code of the tax rate for this line, for
            exports.
        taxable_amount:
          type: integer
          format: int64
    ErrorCode:
      type: string
      enum:
        - BAD_REQUEST
        - NOT_FOUND
        - CONFLICT
        - FORBIDDEN
        - UNAUTHORIZED
        - TOKEN_EXPIRED
        - TOO_MANY_REQUESTS
        - INTERNAL_SERVER_ERROR
    InvoiceLineCreditUnit:
      type: object
      description: >-
        How a usage line priced in a credit unit was paid: the credits it
        consumed, those the

        customer's balance in the unit covered, and the rate the rest was billed
        at.
      required:
        - code
        - precision
        - rate
        - consumed
        - covered
      properties:
        code:
          type: string
          description: The credit unit's code, e.g. `CREDITS`.
        consumed:
          type: integer
          format: int64
          description: Credits the usage priced.
        covered:
          type: integer
          format: int64
          description: Of which paid by the customer's credit wallet.
        precision:
          type: integer
          format: int32
          description: Credit amounts are integers in 10^-precision credit.
          minimum: 0
        rate:
          type: string
          format: decimal
          description: Invoice-currency major units per credit.
        unit_price:
          type:
            - string
            - 'null'
          format: decimal
          description: Credits per usage unit.
    SubLineItem:
      type: object
      required:
        - id
        - name
        - total
        - quantity
        - unit_price
      properties:
        id:
          type: string
        name:
          type: string
        quantity:
          type: string
          format: decimal
        total:
          type: integer
          format: int64
        unit_price:
          type: string
          format: decimal
    TaxExemptionType:
      type: string
      enum:
        - REVERSE_CHARGE
        - TAX_EXEMPT
        - NOT_REGISTERED
        - EXPORT
        - NO_VAT_TERRITORY
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer

````

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