---
updatedAt: 2026-05-21T05:34:35.000Z
agentTools:
  projectIndex: https://developers.peakaccount.com/llms.txt
---

# Create Purchase Order (Priority Queue)

# 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/PurchaseOrders/queue/priority": {
      "post": {
        "tags": [
          "PurchaseOrders"
        ],
        "summary": "Create Purchase Order (Priority Queue)",
        "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": [
                  "peakPurchaseOrders"
                ],
                "type": "object",
                "properties": {
                  "peakPurchaseOrders": {
                    "required": [
                      "purchaseOrders"
                    ],
                    "type": "object",
                    "properties": {
                      "purchaseOrders": {
                        "type": "array",
                        "items": {
                          "required": [
                            "issuedDate",
                            "contact",
                            "products"
                          ],
                          "type": "object",
                          "properties": {
                            "code": {
                              "maxLength": 50,
                              "type": "string",
                              "description": "The code displayed in the PEAK. If no value is provided, PEAK will generate it automatically"
                            },
                            "issuedDate": {
                              "type": "string",
                              "description": "Document issuance date"
                            },
                            "dueDate": {
                              "type": "string",
                              "description": "Document due date, which must be after the document issuance date"
                            },
                            "contact": {
                              "required": [
                                "name",
                                "type",
                                "code"
                              ],
                              "type": "object",
                              "properties": {
                                "name": {
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "type": "string",
                                  "description": "Contact name"
                                },
                                "type": {
                                  "enum": [
                                    0,
                                    1,
                                    2,
                                    3,
                                    4,
                                    5,
                                    6,
                                    7,
                                    8,
                                    9,
                                    10,
                                    11
                                  ],
                                  "type": "integer",
                                  "description": "Type of contact",
                                  "format": "int32",
                                  "x-enumDescriptions": {
                                    "0": "Not Specified",
                                    "1": "Limited partnership",
                                    "2": "Company limited",
                                    "3": "Public company limited",
                                    "4": "Shop",
                                    "5": "Individual (ordinary person)",
                                    "6": "Body of persons",
                                    "7": "Others",
                                    "8": "Ordinary partnership",
                                    "9": "Foundation",
                                    "10": "Association",
                                    "11": "Joint venture"
                                  }
                                },
                                "prefixNameType": {
                                  "enum": [
                                    0,
                                    1,
                                    2,
                                    3,
                                    4,
                                    5
                                  ],
                                  "type": "integer",
                                  "description": "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",
                                  "format": "int32",
                                  "x-enumDescriptions": {
                                    "0": "No prefix",
                                    "1": "Khun (gender-neutral title)",
                                    "2": "Mr.",
                                    "3": "Mrs.",
                                    "4": "Miss",
                                    "5": "Other (specify in prefixNameOther)"
                                  }
                                },
                                "prefixNameOther": {
                                  "maxLength": 32,
                                  "type": "string",
                                  "description": "If the value of \"prefixNameType\" is 5 (Other), the \"prefixNameOther\" field is a required variable that indicates the custom prefix for the contact's name"
                                },
                                "taxNumber": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Tax Identification Number (TIN)"
                                },
                                "branchCode": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "The 5-digit number that identifies the branch of your contact's business"
                                },
                                "address": {
                                  "maxLength": 250,
                                  "type": "string",
                                  "description": "The address registered for the branch."
                                },
                                "subDistrict": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Sub-district of the contact's address"
                                },
                                "district": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "District of the contact's address"
                                },
                                "province": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Province of the contact's address"
                                },
                                "country": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Country of the contact's address"
                                },
                                "postCode": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Post code of the contact's address"
                                },
                                "callCenterNumber": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Call center phone number of the contact"
                                },
                                "faxNumber": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Fax number of the contact"
                                },
                                "email": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Email address of the contact"
                                },
                                "website": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Website of the contact"
                                },
                                "contactFirstName": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "First name of the contactable person"
                                },
                                "contactLastName": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Last name of the contactable person"
                                },
                                "contactNickName": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Nickname of the contactable person"
                                },
                                "contactPosition": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Position of the contactable person"
                                },
                                "contactPhoneNumber": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Phone number of the contactable person"
                                },
                                "contactEmail": {
                                  "maxLength": 256,
                                  "type": "string",
                                  "description": "Email of the contactable person"
                                },
                                "purchaseAccount": {
                                  "type": "string",
                                  "description": "If the contact is a seller, PEAK will record the transaction in this account"
                                },
                                "sellAccount": {
                                  "type": "string",
                                  "description": "If the contact is a buyer, PEAK will record the transaction in this account"
                                },
                                "bankAccount": {
                                  "$ref": "#/components/schemas/PeakAPIs.Library.Model.Request.Contacts.ContactBankAccount"
                                },
                                "id": {
                                  "type": "string",
                                  "description": "The Unique Identifier will generated by PEAK for referencing the contacts"
                                },
                                "code": {
                                  "maxLength": 20,
                                  "type": "string",
                                  "description": "Code of the contact that will be displayed in PEAK"
                                },
                                "contactFinanceType": {
                                  "enum": [
                                    0,
                                    1,
                                    2
                                  ],
                                  "type": "integer",
                                  "description": "The numerical code indicating which side of the business this contact is used on, which controls whether the contact can be selected in revenue documents, expense documents, or both",
                                  "format": "int32",
                                  "x-enumDescriptions": {
                                    "0": "Can be used on both revenue and expense documents",
                                    "1": "Can be used on revenue documents only",
                                    "2": "Can be used on expense documents only"
                                  }
                                }
                              },
                              "additionalProperties": false
                            },
                            "reference": {
                              "maxLength": 32,
                              "type": "string",
                              "description": "Reference information of the document"
                            },
                            "remark": {
                              "maxLength": 1000,
                              "type": "string",
                              "description": "Additional remarks or notes"
                            },
                            "taxStatus": {
                              "enum": [
                                0,
                                1,
                                2
                              ],
                              "type": "integer",
                              "description": "Specify the tax status of the document to indicate whether the price includes tax or the tax is separate",
                              "format": "int32",
                              "x-enumDescriptions": {
                                "0": "Price excludes VAT (VAT is added on top)",
                                "1": "Price already includes VAT",
                                "2": "No VAT applies to this document"
                              }
                            },
                            "discountTotal": {
                              "type": "string",
                              "description": "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": {
                              "enum": [
                                0,
                                1
                              ],
                              "type": "integer",
                              "description": "isTaxInvoice status indicating whether the document can be used as a tax invoice or not",
                              "format": "int32",
                              "x-enumDescriptions": {
                                "0": "Cannot be used as a tax invoice",
                                "1": "This document can be used as a tax invoice"
                              }
                            },
                            "tags": {
                              "maxItems": 10,
                              "type": "array",
                              "items": {
                                "maxLength": 128,
                                "type": "string"
                              },
                              "description": "Label attached to someone or something for the purpose of identification or to give other information"
                            },
                            "status": {
                              "enum": [
                                "Draft",
                                "Approve"
                              ],
                              "type": "string",
                              "description": "Status to create the document with: Draft (save as draft) or Approve (create and approve). If omitted, the document is approved",
                              "x-enumDescriptions": {
                                "Draft": "Save as draft",
                                "Approve": "Create and approve"
                              }
                            },
                            "products": {
                              "type": "array",
                              "items": {
                                "required": [
                                  "productTemplate",
                                  "quantity",
                                  "price",
                                  "vatType"
                                ],
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The Unique Identifier of an existing line on the document (used when editing a document)"
                                  },
                                  "productTemplate": {
                                    "required": [
                                      "name",
                                      "type",
                                      "code"
                                    ],
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "The Unique Identifier generated by PEAK to identify data"
                                      },
                                      "name": {
                                        "maxLength": 100,
                                        "minLength": 1,
                                        "type": "string",
                                        "description": "Product/Service name"
                                      },
                                      "type": {
                                        "enum": [
                                          0,
                                          1,
                                          2
                                        ],
                                        "type": "integer",
                                        "description": "Numeric code indicate whether it is a product or a service",
                                        "format": "int32",
                                        "x-enumDescriptions": {
                                          "0": "Not Specified",
                                          "1": "Product (stock / inventory item)",
                                          "2": "Service"
                                        }
                                      },
                                      "code": {
                                        "maxLength": 50,
                                        "type": "string",
                                        "description": "The code displayed in the PEAK"
                                      },
                                      "purchaseValue": {
                                        "type": "number",
                                        "description": "Purchase price per unit",
                                        "format": "double"
                                      },
                                      "purchaseVatType": {
                                        "enum": [
                                          1,
                                          2,
                                          3
                                        ],
                                        "type": "integer",
                                        "description": "Purchase tax rate",
                                        "format": "int32",
                                        "x-enumDescriptions": {
                                          "1": "No VAT (VAT-exempt item)",
                                          "2": "0% VAT",
                                          "3": "7% VAT"
                                        }
                                      },
                                      "purchaseAccount": {
                                        "type": "string",
                                        "description": "Account used to record purchase transactions"
                                      },
                                      "sellValue": {
                                        "type": "number",
                                        "description": "Selling price per unit",
                                        "format": "double"
                                      },
                                      "sellVatType": {
                                        "enum": [
                                          1,
                                          2,
                                          3
                                        ],
                                        "type": "integer",
                                        "description": "Selling tax rate",
                                        "format": "int32",
                                        "x-enumDescriptions": {
                                          "1": "No VAT (VAT-exempt item)",
                                          "2": "0% VAT",
                                          "3": "7% VAT"
                                        }
                                      },
                                      "sellAccount": {
                                        "type": "string",
                                        "description": "Account used to record selling transactions"
                                      },
                                      "description": {
                                        "maxLength": 500,
                                        "type": "string",
                                        "description": "Additional description of the product/service"
                                      },
                                      "carryingBalanceValue": {
                                        "type": "number",
                                        "description": "Opening stock cost per unit. Products only; recorded together with carryingBalanceAmount when both are greater than 0",
                                        "format": "double"
                                      },
                                      "carryingBalanceAmount": {
                                        "type": "number",
                                        "description": "Opening stock quantity. Products only; recorded together with carryingBalanceValue when both are greater than 0",
                                        "format": "double"
                                      },
                                      "unit": {
                                        "$ref": "#/components/schemas/PeakAPIs.Library.Model.EcoSystem.Response.Product.APIUnitModel"
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  "description": {
                                    "maxLength": 500,
                                    "type": "string",
                                    "description": "Description of the line. Required when isDescription is 1, or when the line has no product/service and no accountCode"
                                  },
                                  "accountCode": {
                                    "type": "string",
                                    "description": "Account code to record this line in. Used when the line is not linked to a product/service"
                                  },
                                  "accountSubId": {
                                    "type": "string",
                                    "description": "The Unique Identifier of the sub account under accountCode. Send accountSubId or accountSubCode, not both"
                                  },
                                  "accountSubCode": {
                                    "type": "string",
                                    "description": "Code of the sub account under accountCode, used as an alternative to accountSubId"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "Quantity of the line. Required unless isDescription is 1",
                                    "format": "double"
                                  },
                                  "price": {
                                    "type": "number",
                                    "description": "Price per unit of the line. Required unless isDescription is 1",
                                    "format": "double"
                                  },
                                  "discount": {
                                    "type": "string",
                                    "description": "Discount of the line, as an amount (e.g. \"100\") or a percentage (e.g. \"10%\"). Must not be negative"
                                  },
                                  "vatType": {
                                    "enum": [
                                      1,
                                      2,
                                      3
                                    ],
                                    "type": "integer",
                                    "description": "Numeric code indicating the VAT rate of the line",
                                    "format": "int32",
                                    "x-enumDescriptions": {
                                      "1": "No VAT (VAT-exempt item)",
                                      "2": "0% VAT",
                                      "3": "7% VAT"
                                    }
                                  },
                                  "isDescription": {
                                    "enum": [
                                      0,
                                      1
                                    ],
                                    "type": "integer",
                                    "description": "Numeric code indicating whether this line is a description-only text row",
                                    "format": "int32",
                                    "x-enumDescriptions": {
                                      "0": "Normal priced line item",
                                      "1": "This line is a description-only text row (no price / quantity)"
                                    }
                                  },
                                  "withHoldingTaxAmount": {
                                    "type": "string",
                                    "description": "Withholding tax of the line, as an amount (e.g. \"30\") or a percentage of the line net amount (e.g. \"3%\")"
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "paidPayments": {
                              "$ref": "#/components/schemas/PeakAPIs.Library.Model.Request.Transaction.Shared.AllInOne.PaymentsTransactionAllInOne"
                            },
                            "preTaxAmount": {
                              "type": "number",
                              "description": "Amount before tax is applied (If value is null, PEAK will calculate it automatically)",
                              "format": "double"
                            },
                            "vatAmount": {
                              "type": "number",
                              "description": "Tax collected from the increased value of products or services (If value is null, PEAK will calculate it automatically)",
                              "format": "double"
                            },
                            "netAmount": {
                              "type": "number",
                              "description": "Total value of the document after tax and discounts have been applied (If value is null, PEAK will calculate it automatically)",
                              "format": "double"
                            },
                            "currency": {
                              "$ref": "#/components/schemas/PeakAPIs.Library.Model.Request.Transaction.Shared.Normal.CurrencyTransaction"
                            },
                            "receivedTaxInvoice": {
                              "$ref": "#/components/schemas/PeakAPIs.Library.Model.Request.Transaction.Shared.Normal.ReceivedTaxInvoiceTransaction"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "keyReference": {
                        "type": "string",
                        "description": "The key used to reference the incoming request sent to PEAK for easier matching of the response and request"
                      },
                      "url": {
                        "type": "string",
                        "description": "The URL that will be used to receive the response after the system has finished processing"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "examples": {
                "Queue one document": {
                  "summary": "Queue one document",
                  "value": {
                    "PeakPurchaseOrders": {
                      "purchaseOrders": [
                        {
                          "issuedDate": "20260925",
                          "contact": {
                            "code": "C00215",
                            "name": "Kittipong Wongdee",
                            "type": 5,
                            "prefixNameType": 2,
                            "taxNumber": "1101700000123",
                            "address": "88 Soi Ari 4, Phahonyothin Road",
                            "subDistrict": "Samsen Nai",
                            "district": "Phaya Thai",
                            "province": "Bangkok",
                            "postCode": "10400",
                            "country": "Thailand",
                            "contactPhoneNumber": "0819876543"
                          },
                          "reference": "QUOTE-KW-0925",
                          "remark": "",
                          "taxStatus": 1,
                          "products": [
                            {
                              "productTemplate": {
                                "name": "Product photography",
                                "code": "SRV-PHOTO",
                                "type": 2,
                                "purchaseValue": 3500,
                                "purchaseVatType": 1
                              },
                              "description": "Product photography - 20 items",
                              "quantity": 1,
                              "price": 3500,
                              "vatType": 1
                            }
                          ]
                        }
                      ],
                      "keyReference": "PO-REQ-20260925-001",
                      "url": "https://example.com/peak/callback"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeakAPIs.Library.Model.Response.Queue.ResponseQueueModel"
                }
              }
            }
          }
        },
        "x-readme": {
          "code-samples": [
            {
              "language": "json",
              "name": "Queue one document",
              "code": "{\n  \"PeakPurchaseOrders\": {\n    \"purchaseOrders\": [\n      {\n        \"issuedDate\": \"20260925\",\n        \"contact\": {\n          \"code\": \"C00215\",\n          \"name\": \"Kittipong Wongdee\",\n          \"type\": 5,\n          \"prefixNameType\": 2,\n          \"taxNumber\": \"1101700000123\",\n          \"address\": \"88 Soi Ari 4, Phahonyothin Road\",\n          \"subDistrict\": \"Samsen Nai\",\n          \"district\": \"Phaya Thai\",\n          \"province\": \"Bangkok\",\n          \"postCode\": \"10400\",\n          \"country\": \"Thailand\",\n          \"contactPhoneNumber\": \"0819876543\"\n        },\n        \"reference\": \"QUOTE-KW-0925\",\n        \"remark\": \"\",\n        \"taxStatus\": 1,\n        \"products\": [\n          {\n            \"productTemplate\": {\n              \"name\": \"Product photography\",\n              \"code\": \"SRV-PHOTO\",\n              \"type\": 2,\n              \"purchaseValue\": 3500,\n              \"purchaseVatType\": 1\n            },\n            \"description\": \"Product photography - 20 items\",\n            \"quantity\": 1,\n            \"price\": 3500,\n            \"vatType\": 1\n          }\n        ]\n      }\n    ],\n    \"keyReference\": \"PO-REQ-20260925-001\",\n    \"url\": \"https://example.com/peak/callback\"\n  }\n}",
              "correspondingExample": "Queue one document"
            }
          ],
          "samples-languages": [
            "json"
          ]
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PeakAPIs.Library.Model.EcoSystem.Response.Product.APIUnitModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The Unique Identifier of the unit of measure"
          },
          "code": {
            "type": "string",
            "description": "Code of the unit of measure"
          },
          "nameTh": {
            "type": "string",
            "description": "Thai name of the unit of measure"
          },
          "nameEn": {
            "type": "string",
            "description": "English name of the unit of measure"
          }
        },
        "additionalProperties": false
      },
      "PeakAPIs.Library.Model.Request.Contacts.ContactBankAccount": {
        "type": "object",
        "properties": {
          "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": "Numeric code indicating the bank of the contact's bank account",
            "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"
            }
          },
          "bankBranch": {
            "maxLength": 256,
            "type": "string",
            "description": "Branch of the contact's bank account"
          },
          "bankAccountNo": {
            "maxLength": 256,
            "type": "string",
            "description": "Contact's bank account number"
          },
          "bankAccountName": {
            "maxLength": 256,
            "type": "string",
            "description": "Name of the contact's bank account"
          }
        },
        "additionalProperties": false
      },
      "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
      },
      "PeakAPIs.Library.Model.Request.Transaction.Shared.AllInOne.Cheque": {
        "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
      },
      "PeakAPIs.Library.Model.Request.Transaction.Shared.AllInOne.Payment": {
        "type": "object",
        "properties": {
          "cheque": {
            "$ref": "#/components/schemas/PeakAPIs.Library.Model.Request.Transaction.Shared.AllInOne.Cheque"
          },
          "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
      },
      "PeakAPIs.Library.Model.Request.Transaction.Shared.AllInOne.PaymentsTransactionAllInOne": {
        "type": "object",
        "properties": {
          "payments": {
            "maxItems": 10,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PeakAPIs.Library.Model.Request.Transaction.Shared.AllInOne.Payment"
            },
            "description": "The object with payment details"
          },
          "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
      },
      "PeakAPIs.Library.Model.Request.Transaction.Shared.Normal.CurrencyTransaction": {
        "type": "object",
        "properties": {
          "currencyId": {
            "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,
              38,
              39,
              40,
              41,
              42,
              43,
              44,
              45,
              46,
              47,
              48
            ],
            "type": "integer",
            "description": "Numeric code indicating the currency of the document",
            "format": "int32",
            "x-enumDescriptions": {
              "0": "Thai Baht",
              "1": "US Dollar",
              "2": "Pound Sterling",
              "3": "Euro",
              "4": "Japanese Yen",
              "5": "Hong Kong Dollar",
              "6": "Malaysian Ringgit",
              "7": "Singapore Dollar",
              "8": "Brunei Dollar",
              "9": "Philippine Peso",
              "10": "Indonesian Rupiah",
              "11": "Indian Rupee",
              "12": "Swiss Franc",
              "13": "Australian Dollar",
              "14": "New Zealand Dollar",
              "15": "Canadian Dollar",
              "16": "Swedish Krona",
              "17": "Danish Krone",
              "18": "Norwegian Krone",
              "19": "Chinese Yuan (Renminbi)",
              "20": "Mexican Peso",
              "21": "South African Rand",
              "22": "South Korean Won",
              "23": "New Taiwan Dollar",
              "24": "Kuwaiti Dinar",
              "25": "Saudi Riyal",
              "26": "UAE Dirham",
              "27": "Myanmar Kyat",
              "28": "Bangladeshi Taka",
              "29": "Czech Koruna",
              "30": "Cambodian Riel",
              "31": "Kenyan Shilling",
              "32": "Lao Kip",
              "33": "Russian Ruble",
              "34": "Vietnamese Dong",
              "35": "Egyptian Pound",
              "36": "Polish Zloty",
              "37": "Sri Lankan Rupee",
              "38": "Iraqi Dinar",
              "39": "Bahraini Dinar",
              "40": "Omani Rial",
              "41": "Jordanian Dinar",
              "42": "Qatari Riyal",
              "43": "Maldivian Rufiyaa",
              "44": "Nepalese Rupee",
              "45": "Papua New Guinean Kina",
              "46": "Israeli New Shekel",
              "47": "Hungarian Forint",
              "48": "Pakistani Rupee"
            }
          },
          "exchangeRate": {
            "type": "number",
            "description": "Exchange rate from the document currency to THB. Required for invoices and receipts",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PeakAPIs.Library.Model.Request.Transaction.Shared.Normal.ReceivedTaxInvoiceTransaction": {
        "type": "object",
        "properties": {
          "taxInvoiceNumber": {
            "maxLength": 50,
            "type": "string",
            "description": "Number of the tax invoice received from the supplier"
          },
          "taxInvoiceDate": {
            "type": "string",
            "description": "Date of the tax invoice received from the supplier (yyyyMMdd)"
          },
          "journalDate": {
            "type": "string",
            "description": "Date the received tax invoice is recorded (yyyyMMdd)"
          },
          "periodDate": {
            "type": "string",
            "description": "Tax period the received tax invoice is claimed in (yyyyMMdd)"
          }
        },
        "additionalProperties": false
      },
      "PeakAPIs.Library.Model.Response.Queue.ResponseQueueModel": {
        "type": "object",
        "properties": {
          "resCode": {
            "type": "string"
          },
          "resDesc": {
            "type": "string"
          },
          "queueId": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false
  }
}
```