Orb

Orb Credit note API

The [Credit Note](/invoicing/credit-notes) resource represents a credit that has been applied to a particular invoice.

GitHub OpenAPI

Operations 3

GET /credit_notes List credit notes #
POST /credit_notes Create credit note #
GET /credit_notes/{credit_note_id} Fetch credit note #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/orb-billing:orb-billing-credit-note-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

orb-billing-credit-note-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reference Credit note API
  description: 'Orb''s API is built with the following principles in mind:


    1. **Predictable developer experience**: Where applicable, the Orb API uses industry-standard patterns such as

    cursor-based pagination and standardized error output. To help with debugging in critical API

    actions, the API always strives to provide detailed and actionable error messages. Aliases

    such as external customer IDs aid in fast integration times.

    2. **Reliably real time**: Orb''s event-based APIs, such as event ingestion are designed to handle extremely high

    throughput and scale with concurrent load. Orb also provides a real-time event-level credits

    ledger and a highly performant webhooks architecture.

    3. **Flexibility at the forefront**: Features like timezone localization and the ability to amend historical usage

    show the flexible nature of the platform.


    You can download the latest OpenAPI spec here - pass `?version=3.0` for an

    OpenAPI 3.0-compatible spec.'
  contact:
    name: Orb, Inc.
    url: https://www.withorb.com/
    email: team@withorb.com
  version: '1.0'
servers:
- url: https://api.withorb.com/v1
  description: Production server
security:
- APIKeyAuth: []
tags:
- name: Credit note
  description: 'The Credit Note resource represents a credit that has been applied to a

    particular invoice.'
paths:
  /credit_notes:
    get:
      tags:
      - Credit note
      summary: List credit notes
      description: 'Get a paginated list of CreditNotes. Users can also filter by

        customer_id, subscription_id, or external_customer_id. The credit notes will be returned

        in reverse chronological order by `creation_time`.'
      operationId: list-credit-notes
      parameters:
      - required: false
        style: form
        schema:
          type: integer
          maximum: 100.0
          minimum: 1.0
          title: Limit
          description: The number of items to fetch. Defaults to 20.
          default: 20
        name: limit
        in: query
      - required: false
        style: form
        schema:
          oneOf:
          - type: string
          - type: 'null'
          title: Cursor
          description: Cursor for pagination. This can be populated by the `next_cursor` value returned from the initial request.
        name: cursor
        in: query
      - required: false
        style: form
        schema:
          oneOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At[Gte]
        name: created_at[gte]
        in: query
      - required: false
        style: form
        schema:
          oneOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At[Gt]
        name: created_at[gt]
        in: query
      - required: false
        style: form
        schema:
          oneOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At[Lt]
        name: created_at[lt]
        in: query
      - required: false
        style: form
        schema:
          oneOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At[Lte]
        name: created_at[lte]
        in: query
      responses:
        '200':
          description: OK
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditNotes'
        '400':
          description: Bad Request
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400Error'
        '401':
          description: Unauthorized
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/401Error'
        '404':
          description: Not Found
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Error'
        '409':
          description: Conflict
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/409Error'
        '413':
          description: Content Too Large
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/413Error'
        '429':
          description: Too Many Requests
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/429Error'
        '500':
          description: Internal Server Error
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/500Error'
    post:
      tags:
      - Credit note
      summary: Create credit note
      description: 'This endpoint is used to create a single `Credit Note`.


        The credit note service period configuration supports two explicit modes:


        1. Global service periods: Specify start_date and end_date at the credit note level.

        These dates will be applied to all line items uniformly.


        2. Individual service periods: Specify start_date and end_date for each line item.

        When using this mode, ALL line items must have individual periods specified.


        3. Default behavior: If no service periods are specified (neither global nor individual),

        the original invoice line item service periods will be used.


        Note: Mixing global and individual service periods in the same request is not allowed

        to prevent confusion.


        Service period dates are normalized to the start of the day in the customer''s timezone to ensure

        consistent handling across different timezones.


        Date Format: Use start_date and end_date with format "YYYY-MM-DD" (e.g., "2023-09-22")

        to match other Orb APIs like /v1/invoice_line_items.


        Note: Both start_date and end_date are inclusive - the service period will cover both

        the start date and end date completely (from start of start_date to end of end_date).'
      operationId: create-credit-note
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCreditNoteParams'
        required: true
      responses:
        '201':
          description: Created
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditNote'
        '400':
          description: Bad Request
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400Error'
        '401':
          description: Unauthorized
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/401Error'
        '404':
          description: Not Found
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Error'
        '409':
          description: Conflict
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/409Error'
        '413':
          description: Content Too Large
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/413Error'
        '429':
          description: Too Many Requests
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/429Error'
        '500':
          description: Internal Server Error
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/500Error'
  /credit_notes/{credit_note_id}:
    get:
      tags:
      - Credit note
      summary: Fetch credit note
      description: This endpoint is used to fetch a single `Credit Note` given an identifier.
      operationId: fetch-credit-note
      parameters:
      - required: true
        style: simple
        schema:
          type: string
        name: credit_note_id
        in: path
      responses:
        '200':
          description: OK
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditNote'
        '400':
          description: Bad Request
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400Error'
        '401':
          description: Unauthorized
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/401Error'
        '404':
          description: Not Found
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Error'
        '409':
          description: Conflict
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/409Error'
        '413':
          description: Content Too Large
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/413Error'
        '429':
          description: Too Many Requests
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/429Error'
        '500':
          description: Internal Server Error
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/500Error'
components:
  schemas:
    RequestTooLargeError:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#413-request-too-large
          title: Type
        status:
          type: integer
          enum:
          - 413
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          oneOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      required:
      - type
      - status
      title: RequestTooLargeError
    401Error:
      $ref: '#/components/schemas/AuthorizationError'
      title: 401Error
    CreditNoteLineItemParams:
      properties:
        invoice_line_item_id:
          type: string
          title: Invoice Line Item Id
          description: The ID of the line item to credit.
          examples:
          - 4khy3nwzktxv7
        amount:
          type: string
          title: Amount
          description: The total amount in the invoice's currency to credit this line item.
        start_date:
          oneOf:
          - type: string
            format: date
          - type: 'null'
          title: Start Date
          description: A date string to specify this line item's credit note service period start date in the customer's timezone. If provided, this will be used for this specific line item. If not provided, will use the global start_date if available, otherwise defaults to the original invoice line item's start date. This date is inclusive.
          examples:
          - '2023-09-22'
        end_date:
          oneOf:
          - type: string
            format: date
          - type: 'null'
          title: End Date
          description: A date string to specify this line item's credit note service period end date in the customer's timezone. If provided, this will be used for this specific line item. If not provided, will use the global end_date if available, otherwise defaults to the original invoice line item's end date. This date is inclusive.
          examples:
          - '2023-09-22'
      type: object
      required:
      - invoice_line_item_id
      - amount
      title: CreditNoteLineItemParams
    AuthorizationError:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#401-authentication-error
          title: Type
        status:
          type: integer
          enum:
          - 401
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          oneOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      required:
      - type
      - status
      title: AuthorizationError
    429Error:
      $ref: '#/components/schemas/TooManyRequests'
      title: 429Error
    CreditNotes:
      properties:
        data:
          items:
            $ref: '#/components/schemas/CreditNote'
          type: array
          title: Data
        pagination_metadata:
          $ref: '#/components/schemas/PaginationMetadata'
      type: object
      required:
      - data
      - pagination_metadata
      title: CreditNotes
    FeatureNotAvailableError:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#404-feature-not-available
          title: Type
        status:
          type: integer
          enum:
          - 400
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          oneOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      required:
      - type
      - status
      title: FeatureNotAvailableError
    413Error:
      oneOf:
      - $ref: '#/components/schemas/RequestTooLargeError'
      - $ref: '#/components/schemas/ResourceTooLargeError'
      - $ref: '#/components/schemas/TooManyResultsError'
    CreditNoteLineItemDiscount:
      properties:
        id:
          type: string
          title: Id
        discount_type:
          type: string
          enum:
          - percentage
          - amount
          title: Discount Type
        percentage_discount:
          type: number
          title: Percentage Discount
        amount_discount:
          oneOf:
          - type: string
          - type: 'null'
          title: Amount Discount
        amount_applied:
          type: string
          title: Amount Applied
        reason:
          oneOf:
          - type: string
          - type: 'null'
          title: Reason
        applies_to_price_ids:
          items:
            type: string
          type: array
          title: Applies To Price Ids
      type: object
      required:
      - id
      - discount_type
      - percentage_discount
      - amount_applied
      - applies_to_price_ids
      title: CreditNoteLineItemDiscount
    IdempotencyRequestMismatch:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#409-resource-conflict
          title: Type
        status:
          type: integer
          enum:
          - 409
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          oneOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      required:
      - type
      - status
      title: IdempotencyRequestMismatch
    CreditNoteDiscount:
      properties:
        discount_type:
          type: string
          enum:
          - percentage
          title: Discount Type
        percentage_discount:
          type: number
          title: Percentage Discount
        amount_applied:
          type: string
          title: Amount Applied
        reason:
          oneOf:
          - type: string
          - type: 'null'
          title: Reason
        applies_to_prices:
          oneOf:
          - items:
              $ref: '#/components/schemas/CreditNoteDiscountAppliesToPrice'
            type: array
          - type: 'null'
          title: Applies To Prices
      type: object
      required:
      - discount_type
      - percentage_discount
      - amount_applied
      title: CreditNoteDiscount
    CreditNoteLineItem:
      properties:
        id:
          type: string
          title: Id
          description: The Orb id of this resource.
        name:
          type: string
          title: Name
          description: The name of the corresponding invoice line item.
        subtotal:
          type: string
          title: Subtotal
          description: The amount of the line item, excluding any line item minimums and discounts.
        amount:
          type: string
          title: Amount
          description: The amount of the line item, including any line item minimums and discounts.
        quantity:
          oneOf:
          - type: number
          - type: 'null'
          title: Quantity
          description: An optional quantity credited.
        discounts:
          items:
            $ref: '#/components/schemas/CreditNoteLineItemDiscount'
          type: array
          title: Discounts
          description: Any line item discounts from the invoice's line item.
          default: []
        tax_amounts:
          items:
            $ref: '#/components/schemas/TaxAmount'
          type: array
          title: Tax Amounts
          description: Any tax amounts applied onto the line item.
        item_id:
          type: string
          title: Item Id
          description: The id of the item associated with this line item.
        start_time_inclusive:
          oneOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Start Time Inclusive
          description: The start time of the service period for this credit note line item.
        end_time_exclusive:
          oneOf:
          - type: string
            format: date-time
          - type: 'null'
          title: End Time Exclusive
          description: The end time of the service period for this credit note line item.
      type: object
      required:
      - id
      - name
      - subtotal
      - amount
      - quantity
      - tax_amounts
      - item_id
      title: CreditNoteLineItem
    TooManyRequests:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#429-too-many-requests
          title: Type
        status:
          type: integer
          enum:
          - 429
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          oneOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      required:
      - type
      - status
      title: TooManyRequests
    CreditNote:
      properties:
        id:
          type: string
          title: Id
          description: The Orb id of this credit note.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: The creation time of the resource in Orb.
        voided_at:
          oneOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Voided At
          description: The time at which the credit note was voided in Orb, if applicable.
        credit_note_number:
          type: string
          title: Credit Note Number
          description: The unique identifier for credit notes.
        invoice_id:
          type: string
          title: Invoice Id
          description: The id of the invoice resource that this credit note is applied to.
        memo:
          oneOf:
          - type: string
          - type: 'null'
          title: Memo
          description: An optional memo supplied on the credit note.
        reason:
          oneOf:
          - type: string
            enum:
            - Duplicate
            - Fraudulent
            - Order change
            - Product unsatisfactory
          - type: 'null'
          title: Reason
        type:
          type: string
          enum:
          - refund
          - adjustment
          title: Type
        subtotal:
          type: string
          title: Subtotal
          description: The total prior to any creditable invoice-level discounts or minimums.
        total:
          type: string
          title: Total
          description: The total including creditable invoice-level discounts or minimums, and tax.
        customer:
          $ref: '#/components/schemas/CustomerMinified'
        credit_note_pdf:
          oneOf:
          - type: string
          - type: 'null'
          title: Credit Note Pdf
          description: A URL to a PDF of the credit note.
        minimum_amount_refunded:
          oneOf:
          - type: string
          - type: 'null'
          title: Minimum Amount Refunded
          description: Any credited amount from the applied minimum on the invoice.
        discounts:
          items:
            $ref: '#/components/schemas/CreditNoteDiscount'
          type: array
          title: Discounts
          description: Any discounts applied on the original invoice.
          default: []
        maximum_amount_adjustment:
          oneOf:
          - $ref: '#/components/schemas/CreditNoteDiscount'
          - type: 'null'
          description: The maximum amount applied on the original invoice
        line_items:
          items:
            $ref: '#/components/schemas/CreditNoteLineItem'
          type: array
          title: Line Items
          description: All of the line items associated with this credit note.
      type: object
      required:
      - id
      - created_at
      - voided_at
      - credit_note_number
      - invoice_id
      - memo
      - reason
      - type
      - subtotal
      - total
      - customer
      - credit_note_pdf
      - minimum_amount_refunded
      - maximum_amount_adjustment
      - line_items
      title: CreditNote
      description: 'The [Credit Note](/invoicing/credit-notes) resource represents a credit that has been applied to a

        particular invoice.'
    ResourceTooLargeError:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#413-resource-too-large
          title: Type
        status:
          type: integer
          enum:
          - 413
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          oneOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      required:
      - type
      - status
      title: ResourceTooLargeError
    409Error:
      $ref: '#/components/schemas/IdempotencyRequestMismatch'
      title: 409Error
    TooManyResultsError:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#413-too-many-results
          title: Type
        status:
          type: integer
          enum:
          - 413
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          oneOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      required:
      - type
      - status
      title: TooManyResultsError
    PaginationMetadata:
      properties:
        has_more:
          type: boolean
          title: Has More
        next_cursor:
          oneOf:
          - type: string
          - type: 'null'
          title: Next Cursor
      type: object
      required:
      - has_more
      - next_cursor
      title: PaginationMetadata
    CustomerMinified:
      properties:
        id:
          type: string
          title: Id
        external_customer_id:
          oneOf:
          - type: string
          - type: 'null'
          title: External Customer Id
      type: object
      required:
      - id
      - external_customer_id
      title: CustomerMinified
    404Error:
      oneOf:
      - $ref: '#/components/schemas/FeatureNotAvailableError'
      - $ref: '#/components/schemas/ResourceNotFoundError'
      - $ref: '#/components/schemas/URLNotFound'
    ResourceNotFoundError:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#404-resource-not-found
          title: Type
        status:
          type: integer
          enum:
          - 404
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          type: string
          title: Title
      type: object
      required:
      - type
      - status
      - title
      title: ResourceNotFoundError
    ServerError:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#500-internal-server-error
          title: Type
        status:
          type: integer
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          oneOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      required:
      - type
      - status
      title: ServerError
    URLNotFound:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#404-url-not-found
          title: Type
        status:
          type: integer
          enum:
          - 404
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          oneOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      required:
      - type
      - status
      title: URLNotFound
    CreditNoteDiscountAppliesToPrice:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
      - id
      - name
      title: CreditNoteDiscountAppliesToPrice
    DuplicateResourceCreationError:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#400-duplicate-resource-creation
          title: Type
        status:
          type: integer
          enum:
          - 400
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          oneOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      required:
      - type
      - status
      title: DuplicateResourceCreationError
    RequestValidationError:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#400-request-validation-errors
          title: Type
        status:
          type: integer
          enum:
          - 400
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          oneOf:
          - type: string
          - type: 'null'
          title: Title
        validation_errors:
          items: {}
          type: array
          title: Validation Errors
      type: object
      required:
      - type
      - status
      - validation_errors
      title: RequestValidationError
    400Error:
      oneOf:
      - $ref: '#/components/schemas/ConstraintViolationError'
      - $ref: '#/components/schemas/DuplicateResourceCreationError'
      - $ref: '#/components/schemas/RequestValidationError'
    500Error:
      $ref: '#/components/schemas/ServerError'
      title: 500Error
    ConstraintViolationError:
      properties:
        type:
          type: string
          enum:
          - https://docs.withorb.com/reference/error-responses#400-constraint-violation
          title: Type
        status:
          type: integer
          enum:
          - 400
          title: Status
        detail:
          oneOf:
          - type: string
          - type: 'null'
          title: Detail
        title:
          oneOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      required:
      - type
      - status
      title: ConstraintViolationError
    TaxabilityReason:
      type: string
      enum:
      - taxed
      - reverse_charge
      - customer_exempt
      - product_exempt
      - not_registered
      - zero_rated
      - not_taxed_other
      title: TaxabilityReason
    CreateCreditNoteParams:
      properties:
        line_items:
          items:
            $ref: '#/components/schemas/CreditNoteLineItemParams'
          type: array
          minItems: 1
          title: Line Items
        reason:
          type: string
          enum:
          - duplicate
          - fraudulent
          - order_change
          - product_unsatisfactory
          title: Reason
          description: An optional reason for the credit note.
          examples:
          - duplicate
          - fraudulent
          - order_change
          - product_unsatisfactory
        memo:
          oneOf:
          - type: string
          - type: 'null'
          title: Memo
          description: An optional memo to attach to the credit note.
          examples:
          - An optional memo for my credit note.
        start_date:
          oneOf:
          - type: string
            format: date
          - type: 'null'
          title: Start Date
          description: A date string to specify the global credit note service period start date in the customer's timezone. This will be applied to all line items that don't have their own individual service periods specified. If not provided, line items will use their original invoice line item service periods. This date is inclusive.
          examples:
          - '2023-09-22'
        end_date:
          oneOf:
          - type: string
            format: date
          - type: 'null'
          title: End Date
          description: A date string to specify the global credit note service period end date in the customer's timezone. This will be applied to all line items that don't have their own individual service periods specified. If not provided, line items will use their original invoice line item service periods. This date is inclusive.
          examples:
          - '2023-09-22'
      additionalProperties: false
      type: object
      required:
      - line_items
      - reason
      title: CreateCreditNoteParams
    TaxAmount:
      properties:
        tax_rate_description:
          type: string
          title: Tax Rate Description
          description: The human-readable description of the applied tax rate.
        tax_rate_percentage:
          oneOf:
          - type: string
          - type: 'null'
          title: Tax Rate Percentage
          description: The tax rate percentage, out of 100.
        amount:
          type: string
          title: Amount
          description: The amount of additional tax incurred by this tax rate.
        tax_reason:
          oneOf:
          - $ref: '#/components/schemas/TaxabilityReason'
          - type: 'null'
          description: Why this tax was or was not charged, such as reverse_charge or customer_exempt. Null on tax calculated before reasons were recorded.
      type: object
      required:
      - tax_rate_description
      - tax_rate_percentage
      - amount
      title: TaxAmount
  securitySchemes:
    APIKeyAuth:
      type: http
      description: API Keys can be issued in the Orb's web application.
      scheme: bearer