---
title: "Create Credit Note Without Reference"
method: POST
path: "/api/v1/CreditNotes/InsertWithoutReference"
tags: ["CreditNotes"]
---

# Create Credit Note Without Reference

`POST /api/v1/CreditNotes/InsertWithoutReference`

## Request

- Base URL: `https://api.peakaccount.com`
- URL: `https://api.peakaccount.com/api/v1/CreditNotes/InsertWithoutReference`
- Auth: none declared. Required headers: `Time-Stamp`, `Time-Signature`, `User-Token`, `Client-Token`
- TypeScript: <https://skmtc.dev/peakaccount/apis/peakapis-core/docs/api/v1/CreditNotes/InsertWithoutReference/post.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `getResult` 0 | 1: Numeric code indicating whether the result data is returned in the response

## Headers

- `Time-Stamp` string, required
- `Time-Signature` string, required
- `User-Token` string, required
- `Client-Token` string, required

## Request body

- object
  - `peakCreditNotes` object, required
    - `creditNotes` object[], required
      - `reasonType` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10: The numerical code indicating the reason for issuing a credit note
      - `creditNoteStyleType` 0 | 1: The numerical code indicating the type of credit note display
      - `reasonDescription` string: The description of reason for issuing a credit note
      - `goodsReturn` 0 | 1: The numerical code that indicates whether this credit note involves a product return or not
      - `transactions` object, required
        - `code` string: The code displayed in the PEAK. If no value is provided, PEAK will generate it automatically
        - `issuedDate` string, required: Document issuance date
        - `dueDate` string: Document due date, which must be after the document issuance date
        - `contactId` string: Unique Identifier of the contact associated with the document
        - `contactCode` string: Code of the contact associated with the document (If contactId has been assigned a value, contactCode is not required)
        - `reference` string: Reference information of the document
        - `remark` string: Additional remarks or notes
        - `taxStatus` 0 | 1 | 2: Specify the tax status of the document to indicate whether the price includes tax or the tax is separate
        - `discountTotal` string: The total discount should not exceed the net total of the document or be greater than 100%. Additionally, it can only be applied when the tax type of each item is the same
        - `isTaxInvoice` 0 | 1: isTaxInvoice status indicating whether the document can be used as a tax invoice or not
        - `tags` string[]: Label attached to someone or something for the purpose of identification or to give other information
        - `products` PeakAPIsLibraryModelRequestTransactionSharedNormalProductsTransaction[], required: An array of objects that will contain various data for the list of products or services
          - `id` string: The Unique Identifier of an existing line on the document (used when editing a document)
          - `productId` string: The Unique Identifier of the product/service for this line. Send productId or productCode, not both
          - `productCode` string: Code of the product/service for this line, used as an alternative to productId
          - `description` string: Description of the line. Required when isDescription is 1, or when the line has no product/service and no accountCode
          - `accountCode` string: Account code to record this line in. Used when the line is not linked to a product/service
          - `accountSubId` string: The Unique Identifier of the sub account under accountCode. Send accountSubId or accountSubCode, not both
          - `accountSubCode` string: Code of the sub account under accountCode, used as an alternative to accountSubId
          - `quantity` number, double: Quantity of the line. Required unless isDescription is 1
          - `price` number, double: Price per unit of the line. Required unless isDescription is 1
          - `discount` string: Discount of the line, as an amount (e.g. "100") or a percentage (e.g. "10%"). Must not be negative
          - `vatType` 1 | 2 | 3: Numeric code indicating the VAT rate of the line
          - `isDescription` 0 | 1: Numeric code indicating whether this line is a description-only text row
          - `withHoldingTaxAmount` string: Withholding tax of the line, as an amount (e.g. "30") or a percentage of the line net amount (e.g. "3%")
        - `paidPayments` PeakAPIsLibraryModelRequestTransactionSharedNormalPaymentsTransaction
          - `payments` PeakAPIsLibraryModelRequestTransactionSharedNormalPayment[]: The object with payment details
            - `cheque` PeakAPIsLibraryModelRequestTransactionSharedNormalCheque
              - …
            - `note` string: Additional remarks or notes for that specific payment received
            - `isCheque` 0 | 1: The numerical code indicating whether this payment is made by Cheque or not
            - `amount` number, double: Payment amount
            - `paymentMethodId` string: The Unique Identifier of the payment method
            - `paymentMethodCode` string: Code of the payment method (If paymentMethodId has been assigned a value, paymentMethodCode is not required)
            - `accountCode` string: Account code to be used for recording financial transactions
            - `accountSubId` string: Sub account Unique Identifier to be used for recording financial transactions
            - `accountSubCode` string: Sub account code to be used for recording financial transactions
          - `paymentDate` string: Payment date in the format yyyyMMdd
          - `withHoldingTaxAmount` string: Withholding tax deducted from this payment, as an amount (e.g. "30") or a percentage (e.g. "3%")
        - `status` 'Draft' | 'Approve': Status to create the document with: Draft (save as draft) or Approve (create and approve). If omitted, the document is approved
        - `preTaxAmount` number, double: Amount before tax is applied (If value is null, PEAK will calculate it automatically)
        - `vatAmount` number, double: Tax collected from the increased value of products or services (If value is null, PEAK will calculate it automatically)
        - `netAmount` number, double: Total value of the document after tax and discounts have been applied (If value is null, PEAK will calculate it automatically)
        - `currency` PeakAPIsLibraryModelRequestTransactionSharedNormalCurrencyTransaction
          - `currencyId` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48: Numeric code indicating the currency of the document
          - `exchangeRate` number, double: Exchange rate from the document currency to THB. Required for invoices and receipts
        - `receivedTaxInvoice` PeakAPIsLibraryModelRequestTransactionSharedNormalReceivedTaxInvoiceTransaction
          - `taxInvoiceNumber` string: Number of the tax invoice received from the supplier
          - `taxInvoiceDate` string: Date of the tax invoice received from the supplier (yyyyMMdd)
          - `journalDate` string: Date the received tax invoice is recorded (yyyyMMdd)
          - `periodDate` string: Tax period the received tax invoice is claimed in (yyyyMMdd)
      - `creditNotePayment` object
        - `paidCredits` PeakAPIsLibraryModelRequestTransactionSharedPaidCredit
        - `returnPayments` object
          - `payments` object[], required
            - `cheque` PeakAPIsLibraryModelRequestTransactionSharedNormalCheque
              - …
            - `note` string: Additional remarks or notes for that specific payment received
            - `isCheque` 0 | 1: The numerical code indicating whether this payment is made by Cheque or not
            - `amount` number, double, required: Payment amount
            - `paymentMethodId` string: The Unique Identifier of the payment method
            - `paymentMethodCode` string: Code of the payment method (If paymentMethodId has been assigned a value, paymentMethodCode is not required)
            - `accountCode` string: Account code to be used for recording financial transactions
            - `accountSubId` string: Sub account Unique Identifier to be used for recording financial transactions
            - `accountSubCode` string: Sub account code to be used for recording financial transactions
          - `paymentDate` string, required: Payment date in the format yyyyMMdd
          - `withHoldingTaxAmount` string: Withholding tax deducted from this payment, as an amount (e.g. "30") or a percentage (e.g. "3%")

## Response `200`

Success

- PeakWCFModelsAPIResponseResponseCreditNoteModel
  - `peakCreditNotes` PeakWCFModelsAPIBodyAPIBodyCreditNote
    - `creditNotes` PeakWCFModelsAPIAPITransactionsCreditNotesAPICreditNotesModel[]
      - `resCode` string
      - `resDesc` string
      - `id` string
      - `transactionId` string
      - `transactionCode` string
      - `transactionType` integer
      - `creditNoteStyleType` integer
      - `reasonType` integer
      - `reasonDescription` string
      - `goodsReturn` integer
      - `transactions` PeakWCFModelsAPIAPITransactionsAPITransactionsModel
        - `resCode` string
        - `resDesc` string
        - `id` string
        - `code` string
        - `issuedDate` string
        - `dueDate` string
        - `contactId` string
        - `contactCode` string
        - `reference` string
        - `status` string
        - `isTaxInvoice` integer
        - `isVoid` integer
        - `preTaxAmount` number, double
        - `vatAmount` number, double
        - `netAmount` number, double
        - `whtAmount` number, double
        - `paymentAmount` number, double
        - `remainAmount` number, double
        - `remainWhtAmount` number, double
        - `documentLink` string
        - `onlineViewLink` string
        - `isPartialReceipt` integer
        - `remark` string
        - `taxStatus` integer
        - `discountTotal` string
        - `tags` string[]
        - `products` PeakWCFModelsAPIAPITransactionsAPITransactionProducts[]
          - `id` string
          - `productId` string
          - `productCode` string
          - `accountCode` string
          - `accountSubId` string
          - `accountSubCode` string
          - `description` string
          - `quantity` number, double
          - `price` number, double
          - `discount` string
          - `vatType` integer
          - `isDescription` integer
          - `withHoldingTaxAmount` string
        - `paidPayments` PeakWCFModelsAPIAPITransactionsAPITransactionPayments[]
          - `id` string
          - `paymentDate` string
          - `withHoldingTaxAmount` string
          - `paymentGroupId` integer
          - `paymentTotal` number, double
          - `payments` PeakWCFModelsAPIAPITransactionsAPITransactionPaymentLists[]
            - `paymentMethodId` string
            - `paymentMethodCode` string
            - `accountCode` string
            - `accountSubId` string
            - `accountSubCode` string
            - `amount` number, double
            - `note` string
            - `isCheque` integer
            - `cheque` PeakWCFModelsAPIAPITransactionsAPITransactionChequePayment
              - …
          - `journals` PeakWCFModelsAPIAPITransactionsAPITransactionJournals[]
            - `id` string
            - `code` string
          - `referenceCode` string
          - `referenceId` string
          - `referenceType` string
        - `billingNotes` PeakWCFModelsAPIAPITransactionsAPITransactionBillingNotes[]
          - `id` string
          - `code` string
          - `amount` number, double
          - `isPaid` integer
        - `creditNotes` PeakWCFModelsAPIAPITransactionsAPITransactionCreditNotes[]
          - `id` string
          - `code` string
          - `creditAmount` number, double
          - `deductedAmount` number, double
          - `refundedAmount` number, double
        - `journals` PeakWCFModelsAPIAPITransactionsAPITransactionJournals[]
          - `id` string
          - `code` string
        - `referenceCode` string
        - `referenceId` string
        - `referenceType` string
        - `statusId` integer
        - `currency` PeakWCFModelsAPIAPITransactionsAPITransactionCurrency
          - `currencyId` integer
          - `exchangeRate` number, double
        - `receivedTaxInvoice` PeakWCFModelsAPIAPITransactionsAPITransactionReceivedTaxInvoice
          - `taxInvoiceNumber` string
          - `taxInvoiceDate` string
          - `journalDate` string
          - `periodDate` string
        - `isETaxInvoiceSent` integer
      - `creditNotePayment` PeakWCFModelsAPIAPITransactionsCreditNotesAPICreditNotePayments
        - `paidCredits` PeakWCFModelsAPIAPITransactionsCreditNotesAPIPaidCredit
          - `amount` number, double
        - `returnPayments` PeakWCFModelsAPIAPITransactionsAPITransactionPayments[]
          - `id` string
          - `paymentDate` string
          - `withHoldingTaxAmount` string
          - `paymentGroupId` integer
          - `paymentTotal` number, double
          - `payments` PeakWCFModelsAPIAPITransactionsAPITransactionPaymentLists[]
            - `paymentMethodId` string
            - `paymentMethodCode` string
            - `accountCode` string
            - `accountSubId` string
            - `accountSubCode` string
            - `amount` number, double
            - `note` string
            - `isCheque` integer
            - `cheque` PeakWCFModelsAPIAPITransactionsAPITransactionChequePayment
              - …
          - `journals` PeakWCFModelsAPIAPITransactionsAPITransactionJournals[]
            - `id` string
            - `code` string
          - `referenceCode` string
          - `referenceId` string
          - `referenceType` string
      - `preTaxAmount` number, double
      - `netAmount` number, double
      - `vatAmount` number, double
      - `whtAmount` number, double
    - `totalCreditNote` integer
    - `resDesc` string
    - `resCode` string
  - `eventType` string
  - `apiType` string

## Changes

- **2026-11-03** `433c913c750f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/peakaccount/apis/peakapis-core/changes/api/v1/CreditNotes/InsertWithoutReference/post.md)

---

[API](https://skmtc.dev/peakaccount/apis/peakapis-core.md) - [All operations](https://skmtc.dev/peakaccount/apis/peakapis-core/llms.txt) - [OpenAPI document](https://skmtc.dev/peakaccount/apis/peakapis-core/revisions/433c913c750f?raw)
