Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Expense
  • Introduction
  • Activity
    • Activities Enquiry
      POST
    • Get a Activity By Id
      GET
    • Get a Activity By No
      GET
    • Get Key Activities
      GET
    • Create or Update Activity
      POST
  • Authentication API
    • Authorization
      POST
  • Customer
    • Create or Update customer
      POST
    • Get a Customer By CustomerCode
      GET
    • Customers Enquiry
      POST
    • Get a Customer By CustomerName
      GET
    • Create Customer Satisfaction
      POST
    • Add Customer Event
      POST
    • Get Customer Events by Customer Code
      GET
    • Edit Customer Event
      PUT
    • Delete Customer Event
      DELETE
    • Get Customer Event Types
      GET
    • Get file categories
      GET
    • Attach files category
      POST
  • Case
    • Add Case
      POST
    • Edit Case by CaseNo
      PUT
    • Get Case by CaseNo
      GET
    • Get Case Categories
      GET
  • Contract
    • Get Contract By No
    • Get Contract Types
    • Get Contract Templates
    • Create or Update Contract
    • Create or Update Contract Service Agreement
    • Send Contract Document
  • Deal
    • Create Deal
    • Update Deal
    • Deal Enquiry
    • Get Deal
    • Get Deal Board
    • Get Deal Stage
    • Get Deal Interest
    • Get DealLabel
    • Get Deal Missed Reason Categories
  • Employee
    • Employees Enquiry
    • Get a Employee
  • Expense
    • Create Expense
      POST
    • Update Expense
      PUT
    • Expense Enquiry
      POST
    • Get a Expense
      GET
  • Product
    • Create Or Update Products
    • Get a Product Ticket
    • Get Products With Take & Status
    • Get a Product by ProductCode
    • Get Product Groups
    • Get Product Properties
    • Get Products By Filter
    • Verify Serial Number
    • /v3/Products/serials/status
    • Create or Update Codeguard Products
    • Update Product Stock
    • /v1/products/units
    • /v1/products/units Copy
  • Quotation
    • Create Update Quotation
    • Convert Quotation To SalesOrder
    • Quotation Enquiry
    • Get a Quotation By QuotationNo
    • Cancel Quotation
  • SalesOrder
    • Create Or Update SalesOrder
    • Get a SalesOrders By Id
    • Get a SalesOrder By SalesOrderNo
    • Get Sale Order Attachment
    • Reject SaleOrder
    • Approve Sale Order
    • Update SalesOrder Payment
    • Update SalesOrder Tracking Number
  • Webhooks
    • Webhook Payload
  • Task
    • CreateTask
  • Setting
    • Get HeaderTemplate
  • Chat
    • Post Send message
  • Storage
    • Upload files attachments
    • Get file attachments
    • Delete file attachments
  1. Expense

Expense Enquiry

POST
https://api.gofive.co.th/v1/expenses/enquiry
ดึงข้อมูล expense หลายรายการ

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Example
{
    "expenseTypeId": 1001,
    "statusIds": [
        "string"
    ],
    "staffCodes": [
        "string"
    ],
    "searchText": "string",
    "dateStart": "2021-09-17T10:42:31.981Z",
    "dateEnd": "2021-09-17T10:42:31.981Z"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gofive.co.th/v1/expenses/enquiry' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "expenseTypeId": 1001,
    "statusIds": [
        "string"
    ],
    "staffCodes": [
        "string"
    ],
    "searchText": "string",
    "dateStart": "2021-09-17T10:42:31.981Z",
    "dateEnd": "2021-09-17T10:42:31.981Z"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "data": {
        "value": [
            {
                "statusId": 0,
                "statusName": "string",
                "expenses": [
                    {
                        "expenseId": 0,
                        "expenseNo": "string",
                        "companyId": 0,
                        "teamId": 0,
                        "userId": "string",
                        "staffName": "string",
                        "orgString": "string",
                        "orgLevel": 0,
                        "role": "string",
                        "companyName": "string",
                        "teamName": "string",
                        "statusId": 0,
                        "statusName": "string",
                        "expenseTypeIds": "string",
                        "expenseTypeNames": "string",
                        "activityId": 0,
                        "dateActivity": "2021-09-17T10:44:12.359Z",
                        "keyActivityId": 0,
                        "keyActivity": "string",
                        "detailActivities": "string",
                        "contactNames": "string",
                        "customerId": 0,
                        "customerName": "string",
                        "customerAlias": "string",
                        "total": 0,
                        "dateCreated": "2021-09-17T10:44:12.359Z",
                        "dateTransaction": "2021-09-17T10:44:12.359Z",
                        "dateProfileModified": "2021-09-17T10:44:12.359Z",
                        "hasAttachment": true,
                        "remark": "string",
                        "dateApproved": "2021-09-17T10:44:12.359Z",
                        "approvedByUserId": "string",
                        "approvedByFullname": "string",
                        "waitingApproveByUserId": "string",
                        "dateCheckout": "2021-09-17T10:44:12.359Z",
                        "waitingApproveByRoleId": "string",
                        "reason": "string",
                        "subject": "string"
                    }
                ]
            }
        ],
        "statusCode": 200
    },
    "statusCode": 1000,
    "httpStatusCode": 200
}
🟠401Unauthorized
🟢200Bad Request
🟠403Forbidden
Modified at 2023-01-29 10:15:35
Previous
Update Expense
Next
Get a Expense
Built with