---
title: "Create Credit Note By Queue"
method: POST
path: "/api/v1/CreditNotes/queue"
tags: ["CreditNotes"]
---

# Create Credit Note By Queue

`POST /api/v1/CreditNotes/queue`

## Headers

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

## Request body

- PeakAPIsLibraryModelRequestCreditNotesCreditNotesPostQueueModel
  - `peakCreditNotes` PeakAPIsLibraryModelRequestCreditNotesCreditNotesPostQueueModelCreditNotes
    - `creditNotes` PeakAPIsLibraryModelRequestTransactionSharedCreditNotesTransaction[]
      - `transactionType` integer — The numerical code indicating the type of document for issuing a credit note
      - `transactionId` string — The Unique Identifier of the document for which a credit note is to be issued
      - `transactionCode` string — The code of the document for which a credit note is to be issued
      - `reasonType` integer — The numerical code indicating the reason for issuing a credit note
      - `creditNoteStyleType` integer — The numerical code indicating the type of credit note display
      - `reasonDescription` string — The description of reason for issuing a credit note
      - `goodsReturn` integer — The numerical code that indicates whether this credit note involves a product return or not
      - `transactions` PeakAPIsLibraryModelRequestTransactionSharedNormalTransactions
        - `code` string — The code displayed in the PEAK. If no value is provided, PEAK will generate it automatically
        - `issuedDate` string — 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` integer — 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` integer — 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[] — An array of objects that will contain various data for the list of products or services
          - `id` string
          - `productId` string
          - `productCode` string
          - `description` string
          - `accountCode` string
          - `accountSubId` string
          - `accountSubCode` string
          - `quantity` number, double
          - `price` number, double
          - `discount` string
          - `vatType` integer
          - `isDescription` integer
          - `withHoldingTaxAmount` string
        - `paidPayments` PeakAPIsLibraryModelRequestTransactionSharedNormalPaymentsTransaction
          - `payments` PeakAPIsLibraryModelRequestTransactionSharedNormalPayment[] — The object with payment details
            - `cheque` PeakAPIsLibraryModelRequestTransactionSharedNormalCheque
              - …
            - `note` string — Additional remarks or notes for that specific payment received
            - `isCheque` integer — 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
        - `status` string — Status of the document, which can have multiple states such as Draft, Approve, Voided, etc
        - `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` integer
          - `exchangeRate` number, double
        - `receivedTaxInvoice` PeakAPIsLibraryModelRequestTransactionSharedNormalReceivedTaxInvoiceTransaction
          - `taxInvoiceNumber` string
          - `taxInvoiceDate` string
          - `journalDate` string
          - `periodDate` string
      - `creditNotePayment` PeakAPIsLibraryModelRequestTransactionSharedCreditNotePayment
        - `paidCredits` PeakAPIsLibraryModelRequestTransactionSharedPaidCredit
        - `returnPayments` PeakAPIsLibraryModelRequestTransactionSharedNormalPaymentsTransaction
          - `payments` PeakAPIsLibraryModelRequestTransactionSharedNormalPayment[] — The object with payment details
            - `cheque` PeakAPIsLibraryModelRequestTransactionSharedNormalCheque
              - …
            - `note` string — Additional remarks or notes for that specific payment received
            - `isCheque` integer — 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
    - `keyReference` string
    - `url` string

## Response `200`

Success

- PeakAPIsLibraryModelResponseQueueResponseQueueModel
  - `resCode` string
  - `resDesc` string
  - `queueId` string

---

[API](https://skmtc.net/peakaccount/apis/peakapis-core.md) · [All operations](https://skmtc.net/peakaccount/apis/peakapis-core/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/peakaccount/peakapis-core/versions/516e79534d77/schema)
