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

# Get Daily Journal

# 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/DailyJournals": {
      "get": {
        "tags": [
          "DailyJournals"
        ],
        "summary": "Get Daily Journal",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Numeric code indicating whether the result data is returned in the response",
            "schema": {
              "type": "string",
              "description": "Numeric code indicating whether the result data is returned in the response"
            }
          },
          {
            "name": "id",
            "in": "query",
            "description": "The Unique Identifier generated by PEAK to identify data",
            "schema": {
              "type": "string",
              "description": "The Unique Identifier generated by PEAK to identify data"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of entries to retrieve",
            "schema": {
              "type": "integer",
              "description": "Maximum number of entries to retrieve",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number for displaying data, where each page will show 10 entries",
            "schema": {
              "type": "integer",
              "description": "Page number for displaying data, where each page will show 10 entries",
              "format": "int32"
            }
          },
          {
            "name": "getResult",
            "in": "query",
            "description": "Numeric code indicating whether the result data is returned in the response",
            "schema": {
              "enum": [
                0,
                1
              ],
              "type": "integer",
              "description": "Numeric code indicating whether the result data is returned in the response",
              "format": "int32",
              "x-enumDescriptions": {
                "0": "Do not return the result data in the response",
                "1": "Return the result data in the response"
              }
            }
          },
          {
            "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"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeakWCFModelsAPI.Response.ResponseDailyJournalModel"
                },
                "examples": {
                  "Success": {
                    "value": {
                      "PeakDailyJournals": {
                        "dailyJournals": [
                          {
                            "issuedDate": "20160202",
                            "totalDebit": 40000,
                            "totalCredit": 40000,
                            "id": "a110f970-9d2b-4017-80bd-59e9ae1fee46",
                            "code": "JN-201602007",
                            "journalTypeId": 2,
                            "contactId": "079fa9e4-de00-4020-b290-eae29cdbc1ca",
                            "contactCode": "C00001",
                            "description": "Testing selling",
                            "journalEntries": [
                              {
                                "accountCode": "530205",
                                "description": "ค่าบริการสำนักงานเสมือน",
                                "debit": 40000,
                                "credit": 0
                              },
                              {
                                "accountCode": "111201",
                                "description": "บัญชีกระแสรายวัน",
                                "debit": 0,
                                "credit": 40000
                              }
                            ],
                            "referenceNumber": "EXP-201602001",
                            "referenceTransactionType": 202,
                            "resCode": "200",
                            "resDesc": "Success"
                          }
                        ],
                        "totalDailyJournal": 321,
                        "resDesc": "PeakDailyJournals have Completed",
                        "resCode": "200"
                      }
                    }
                  },
                  "Dailyjournal not found": {
                    "value": {
                      "PeakDailyJournals": {
                        "dailyJournals": [],
                        "totalDailyJournal": 0,
                        "resDesc": "PeakDailyJournals have Completed",
                        "resCode": "200"
                      }
                    }
                  },
                  "Internal server error": {
                    "value": {
                      "PeakDailyJournals": {
                        "dailyJournals": [],
                        "resDesc": "PEAK internal server error. Please contact our support team for assistance. (Code:0, CorrelationId:da05c1c1-e2d8-40a7-89e0-eaafe337507b)",
                        "resCode": "500"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PeakWCFModelsAPI.API.DailyJournals.APIDailyJournalsModel": {
        "type": "object",
        "properties": {
          "resCode": {
            "type": "string"
          },
          "resDesc": {
            "type": "string"
          },
          "issuedDate": {
            "type": "string"
          },
          "totalDebit": {
            "type": "number",
            "format": "double"
          },
          "totalCredit": {
            "type": "number",
            "format": "double"
          },
          "id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "documentStatus": {
            "type": "string"
          },
          "journalTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "contactId": {
            "type": "string"
          },
          "contactCode": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "journalEntries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PeakWCFModelsAPI.API.DailyJournals.APIJournalEntriesModel"
            }
          },
          "isVoid": {
            "type": "integer",
            "format": "int32"
          },
          "referenceNumber": {
            "type": "string"
          },
          "referenceTransactionType": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PeakWCFModelsAPI.API.DailyJournals.APIJournalEntriesModel": {
        "type": "object",
        "properties": {
          "accountCode": {
            "type": "string"
          },
          "accountSubId": {
            "type": "string"
          },
          "accountSubCode": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "debit": {
            "type": "number",
            "format": "double"
          },
          "credit": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PeakWCFModelsAPI.Body.APIBodyDailyJournal": {
        "type": "object",
        "properties": {
          "dailyJournals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PeakWCFModelsAPI.API.DailyJournals.APIDailyJournalsModel"
            }
          },
          "totalDailyJournal": {
            "type": "integer",
            "format": "int32"
          },
          "resDesc": {
            "type": "string"
          },
          "resCode": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PeakWCFModelsAPI.Response.ResponseDailyJournalModel": {
        "type": "object",
        "properties": {
          "peakDailyJournals": {
            "$ref": "#/components/schemas/PeakWCFModelsAPI.Body.APIBodyDailyJournal"
          },
          "eventType": {
            "type": "string"
          },
          "apiType": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false
  }
}
```