---
title: "Create Invoice Payment All In One"
method: POST
path: "/api/v1/Invoices/paidpaymentallinone"
tags: ["Invoices"]
---

# Create Invoice Payment All In One

`POST /api/v1/Invoices/paidpaymentallinone`

## Request

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

## Headers

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

## Request body

- object
  - `peakPaidPayments` object, required
    - `transactionId` string: The Unique Identifier of the document for which payment is requested (Required if transactionCode is not provided)
    - `transactionCode` string: The Code of the document for which payment is requested (Required if transactionId is not provided)
    - `paidPayments` object, required
      - `payments` object[], required
        - `cheque` object
          - `accountNo` string, required: Bank account number
          - `branchNo` string: Bank branch number
          - `chequeNo` string, required: Cheque number
          - `amount` number, double, required: Amount specified in the Cheque
          - `chequeDate` string, required: Cheque issuance date in the format yyyyMMdd
          - `bankId` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37, required: The numerical code that indicates a financial institution
          - `paymentMethodId` string: The Unique Identifier of the payment method used to record the Cheque payment
          - `paymentMethodCode` string: The Code of the payment method used to record the Cheque payment
        - `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
        - `paymentMethod` object
          - `id` string: The Unique Identifier generated by PEAK to identify data
          - `code` string, required: The code displayed in the PEAK
          - `name` string, required: Payment method name
          - `type` 0 | 1 | 2 | 3 | 4, required: Numeric code indicating the type of payment method
          - `memo` string: Additional notes or remarks about the product or service
          - `carringBalanceValue` integer: Opening balance of the bank account
          - `bankId` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37: The numerical code that indicates a financial institution (If type is 2, bankId is required)
          - `eWalletId` 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: 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` 0 | 1 | 2 | 3: Numeric code indicating the type of bank account
          - `accountNumber` string: Bank account number
          - `isHaveCheque` 0 | 1: 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, 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%")
      - `transactionId` string: The Unique Identifier of the document for which payment is requested (Required if transactionCode is not provided)

## Response `200`

Success

- PeakWCFModelsAPIResponseResponsePaidPaymentsModel
  - `peakPaidPayments` PeakWCFModelsAPIBodyAPIBodyPaidPayment
    - `resCode` string
    - `resDesc` string
    - `transactionId` string
    - `transactionCode` 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
          - `chequeDate` string
          - `paymentMethodId` string
          - `paymentMethodCode` string
          - `bankId` integer
          - `bankName` string
          - `amount` number, double
          - `chequeNo` string
          - `branchNo` string
          - `accountNo` string
          - `isDeposited` integer
      - `journals` PeakWCFModelsAPIAPITransactionsAPITransactionJournals[]
        - `id` string
        - `code` string
      - `referenceCode` string
      - `referenceId` string
      - `referenceType` string
    - `paymentAmount` number, double
    - `remainPaymentAmount` number, double
    - `remainWhtAmount` number, double
  - `eventType` string
  - `apiType` string

## Changes

- **2026-11-03** `433c913c750f`: 23 breaking, 6 warning, 125 info
  - removed the media type `application/*+json` from the request body
  - removed the media type `application/json-patch+json` from the request body
  - removed the media type `text/json` from the request body
  - request property `peakPaidPayments/paidPayments/payments/items/cheque/bankId` was restricted to a list of enum values
  - …150 more

[Operation history](https://skmtc.dev/peakaccount/apis/peakapis-core/changes/api/v1/Invoices/paidpaymentallinone/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)
