---
title: "Create Invoice By Quotation (Queue)"
method: POST
path: "/api/v1/Invoices/createbyquotationqueue"
tags: ["Invoices"]
---

# Create Invoice By Quotation (Queue)

`POST /api/v1/Invoices/createbyquotationqueue`

## Headers

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

## Request body

- PeakAPIsLibraryModelRequestTransactionInvoicesInvoicesByQuotationQueueModel
  - `peakInvoices` PeakAPIsLibraryModelRequestTransactionInvoicesInvoicesByQuotationQueueModelInvoices
    - `quotationId` string — The Unique Identifier of the quotation to be referenced
    - `quotationCode` string — The code of the quotation to be referenced
    - `invoices` PeakAPIsLibraryModelRequestTransactionSharedAllInOneTransactionsAllInOne
      - `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
      - `contact` PeakAPIsLibraryModelRequestContactsContacts
        - `name` string — Contact name
        - `type` integer — Type of contact
        - `prefixNameType` integer — If the value of "type" is 5 (Individual/Person), the "prefixNameType" field is a required variable that indicates the prefix of the contact's name
        - `prefixNameOther` string — If the value of "prefixNameType" is 6 (Other), the "prefixNameOther" field is a required variable that indicates the custom prefix for the contact's name
        - `taxNumber` string — Tax Identification Number (TIN)
        - `branchCode` string — The 5-digit number that identifies the branch of your contact's business
        - `address` string — The address registered for the branch.
        - `subDistrict` string — Sub-district of the contact's address
        - `district` string — District of the contact's address
        - `province` string — Province of the contact's address
        - `country` string — Country of the contact's address
        - `postCode` string — Post code of the contact's address
        - `callCenterNumber` string
        - `faxNumber` string
        - `email` string — Email address of the contact
        - `website` string
        - `contactFirstName` string — First name of the contactable person
        - `contactLastName` string — Last name of the contactable person
        - `contactNickName` string — Nickname of the contactable person
        - `contactPosition` string — Position of the contactable person
        - `contactPhoneNumber` string — Phone number of the contactable person
        - `contactEmail` string — Email of the contactable person
        - `purchaseAccount` string — If the contact is a seller, PEAK will record the transaction in this account
        - `sellAccount` string — If the contact is a buyer, PEAK will record the transaction in this account
        - `bankAccount` PeakAPIsLibraryModelRequestContactsContactBankAccount
          - `bankId` integer
          - `bankBranch` string
          - `bankAccountNo` string
          - `bankAccountName` string
        - `id` string — The Unique Identifier will generated by PEAK for referencing the contacts
        - `code` string — Code of the contact that will be displayed in PEAK
      - `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
      - `status` string — Status of the document, which can have multiple states such as Draft, Approve, Voided, etc
      - `products` PeakAPIsLibraryModelRequestTransactionSharedAllInOneProductsTransactionAllInOne[] — An array of objects that will contain various data for the list of products or services
        - `id` string
        - `productTemplate` PeakAPIsLibraryModelRequestProductsServicesProductsServices
          - `id` string — The Unique Identifier generated by PEAK to identify data
          - `name` string — Product/Service name
          - `type` integer — Numeric code indicate whether it is a product or a service
          - `code` string — The code displayed in the PEAK
          - `purchaseValue` number, double — Purchase price per unit
          - `purchaseVatType` integer — Purchase tax rate
          - `purchaseAccount` string — Account used to record purchase transactions
          - `sellValue` number, double — Selling price per unit
          - `sellVatType` integer — Selling tax rate
          - `sellAccount` string — Account used to record selling transactions
          - `description` string — Additional description of the product/service
          - `carryingBalanceValue` number, double
          - `carryingBalanceAmount` number, double
          - `unit` PeakAPIsLibraryModelEcoSystemResponseProductAPIUnitModel
            - `id` string
            - `code` string
            - `nameTh` string
            - `nameEn` string
        - `description` string
        - `accountCode` string
        - `accountSubId` string
        - `accountSubCode` string
        - `quantity` number, double
        - `price` number, double
        - `discount` string
        - `vatType` integer
        - `isDescription` integer
        - `withHoldingTaxAmount` string
      - `paidPayments` PeakAPIsLibraryModelRequestTransactionSharedAllInOnePaymentsTransactionAllInOne
        - `payments` PeakAPIsLibraryModelRequestTransactionSharedAllInOnePayment[]
          - `cheque` PeakAPIsLibraryModelRequestTransactionSharedAllInOneCheque
            - `accountNo` string — Bank account number
            - `branchNo` string — Bank branch number
            - `chequeNo` string — Cheque number
            - `amount` number, double — Payment amount
            - `chequeDate` string — Cheque issuance date in the format yyyyMMdd
            - `bankId` integer — The numerical code that indicates a financial institution
            - `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)
          - `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
          - `paymentMethod` PeakAPIsLibraryModelRequestPaymentMethodsPaymentMethods
            - `id` string — The Unique Identifier generated by PEAK to identify data
            - `code` string — The code displayed in the PEAK
            - `name` string — Payment method name
            - `type` integer — Numeric code indicating the type of payment method
            - `memo` string — Additional notes or remarks about the product or service
            - `carringBalanceValue` integer
            - `bankId` integer — The numerical code that indicates a financial institution (If type is 2, bankId is required)
            - `eWalletId` integer — E-Wallet account number or identifier (If type is 4, accountCode is required)
            - `bankName` string — Name of the bank not available in the system (If type is 0, bankName is required)
            - `accountType` integer — Numeric code indicating the type of bank account
            - `accountNumber` string — Bank account number
            - `isHaveCheque` integer — Specify that it is a checking account capable of issuing checks from that bank account
            - `accountCode` string — Account to record transactions from the E-Wallet (If type is 4, accountCode is 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
        - `transactionId` string — The Unique Identifier of the document for which payment is requested
      - `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
    - `keyReference` string — The key used to reference the incoming request sent to PEAK for easier matching of the response and request
    - `url` string — The URL that will be used to receive the response after the system has finished processing

## 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)
