All URIs are relative to https://openapi.flowaccount.com/v1
Method | HTTP request | Description |
---|---|---|
PurchasesEmailDocumentPost | POST /purchases/email-document | Send email receiving inventory document. |
PurchasesGet | GET /purchases | Get list all receiving inventory documents. |
PurchasesIdAttachmentPost | POST /purchases/{id}/attachment | Add Attachment to receiving inventory document. |
PurchasesIdDelete | DELETE /purchases/{id} | Get receiving inventory document. |
PurchasesIdGet | GET /purchases/{id} | Get receiving inventory document. |
PurchasesIdStatusKeyStatusIdPost | POST /purchases/{id}/status-key/{statusId} | Change status of receiving inventory document. |
PurchasesInlinePost | POST /purchases/inline | Create receiving inventory document with discount and tax inline. |
PurchasesPost | POST /purchases | Create receiving inventory document. |
PurchasesSharedocumentPost | POST /purchases/sharedocument | Share link receiving inventory document. |
SendEmailResponse PurchasesEmailDocumentPost (string authorization, SendEmailCoppies sendEmailCoppies)
Send email receiving inventory document.
ส่งเอกสารใบรับสินค้า ผ่านทางอีเมล ตามเลขที่เอกสารที่ต้องการ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class PurchasesEmailDocumentPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ReceivingInventoryApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var sendEmailCoppies = new SendEmailCoppies(); // SendEmailCoppies |
try
{
// Send email receiving inventory document.
SendEmailResponse result = apiInstance.PurchasesEmailDocumentPost(authorization, sendEmailCoppies);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ReceivingInventoryApi.PurchasesEmailDocumentPost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
sendEmailCoppies | SendEmailCoppies |
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]
InlineDocumentResponse PurchasesGet (int currentPage, int pageSize, string authorization, string sortBy = null, string filter = null)
Get list all receiving inventory documents.
เรียกดูข้อมูลเอกสารใบรับสินค้าทั้งหมดในระบบ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class PurchasesGetExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ReceivingInventoryApi(Configuration.Default);
var currentPage = 56; // int | Query current page document purchases. <br>Example Pattern: <ex>/purchases?currentPage=1 </ex><ex>/purchases?currentPage=1&pageSize=20</ex>
var pageSize = 56; // int | Query document purchases list amount per page. <br>Example Pattern: <ex> /purchases?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 receiving inventory documents.
InlineDocumentResponse result = apiInstance.PurchasesGet(currentPage, pageSize, authorization, sortBy, filter);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ReceivingInventoryApi.PurchasesGet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
currentPage | int | Query current page document purchases. <br>Example Pattern: <ex>/purchases?currentPage=1 </ex><ex>/purchases?currentPage=1&pageSize=20</ex> | |
pageSize | int | Query document purchases list amount per page. <br>Example Pattern: <ex> /purchases?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 PurchasesIdAttachmentPost (string authorization, string id, System.IO.Stream file = null)
Add Attachment to receiving inventory document.
แนบไฟล์ รูปภาพ หรือ เอกสารที่เกี่ยวข้อง ในเอกสารใบรับสินค้าตามเลขที่เอกสารที่ต้องการ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class PurchasesIdAttachmentPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ReceivingInventoryApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var id = id_example; // string | documentId หรือ recordId ของเอกสารที่ต้องการแนบ
var file = BINARY_DATA_HERE; // System.IO.Stream | รูปแบบ file ที่ใช้แนบในเอกสารเป็นแบบ Binary (optional)
try
{
// Add Attachment to receiving inventory document.
AttachmentResponse result = apiInstance.PurchasesIdAttachmentPost(authorization, id, file);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ReceivingInventoryApi.PurchasesIdAttachmentPost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
id | string | documentId หรือ recordId ของเอกสารที่ต้องการแนบ | |
file | System.IO.Stream | รูปแบบ file ที่ใช้แนบในเอกสารเป็นแบบ Binary | [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 PurchasesIdDelete (string authorization, string id)
Get receiving inventory document.
ลบ เอกสารใบรับสินค้า ตามเลขที่เอกสารที่ต้องการ
** การลบเอกสาร เอกสารต้องอยู่ในสถานะ รออนุมัติ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class PurchasesIdDeleteExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ReceivingInventoryApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var id = id_example; // string | ID เอกสารใช้ recordId
try
{
// Get receiving inventory document.
DeleteResponse result = apiInstance.PurchasesIdDelete(authorization, id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ReceivingInventoryApi.PurchasesIdDelete: " + 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]
InlineDocumentResponse PurchasesIdGet (string authorization, string id)
Get receiving inventory document.
เรียกดูข้อมูลเอกสารใบรับสินค้าตามเลขที่เอกสารที่ต้องการ
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class PurchasesIdGetExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ReceivingInventoryApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var id = id_example; // string | ID เอกสารใช้ recordId
try
{
// Get receiving inventory document.
InlineDocumentResponse result = apiInstance.PurchasesIdGet(authorization, id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ReceivingInventoryApi.PurchasesIdGet: " + 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]
InlineDocumentResponse PurchasesIdStatusKeyStatusIdPost (string authorization, string id, string statusId)
Change status of receiving inventory 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 PurchasesIdStatusKeyStatusIdPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ReceivingInventoryApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var id = id_example; // string | ID เอกสารใช้ recordId
var statusId = statusId_example; // string | เปลี่ยนสถานะเอกสารได้ 4 สถานะ <br> awaiting = รออนุมัติ <br> approved = อนุมัติ <br> void = ยกเลิก
try
{
// Change status of receiving inventory document.
InlineDocumentResponse result = apiInstance.PurchasesIdStatusKeyStatusIdPost(authorization, id, statusId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ReceivingInventoryApi.PurchasesIdStatusKeyStatusIdPost: " + 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 | เปลี่ยนสถานะเอกสารได้ 4 สถานะ <br> awaiting = รออนุมัติ <br> approved = อนุมัติ <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]
InlineDocumentResponse PurchasesInlinePost (string authorization, InlineDocument inlineDocument)
Create receiving inventory 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 PurchasesInlinePostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ReceivingInventoryApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var inlineDocument = new InlineDocument(); // InlineDocument |
try
{
// Create receiving inventory document with discount and tax inline.
InlineDocumentResponse result = apiInstance.PurchasesInlinePost(authorization, inlineDocument);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ReceivingInventoryApi.PurchasesInlinePost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
inlineDocument | InlineDocument |
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]
SimpleDocumentResponse PurchasesPost (string authorization, SimpleDocument simpleDocument)
Create receiving inventory 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 PurchasesPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ReceivingInventoryApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var simpleDocument = new SimpleDocument(); // SimpleDocument |
try
{
// Create receiving inventory document.
SimpleDocumentResponse result = apiInstance.PurchasesPost(authorization, simpleDocument);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ReceivingInventoryApi.PurchasesPost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to "Bearer accessToken"] | |
simpleDocument | SimpleDocument |
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 PurchasesSharedocumentPost (string authorization, ShareDocument shareDocument)
Share link receiving inventory document.
แชร์ลิงค์ เอกสารใบรับสินค้าที่ต้องการ จะได้รับลิงค์สำหรับแชร์และเรียกดูเอกสาร
using System.Collections.Generic;
using System.Diagnostics;
using Flowaccount.OpenAPITools.Api;
using Flowaccount.OpenAPITools.Client;
using Flowaccount.OpenAPITools.Model;
namespace Example
{
public class PurchasesSharedocumentPostExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://openapi.flowaccount.com/v1";
var apiInstance = new ReceivingInventoryApi(Configuration.Default);
var authorization = authorization_example; // string | (default to "Bearer accessToken")
var shareDocument = new ShareDocument(); // ShareDocument |
try
{
// Share link receiving inventory document.
ShareDocumentResponse result = apiInstance.PurchasesSharedocumentPost(authorization, shareDocument);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ReceivingInventoryApi.PurchasesSharedocumentPost: " + 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]