---
updatedAt: 2026-07-24T07:05:54.000Z
agentTools:
  projectIndex: https://developers.peakaccount.com/llms.txt
---

# Create Billing Note Expense Payment All In One

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "PeakAPIs.Core",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.peakaccount.com",
      "description": "Production"
    },
    {
      "url": "https://peakengineapidev.azurewebsites.net",
      "description": "UAT"
    }
  ],
  "paths": {
    "/api/v1/BillingNotesExpenses/paidpaymentallinone": {
      "post": {
        "tags": [
          "BillingNotesExpenses"
        ],
        "summary": "Create Billing Note Expense Payment All In One",
        "parameters": [
          {
            "name": "Time-Stamp",
            "in": "header",
            "description": "Timestamp (yyyyMMddHHmmss)",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Time-Signature",
            "in": "header",
            "description": "HMAC-SHA1 encrypted Time-Stamp where Secret Key is connectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Token",
            "in": "header",
            "description": "This token will be generated by PEAK.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Client-Token",
            "in": "header",
            "description": "Token used to identify between client and PEAK to call API.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "peakPaidPayments"
                ],
                "type": "object",
                "properties": {
                  "peakPaidPayments": {
                    "required": [
                      "paidPayments"
                    ],
                    "type": "object",
                    "properties": {
                      "transactionId": {
                        "type": "string",
                        "description": "The Unique Identifier of the document for which payment is requested (Required if transactionCode is not provided)"
                      },
                      "transactionCode": {
                        "type": "string",
                        "description": "The Code of the document for which payment is requested (Required if transactionId is not provided)"
                      },
                      "paidPayments": {
                        "required": [
                          "payments",
                          "paymentDate"
                        ],
                        "type": "object",
                        "properties": {
                          "payments": {
                            "type": "array",
                            "items": {
                              "required": [
                                "amount"
                              ],
                              "type": "object",
                              "properties": {
                                "cheque": {
                                  "required": [
                                    "accountNo",
                                    "chequeNo",
                                    "amount",
                                    "chequeDate"
                                  ],
                                  "type": "object",
                                  "properties": {
                                    "accountNo": {
                                      "maxLength": 12,
                                      "type": "string",
                                      "description": "Bank account number"
                                    },
                                    "branchNo": {
                                      "maxLength": 6,
                                      "type": "string",
                                      "description": "Bank branch number"
                                    },
                                    "chequeNo": {
                                      "maxLength": 8,
                                      "type": "string",
                                      "description": "Cheque number"
                                    },
                                    "amount": {
                                      "type": "number",
                                      "description": "Amount specified in the Cheque",
                                      "format": "double"
                                    },
                                    "chequeDate": {
                                      "type": "string",
                                      "description": "Cheque issuance date in the format yyyyMMdd"
                                    },
                                    "bankId": {
                                      "enum": [
                                        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
                                      ],
                                      "type": "integer",
                                      "description": "The numerical code that indicates a financial institution",
                                      "format": "int32",
                                      "x-enumDescriptions": {
                                        "0": "Other / bank not listed (use bankName)",
                                        "1": "Bangkok Bank",
                                        "2": "Kasikornbank",
                                        "3": "Siam Commercial Bank",
                                        "4": "SME Development Bank",
                                        "5": "Krungthai Bank",
                                        "6": "Bank of Ayudhya (Krungsri)",
                                        "7": "Kiatnakin Phatra Bank",
                                        "8": "CIMB Thai Bank",
                                        "9": "TMBThanachart Bank (ttb)",
                                        "10": "TISCO Bank",
                                        "11": "Thai Credit Bank",
                                        "12": "Thanachart / TCAP",
                                        "13": "Bank for Agriculture and Agricultural Cooperatives",
                                        "14": "Export-Import Bank of Thailand",
                                        "15": "United Overseas Bank (Thai)",
                                        "16": "Land and Houses Bank",
                                        "17": "Standard Chartered Bank (Thai)",
                                        "18": "Government Savings Bank",
                                        "20": "Islamic Bank of Thailand",
                                        "21": "Industrial and Commercial Bank of China (Thai)",
                                        "22": "J.P. Morgan Chase Bank",
                                        "23": "Citibank",
                                        "24": "Sumitomo Mitsui Banking Corporation",
                                        "25": "Deutsche Bank",
                                        "26": "BNP Paribas",
                                        "27": "Mizuho Bank",
                                        "28": "Mega International Commercial Bank",
                                        "29": "Bank of China (Thai)",
                                        "30": "Bank of America",
                                        "31": "Sumitomo Mitsui Trust Bank",
                                        "32": "RHB Bank",
                                        "33": "Indian Overseas Bank",
                                        "34": "HSBC",
                                        "35": "ANZ Bank",
                                        "36": "OCBC Bank",
                                        "37": "Government Housing Bank"
                                      }
                                    },
                                    "paymentMethodId": {
                                      "type": "string",
                                      "description": "The Unique Identifier of the payment method used to record the Cheque payment"
                                    },
                                    "paymentMethodCode": {
                                      "type": "string",
                                      "description": "The Code of the payment method used to record the Cheque payment"
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "note": {
                                  "type": "string",
                                  "description": "Additional remarks or notes for that specific payment received"
                                },
                                "isCheque": {
                                  "enum": [
                                    0,
                                    1
                                  ],
                                  "type": "integer",
                                  "description": "The numerical code indicating whether this payment is made by Cheque or not",
                                  "format": "int32",
                                  "x-enumDescriptions": {
                                    "0": "Not a cheque payment",
                                    "1": "This payment is made by cheque (the cheque object is required)"
                                  }
                                },
                                "amount": {
                                  "type": "number",
                                  "description": "Payment amount",
                                  "format": "double"
                                },
                                "paymentMethod": {
                                  "$ref": "#/components/schemas/PeakAPIs.Library.Model.Request.PaymentMethods.PaymentMethods"
                                },
                                "accountCode": {
                                  "type": "string",
                                  "description": "Account code to be used for recording financial transactions"
                                },
                                "accountSubId": {
                                  "type": "string",
                                  "description": "Sub account Unique Identifier to be used for recording financial transactions"
                                },
                                "accountSubCode": {
                                  "type": "string",
                                  "description": "Sub account code to be used for recording financial transactions"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "paymentDate": {
                            "type": "string",
                            "description": "Payment date in the format yyyyMMdd"
                          },
                          "withHoldingTaxAmount": {
                            "type": "string",
                            "description": "Withholding tax deducted from this payment, as an amount (e.g. \"30\") or a percentage (e.g. \"3%\")"
                          },
                          "transactionId": {
                            "type": "string",
                            "description": "The Unique Identifier of the document for which payment is requested (Required if transactionCode is not provided)"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "examples": {
                "Cash payment": {
                  "summary": "Cash payment",
                  "value": {
                    "PeakPaidPayments": {
                      "transactionCode": "BNE-202609-0001",
                      "paidPayments": {
                        "paymentDate": "20260925",
                        "payments": [
                          {
                            "paymentMethod": {
                              "code": "CSH001",
                              "name": "Cash",
                              "type": 1
                            },
                            "amount": 3210
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeakWCFModelsAPI.Response.ResponsePaidPaymentsModel"
                },
                "examples": {
                  "Success": {
                    "value": {
                      "PeakPaidPayments": {
                        "transactionId": "d62f6d6e-19f9-46a0-8172-4079c5af252d",
                        "transactionCode": "IVTZ202308007",
                        "paidPayments": {
                          "paymentDate": "20230823",
                          "paymentTotal": 107,
                          "payments": [
                            {
                              "paymentMethodId": "b090e908-e25b-4c04-b2b4-65829c07869e",
                              "paymentMethodCode": "CSH001",
                              "amount": 107
                            }
                          ],
                          "journals": [
                            {
                              "id": "af3a2897-2c0f-4def-8feb-64a0ed81eccb",
                              "code": "RV-202308133"
                            }
                          ]
                        },
                        "paymentAmount": 107,
                        "remainPaymentAmount": 0,
                        "remainWhtAmount": 0,
                        "resCode": "200",
                        "resDesc": "PeakPaidPayments have Completed"
                      }
                    }
                  },
                  "Invalid transaction status": {
                    "value": {
                      "PeakPaidPayments": {
                        "paidPayments": {
                          "paymentTotal": 0
                        },
                        "resCode": "347",
                        "resDesc": "Transaction must be Waiting Payment Status."
                      }
                    }
                  },
                  "Internal server error": {
                    "value": {
                      "PeakPaidPayments": {
                        "paidPayments": {
                          "paymentTotal": 0
                        },
                        "resCode": "500",
                        "resDesc": "PEAK internal server error. Please contact our support team for assistance. (Code:0, CorrelationId:d7393de2-e561-4012-bf2f-5b977de98b4d)"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-readme": {
          "code-samples": [
            {
              "language": "json",
              "name": "Cash payment",
              "code": "{\n  \"PeakPaidPayments\": {\n    \"transactionCode\": \"BNE-202609-0001\",\n    \"paidPayments\": {\n      \"paymentDate\": \"20260925\",\n      \"payments\": [\n        {\n          \"paymentMethod\": {\n            \"code\": \"CSH001\",\n            \"name\": \"Cash\",\n            \"type\": 1\n          },\n          \"amount\": 3210\n        }\n      ]\n    }\n  }\n}",
              "correspondingExample": "Cash payment"
            }
          ],
          "samples-languages": [
            "json"
          ]
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PeakAPIs.Library.Model.Request.PaymentMethods.PaymentMethods": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The Unique Identifier generated by PEAK to identify data"
          },
          "code": {
            "maxLength": 6,
            "type": "string",
            "description": "The code displayed in the PEAK"
          },
          "name": {
            "maxLength": 256,
            "type": "string",
            "description": "Payment method name"
          },
          "type": {
            "enum": [
              0,
              1,
              2,
              3,
              4
            ],
            "type": "integer",
            "description": "Numeric code indicating the type of payment method",
            "format": "int32",
            "x-enumDescriptions": {
              "0": "Not Specified",
              "1": "Cash",
              "2": "Bank account",
              "3": "Advance payment (petty cash / employee reimbursement)",
              "4": "E-Wallet"
            }
          },
          "memo": {
            "type": "string",
            "description": "Additional notes or remarks about the product or service"
          },
          "carringBalanceValue": {
            "type": "integer",
            "description": "Opening balance of the bank account",
            "format": "int32"
          },
          "bankId": {
            "enum": [
              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
            ],
            "type": "integer",
            "description": "The numerical code that indicates a financial institution (If type is 2, bankId is required)",
            "format": "int32",
            "x-enumDescriptions": {
              "0": "Other / bank not listed (use bankName)",
              "1": "Bangkok Bank",
              "2": "Kasikornbank",
              "3": "Siam Commercial Bank",
              "4": "SME Development Bank",
              "5": "Krungthai Bank",
              "6": "Bank of Ayudhya (Krungsri)",
              "7": "Kiatnakin Phatra Bank",
              "8": "CIMB Thai Bank",
              "9": "TMBThanachart Bank (ttb)",
              "10": "TISCO Bank",
              "11": "Thai Credit Bank",
              "12": "Thanachart / TCAP",
              "13": "Bank for Agriculture and Agricultural Cooperatives",
              "14": "Export-Import Bank of Thailand",
              "15": "United Overseas Bank (Thai)",
              "16": "Land and Houses Bank",
              "17": "Standard Chartered Bank (Thai)",
              "18": "Government Savings Bank",
              "20": "Islamic Bank of Thailand",
              "21": "Industrial and Commercial Bank of China (Thai)",
              "22": "J.P. Morgan Chase Bank",
              "23": "Citibank",
              "24": "Sumitomo Mitsui Banking Corporation",
              "25": "Deutsche Bank",
              "26": "BNP Paribas",
              "27": "Mizuho Bank",
              "28": "Mega International Commercial Bank",
              "29": "Bank of China (Thai)",
              "30": "Bank of America",
              "31": "Sumitomo Mitsui Trust Bank",
              "32": "RHB Bank",
              "33": "Indian Overseas Bank",
              "34": "HSBC",
              "35": "ANZ Bank",
              "36": "OCBC Bank",
              "37": "Government Housing Bank"
            }
          },
          "eWalletId": {
            "enum": [
              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
            ],
            "type": "integer",
            "description": "E-Wallet account number or identifier (If type is 4, accountCode is required)",
            "format": "int32",
            "x-enumDescriptions": {
              "0": "Not Specified",
              "1": "2C2P Wallet",
              "2": "Omise",
              "3": "TrueMoney Wallet",
              "4": "LINE Pay / Wepay",
              "5": "PayPal",
              "6": "PaySolutions",
              "7": "Xendit",
              "8": "Lazada Wallet",
              "9": "ShopeePay",
              "10": "JD Central Wallet",
              "11": "GrabPay",
              "12": "foodpanda",
              "13": "LINE MAN",
              "14": "Lalamove",
              "15": "Robinhood",
              "16": "BIG Thailand",
              "17": "Stripe",
              "18": "Payoneer",
              "19": "Beam Wallet",
              "20": "TikTok Shop",
              "21": "mPAY",
              "22": "HDmall",
              "23": "Wallet @ Post (Thailand Post)",
              "24": "Beam",
              "25": "ChillPay",
              "26": "123 Service",
              "27": "NocNoc",
              "28": "MoneySpace",
              "29": "LINE Shopping",
              "30": "Alipay",
              "31": "xplORe",
              "32": "T2P Wallet",
              "33": "Meta (Facebook / Instagram Ads)",
              "34": "Google Ads",
              "35": "Other non-bank provider",
              "36": "Other e-commerce platform",
              "37": "Fastwork"
            }
          },
          "bankName": {
            "type": "string",
            "description": "Name of the bank not available in the system (If type is 0, bankName is required)"
          },
          "accountType": {
            "enum": [
              0,
              1,
              2,
              3
            ],
            "type": "integer",
            "description": "Numeric code indicating the type of bank account",
            "format": "int32",
            "x-enumDescriptions": {
              "0": "Not Specified",
              "1": "Current account",
              "2": "Savings account",
              "3": "Fixed deposit account"
            }
          },
          "accountNumber": {
            "maxLength": 256,
            "type": "string",
            "description": "Bank account number"
          },
          "isHaveCheque": {
            "enum": [
              0,
              1
            ],
            "type": "integer",
            "description": "Specify that it is a checking account capable of issuing checks from that bank account",
            "format": "int32",
            "x-enumDescriptions": {
              "0": "Cannot issue cheques",
              "1": "This is a current account that can issue cheques"
            }
          },
          "accountCode": {
            "type": "string",
            "description": "Account to record transactions from the E-Wallet (If type is 4, accountCode is required)"
          }
        },
        "additionalProperties": false
      },
      "PeakWCFModelsAPI.API.Transactions.APITransactionChequePayment": {
        "type": "object",
        "properties": {
          "chequeDate": {
            "type": "string"
          },
          "paymentMethodId": {
            "type": "string"
          },
          "paymentMethodCode": {
            "type": "string"
          },
          "bankId": {
            "type": "integer",
            "format": "int32"
          },
          "bankName": {
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "chequeNo": {
            "type": "string"
          },
          "branchNo": {
            "type": "string"
          },
          "accountNo": {
            "type": "string"
          },
          "isDeposited": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PeakWCFModelsAPI.API.Transactions.APITransactionJournals": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PeakWCFModelsAPI.API.Transactions.APITransactionPaymentLists": {
        "type": "object",
        "properties": {
          "paymentMethodId": {
            "type": "string"
          },
          "paymentMethodCode": {
            "type": "string"
          },
          "accountCode": {
            "type": "string"
          },
          "accountSubId": {
            "type": "string"
          },
          "accountSubCode": {
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "note": {
            "type": "string"
          },
          "isCheque": {
            "type": "integer",
            "format": "int32"
          },
          "cheque": {
            "$ref": "#/components/schemas/PeakWCFModelsAPI.API.Transactions.APITransactionChequePayment"
          }
        },
        "additionalProperties": false
      },
      "PeakWCFModelsAPI.API.Transactions.APITransactionPayments": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "paymentDate": {
            "type": "string"
          },
          "withHoldingTaxAmount": {
            "type": "string"
          },
          "paymentGroupId": {
            "type": "integer",
            "format": "int32"
          },
          "paymentTotal": {
            "type": "number",
            "format": "double"
          },
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PeakWCFModelsAPI.API.Transactions.APITransactionPaymentLists"
            }
          },
          "journals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PeakWCFModelsAPI.API.Transactions.APITransactionJournals"
            }
          },
          "referenceCode": {
            "type": "string"
          },
          "referenceId": {
            "type": "string"
          },
          "referenceType": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PeakWCFModelsAPI.Body.APIBodyPaidPayment": {
        "type": "object",
        "properties": {
          "resCode": {
            "type": "string"
          },
          "resDesc": {
            "type": "string"
          },
          "transactionId": {
            "type": "string"
          },
          "transactionCode": {
            "type": "string"
          },
          "paidPayments": {
            "$ref": "#/components/schemas/PeakWCFModelsAPI.API.Transactions.APITransactionPayments"
          },
          "paymentAmount": {
            "type": "number",
            "format": "double"
          },
          "remainPaymentAmount": {
            "type": "number",
            "format": "double"
          },
          "remainWhtAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PeakWCFModelsAPI.Response.ResponsePaidPaymentsModel": {
        "type": "object",
        "properties": {
          "peakPaidPayments": {
            "$ref": "#/components/schemas/PeakWCFModelsAPI.Body.APIBodyPaidPayment"
          },
          "eventType": {
            "type": "string"
          },
          "apiType": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false
  }
}
```