All URIs are relative to https://openapi.flowaccount.com/v1
Method | HTTP request | Description |
---|---|---|
ExpensesCategoriesAccountingGet | GET /expenses/categories/accounting | Accounting categorys expenses document. |
ExpensesCategoriesBusinessGet | GET /expenses/categories/business | Business categorys expenses document. |
ExpensesEmailDocumentPost | POST /expenses/email-document | Send email expenses document. |
ExpensesGet | GET /expenses | Get list all expenses documents. |
ExpensesIdAttachmentPost | POST /expenses/{id}/attachment | Add Attachment to expenses. |
ExpensesIdDelete | DELETE /expenses/{id} | Get expenses document. |
ExpensesIdGet | GET /expenses/{id} | Get expenses document. |
ExpensesIdPaymentPost | POST /expenses/{id}/payment | Change paid status of expenses document. |
ExpensesIdStatusKeyStatusIdPost | POST /expenses/{id}/status-key/{statusId} | Change status of expenses document. |
ExpensesInlinePost | POST /expenses/inline | Create expenses document with discount and tax inline. |
ExpensesPost | POST /expenses | Create expenses document. |
ExpensesSharedocumentPost | POST /expenses/sharedocument | Share link expenses documents. |
BusinessCategory ExpensesCategoriesAccountingGet (string authorization)
Accounting categorys expenses document.
เรียกดูข้อมูลหมวดหมู่เอกสารค่าใช้จ่าย (สำหรับนักบัญชี)
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class ExpensesCategoriesAccountingGetExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ExpensesApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
try
{
// Accounting categorys expenses document.
BusinessCategory result = apiInstance.ExpensesCategoriesAccountingGet(authorization);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ExpensesApi.ExpensesCategoriesAccountingGet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BusinessCategory ExpensesCategoriesBusinessGet (string authorization)
Business categorys expenses document.
เรียกดูข้อมูลหมวดหมู่เอกสารค่าใช้จ่าย (สำหรับนักธุรกิจ)
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class ExpensesCategoriesBusinessGetExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ExpensesApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
try
{
// Business categorys expenses document.
BusinessCategory result = apiInstance.ExpensesCategoriesBusinessGet(authorization);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ExpensesApi.ExpensesCategoriesBusinessGet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SendEmailResponse ExpensesEmailDocumentPost (string authorization, SendEmailSimple sendEmailSimple)
Send email expenses document.
ส่งเอกสารค่าใช้จ่าย ผ่านทางอีเมล ตามเลขที่เอกสารที่ต้องการ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class ExpensesEmailDocumentPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ExpensesApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var sendEmailSimple = new SendEmailSimple(); // SendEmailSimple |
try
{
// Send email expenses document.
SendEmailResponse result = apiInstance.ExpensesEmailDocumentPost(authorization, sendEmailSimple);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ExpensesApi.ExpensesEmailDocumentPost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
sendEmailSimple | SendEmailSimple |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ExpenseInlineDocumentResponse ExpensesGet (int currentPage, int pageSize, string authorization, string sortBy = null, string filter = null)
Get list all expenses documents.
เรียกดูข้อมูลเอกสารค่าใช้จ่ายทั้งหมดในระบบ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class ExpensesGetExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ExpensesApi(Configuration.Default);
var currentPage = 56; // int | Query current page document expenses. <br>Example Pattern: <ex>/expenses?currentPage=1 </ex><ex>/expenses?currentPage=1&pageSize=20</ex>
var pageSize = 56; // int | Query document expenses list amount per page. <br>Example Pattern: <ex> /expenses?pageSize=20 </ex>
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var sortBy = sortBy_example; // string | (optional)
var filter = filter_example; // string | (optional)
try
{
// Get list all expenses documents.
ExpenseInlineDocumentResponse result = apiInstance.ExpensesGet(currentPage, pageSize, authorization, sortBy, filter);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ExpensesApi.ExpensesGet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
currentPage | int | Query current page document expenses. <br>Example Pattern: <ex>/expenses?currentPage=1 </ex><ex>/expenses?currentPage=1&pageSize=20</ex> | |
pageSize | int | Query document expenses list amount per page. <br>Example Pattern: <ex> /expenses?pageSize=20 </ex> | |
authorization | string | [default to "Bearer accessToken"] | |
sortBy | string | [optional] | |
filter | string | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AttachmentResponse ExpensesIdAttachmentPost (string authorization, string id, System.IO.Stream file = null)
Add Attachment to expenses.
แนบไฟล์ รูปภาพ หรือ เอกสารที่เกี่ยวข้อง ในเอกสารค่าใช้จ่ายตามเลขที่เอกสารที่ต้องการ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class ExpensesIdAttachmentPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ExpensesApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var id = id_example; // string |
var file = BINARY_DATA_HERE; // System.IO.Stream | (optional)
try
{
// Add Attachment to expenses.
AttachmentResponse result = apiInstance.ExpensesIdAttachmentPost(authorization, id, file);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ExpensesApi.ExpensesIdAttachmentPost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
id | string | ||
file | System.IO.Stream | [optional] |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteResponse ExpensesIdDelete (string authorization, string id)
Get expenses document.
ลบ เอกสารค่าใช้จ่าย ตามเลขที่เอกสารที่ต้องการ
** การลบเอกสาร เอกสารต้องอยู่ในสถานะ รอดำเนินการ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class ExpensesIdDeleteExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ExpensesApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var id = id_example; // string | ID เอกสารใช้ recordId
try
{
// Get expenses document.
DeleteResponse result = apiInstance.ExpensesIdDelete(authorization, id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ExpensesApi.ExpensesIdDelete: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
id | string | ID เอกสารใช้ recordId |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ExpenseInlineDocumentResponse ExpensesIdGet (string authorization, string id)
Get expenses document.
เรียกดูข้อมูลเอกสารค่าใช้จ่ายตามเลขที่เอกสารที่ต้องการ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class ExpensesIdGetExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ExpensesApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var id = id_example; // string |
try
{
// Get expenses document.
ExpenseInlineDocumentResponse result = apiInstance.ExpensesIdGet(authorization, id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ExpensesApi.ExpensesIdGet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
id | string |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ExpenseDocumentResponse ExpensesIdPaymentPost (string authorization, string id, PaymentDocument paymentDocument)
Change paid status of expenses document.
จ่ายเงิน เอกสารพร้อมเปลี่ยนสถานะเอกสารค่าใช้จ่าย
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class ExpensesIdPaymentPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ExpensesApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var id = id_example; // string | ID เอกสารใช้ recordId หรือ documentId
var paymentDocument = new PaymentDocument(); // PaymentDocument |
try
{
// Change paid status of expenses document.
ExpenseDocumentResponse result = apiInstance.ExpensesIdPaymentPost(authorization, id, paymentDocument);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ExpensesApi.ExpensesIdPaymentPost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
id | string | ID เอกสารใช้ recordId หรือ documentId | |
paymentDocument | PaymentDocument |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ExpenseInlineDocumentResponse ExpensesIdStatusKeyStatusIdPost (string authorization, string id, string statusId)
Change status of expenses document.
เปลี่ยนสถานะของเอกสารค่าใช้จ่าย สร้างเอกสารใหม่ครั้งแรกจะได้รับสถานะ รอดำเนินการ (awaiting)
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class ExpensesIdStatusKeyStatusIdPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ExpensesApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var id = id_example; // string | ID เอกสารใช้ recordId
var statusId = statusId_example; // string | เปลี่ยนสถานะเอกสารได้ 3 สถานะ <br> awaiting = รอดำเนินการ <br> received = รับใบเสร็จแล้ว <br> void = ยกเลิก
try
{
// Change status of expenses document.
ExpenseInlineDocumentResponse result = apiInstance.ExpensesIdStatusKeyStatusIdPost(authorization, id, statusId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ExpensesApi.ExpensesIdStatusKeyStatusIdPost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
id | string | ID เอกสารใช้ recordId | |
statusId | string | เปลี่ยนสถานะเอกสารได้ 3 สถานะ <br> awaiting = รอดำเนินการ <br> received = รับใบเสร็จแล้ว <br> void = ยกเลิก |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ExpenseInlineDocumentResponse ExpensesInlinePost (string authorization, ExpenseInlineDocument expenseInlineDocument)
Create expenses document with discount and tax inline.
สร้างเอกสารค่าใช้จ่าย แบบส่วนลด หรือ ภาษี แยกตามรายการสินค้า เมื่อสร้างสำเร็จสถานะเอกสารจะอยู่ในสถานะ รอดำเนินการ (awaiting)
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class ExpensesInlinePostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ExpensesApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var expenseInlineDocument = new ExpenseInlineDocument(); // ExpenseInlineDocument |
try
{
// Create expenses document with discount and tax inline.
ExpenseInlineDocumentResponse result = apiInstance.ExpensesInlinePost(authorization, expenseInlineDocument);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ExpensesApi.ExpensesInlinePost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
expenseInlineDocument | ExpenseInlineDocument |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ExpenseDocumentResponse ExpensesPost (string authorization, ExpenseDocument expenseDocument)
Create expenses document.
สร้างเอกสารค่าใช้จ่าย เมื่อสร้างสำเร็จสถานะเอกสารจะอยู่ในสถานะ รอดำเนินการ (awaiting)
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class ExpensesPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ExpensesApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var expenseDocument = new ExpenseDocument(); // ExpenseDocument |
try
{
// Create expenses document.
ExpenseDocumentResponse result = apiInstance.ExpensesPost(authorization, expenseDocument);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ExpensesApi.ExpensesPost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
expenseDocument | ExpenseDocument |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ShareDocumentResponse ExpensesSharedocumentPost (string authorization, ShareDocument shareDocument)
Share link expenses documents.
แชร์ลิงค์ เอกสารค่าใช้จ่าย ที่ต้องการ จะได้รับลิงค์สำหรับแชร์และเรียกดูเอกสาร
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class ExpensesSharedocumentPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ExpensesApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var shareDocument = new ShareDocument(); // ShareDocument |
try
{
// Share link expenses documents.
ShareDocumentResponse result = apiInstance.ExpensesSharedocumentPost(authorization, shareDocument);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ExpensesApi.ExpensesSharedocumentPost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
shareDocument | ShareDocument |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 response | - |
401 | 401 response | - |
500 | 500 response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]