All URIs are relative to https://openapi.flowaccount.com/v1
Method | HTTP request | Description |
---|---|---|
WithholdingTaxesEmailDocumentPost | POST /withholding-taxes/email-document | Send email withholding tax document. |
WithholdingTaxesGet | GET /withholding-taxes | Get list all withholding tax documents. |
WithholdingTaxesIdAttachmentPost | POST /withholding-taxes/{id}/attachment | Add Attachment to expenses. |
WithholdingTaxesIdDelete | DELETE /withholding-taxes/{id} | Get withholding tax document. |
WithholdingTaxesIdGet | GET /withholding-taxes/{id} | Get withholding tax document. |
WithholdingTaxesIdStatusKeyStatusIdPost | POST /withholding-taxes/{id}/status-key/{statusId} | Change status of withholding tax document. |
WithholdingTaxesPost | POST /withholding-taxes | Create withholding tax document. |
WithholdingTaxesSharedocumentPost | POST /withholding-taxes/sharedocument | Share link withholding tax documents. |
SendEmailResponse WithholdingTaxesEmailDocumentPost (string authorization, SendEmailSimple sendEmailSimple)
Send email withholding tax document.
ส่งเอกสารใบหัก ณ ที่จ่าย ผ่านทางอีเมล ตามเลขที่เอกสารที่ต้องการ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class WithholdingTaxesEmailDocumentPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new WithholdingTaxApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var sendEmailSimple = new SendEmailSimple(); // SendEmailSimple |
try
{
// Send email withholding tax document.
SendEmailResponse result = apiInstance.WithholdingTaxesEmailDocumentPost(authorization, sendEmailSimple);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WithholdingTaxApi.WithholdingTaxesEmailDocumentPost: " + 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]
WithholidingTaxDocumentResponse WithholdingTaxesGet (int currentPage, int pageSize, string authorization, string sortBy = null, string filter = null)
Get list all withholding tax documents.
เรียกดูข้อมูลเอกสารใบหัก ณ ที่จ่ายทั้งหมดในระบบ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class WithholdingTaxesGetExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new WithholdingTaxApi(Configuration.Default);
var currentPage = 56; // int | Query current page document withholding tax. <br>Example Pattern: <ex>/withholding-taxes?currentPage=1 </ex><ex>/withholding-taxes?currentPage=1&pageSize=20</ex>
var pageSize = 56; // int | Query document withholding tax list amount per page. <br>Example Pattern: <ex> /withholding-taxes?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 withholding tax documents.
WithholidingTaxDocumentResponse result = apiInstance.WithholdingTaxesGet(currentPage, pageSize, authorization, sortBy, filter);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WithholdingTaxApi.WithholdingTaxesGet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
currentPage | int | Query current page document withholding tax. <br>Example Pattern: <ex>/withholding-taxes?currentPage=1 </ex><ex>/withholding-taxes?currentPage=1&pageSize=20</ex> | |
pageSize | int | Query document withholding tax list amount per page. <br>Example Pattern: <ex> /withholding-taxes?pageSize=20 </ex> | |
authorization | string | [default to "Bearer accessToken"] | |
sortBy | string | [optional] | |
filter | string | [optional] |
WithholidingTaxDocumentResponse
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 WithholdingTaxesIdAttachmentPost (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 WithholdingTaxesIdAttachmentPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new WithholdingTaxApi(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.WithholdingTaxesIdAttachmentPost(authorization, id, file);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WithholdingTaxApi.WithholdingTaxesIdAttachmentPost: " + 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 WithholdingTaxesIdDelete (string authorization, string id)
Get withholding tax document.
ลบ เอกสารใบหัก ณ ที่จ่าย ตามเลขที่เอกสารที่ต้องการ
** การลบเอกสาร เอกสารต้องอยู่ในสถานะ รอดำเนินการ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class WithholdingTaxesIdDeleteExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new WithholdingTaxApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var id = id_example; // string | ID เอกสารใช้ recordId
try
{
// Get withholding tax document.
DeleteResponse result = apiInstance.WithholdingTaxesIdDelete(authorization, id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WithholdingTaxApi.WithholdingTaxesIdDelete: " + 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]
WithholidingTaxDocumentResponse WithholdingTaxesIdGet (string authorization, string id)
Get withholding tax document.
เรียกดูข้อมูลเอกสารใบหัก ณ ที่จ่าย ตามเลขที่เอกสารที่ต้องการ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class WithholdingTaxesIdGetExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new WithholdingTaxApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var id = id_example; // string | ID เอกสารใช้ recordId หรือ documentId
try
{
// Get withholding tax document.
WithholidingTaxDocumentResponse result = apiInstance.WithholdingTaxesIdGet(authorization, id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WithholdingTaxApi.WithholdingTaxesIdGet: " + 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 |
WithholidingTaxDocumentResponse
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]
WithholidingTaxDocumentResponse WithholdingTaxesIdStatusKeyStatusIdPost (string authorization, string id, string statusId)
Change status of withholding tax document.
เปลี่ยนสถานะของเอกสารใบหัก ณ ที่จ่าย สร้างเอกสารใหม่ครั้งแรกจะได้รับสถานะ ดำเนินการแล้ว (processed)
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class WithholdingTaxesIdStatusKeyStatusIdPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new WithholdingTaxApi(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> processed = ดำเนินการแล้ว <br> void = ยกเลิก
try
{
// Change status of withholding tax document.
WithholidingTaxDocumentResponse result = apiInstance.WithholdingTaxesIdStatusKeyStatusIdPost(authorization, id, statusId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WithholdingTaxApi.WithholdingTaxesIdStatusKeyStatusIdPost: " + 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> processed = ดำเนินการแล้ว <br> void = ยกเลิก |
WithholidingTaxDocumentResponse
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]
WithholidingTaxDocumentResponse WithholdingTaxesPost (string authorization, WithholidingTaxDocument withholidingTaxDocument)
Create withholding tax document.
สร้างเอกสารใบหัก ณ ที่จ่าย เมื่อสร้างสำเร็จสถานะเอกสารจะอยู่ในสถานะ ดำเนินการแล้ว (issued)
ข้อมูลการออกเอกสาร หัก ณ ที่จ่าย : https://flowaccount.com/blog/ภาษีเงินได้-หัก-ณ-ที่จ่า
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class WithholdingTaxesPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new WithholdingTaxApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var withholidingTaxDocument = new WithholidingTaxDocument(); // WithholidingTaxDocument |
try
{
// Create withholding tax document.
WithholidingTaxDocumentResponse result = apiInstance.WithholdingTaxesPost(authorization, withholidingTaxDocument);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WithholdingTaxApi.WithholdingTaxesPost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
withholidingTaxDocument | WithholidingTaxDocument |
WithholidingTaxDocumentResponse
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 WithholdingTaxesSharedocumentPost (string authorization, ShareDocument shareDocument)
Share link withholding tax documents.
แชร์ลิงค์ เอกสารใบหัก ณ ที่จ่าย ที่ต้องการ จะได้รับลิงค์สำหรับแชร์และเรียกดูเอกสาร
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class WithholdingTaxesSharedocumentPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new WithholdingTaxApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var shareDocument = new ShareDocument(); // ShareDocument |
try
{
// Share link withholding tax documents.
ShareDocumentResponse result = apiInstance.WithholdingTaxesSharedocumentPost(authorization, shareDocument);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WithholdingTaxApi.WithholdingTaxesSharedocumentPost: " + 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]