All URIs are relative to https://openapi.flowaccount.com/v1
Method | HTTP request | Description |
---|---|---|
taxInvoicesEmailDocumentPost | POST /tax-invoices/email-document | Send Email tax invoice document |
taxInvoicesGet | GET /tax-invoices | Get list all tax invocie documents. |
taxInvoicesIdAttachmentPost | POST /tax-invoices/{id}/attachment | Add Attachment to tax Invoices document. |
taxInvoicesIdDelete | DELETE /tax-invoices/{id} | Get tax invoices document. |
taxInvoicesIdGet | GET /tax-invoices/{id} | Get tax invoices document. |
taxInvoicesIdPaymentPost | POST /tax-invoices/{id}/payment | Change paid status of tax-invoice document. |
taxInvoicesIdStatusKeyStatusIdPost | POST /tax-invoices/{id}/status-key/{statusId} | Change status of tax invoices document. |
taxInvoicesInlinePost | POST /tax-invoices/inline | Create tax invocie document with discount and tax inline. |
taxInvoicesPost | POST /tax-invoices | Create tax invocie document. |
taxInvoicesSharedocumentPost | POST /tax-invoices/sharedocument | Share link tax invoice document. |
\OpenAPI\Client\Model\SendEmailResponse taxInvoicesEmailDocumentPost($authorization, $send_email_coppies)
Send Email tax invoice document
ส่งเอกสารใบกำกับภาษี หรือ ใบกำกับภาษี/ใบเสร็จรับเงิน ผ่านทางอีเมล ตามเลขที่เอกสารที่ต้องการ
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\TaxInvoiceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$authorization = 'Bearer accessToken'; // string |
$send_email_coppies = new \OpenAPI\Client\Model\SendEmailCoppies(); // \OpenAPI\Client\Model\SendEmailCoppies |
try {
$result = $apiInstance->taxInvoicesEmailDocumentPost($authorization, $send_email_coppies);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxInvoiceApi->taxInvoicesEmailDocumentPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
send_email_coppies | \OpenAPI\Client\Model\SendEmailCoppies |
\OpenAPI\Client\Model\SendEmailResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\InlineDocumentResponse taxInvoicesGet($current_page, $page_size, $authorization, $sort_by, $filter)
Get list all tax invocie documents.
เรียกดูข้อมูลเอกสารใบกำกับภาษี หรือ ใบกำกับภาษี/ใบเสร็จรับเงิน ทั้งหมดในระบบ
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\TaxInvoiceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$current_page = 56; // int | Query current page document tax invoices. <br>Example Pattern: <ex>/tax-invoices?currentPage=1 </ex><ex>/tax-invoices?currentPage=1&pageSize=20</ex>
$page_size = 56; // int | Query document tax invoices list amount per page. <br>Example Pattern: <ex> /tax-invoices?pageSize=20 </ex>
$authorization = 'Bearer accessToken'; // string |
$sort_by = 'sort_by_example'; // string |
$filter = 'filter_example'; // string |
try {
$result = $apiInstance->taxInvoicesGet($current_page, $page_size, $authorization, $sort_by, $filter);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxInvoiceApi->taxInvoicesGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
current_page | int | Query current page document tax invoices. <br>Example Pattern: <ex>/tax-invoices?currentPage=1 </ex><ex>/tax-invoices?currentPage=1&pageSize=20</ex> | |
page_size | int | Query document tax invoices list amount per page. <br>Example Pattern: <ex> /tax-invoices?pageSize=20 </ex> | |
authorization | string | [default to 'Bearer accessToken'] | |
sort_by | string | [optional] | |
filter | string | [optional] |
\OpenAPI\Client\Model\InlineDocumentResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\AttachmentResponse taxInvoicesIdAttachmentPost($authorization, $id, $file)
Add Attachment to tax Invoices document.
แนบไฟล์ รูปภาพ หรือ เอกสารที่เกี่ยวข้อง ในเอกสารใบกำกับภาษี หรือ ใบกำกับภาษี/ใบเสร็จรับเงิน ตามเลขที่เอกสารที่ต้องการ
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\TaxInvoiceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$authorization = 'Bearer accessToken'; // string |
$id = 'id_example'; // string | documentId หรือ recordId ของเอกสารที่ต้องการแนบ
$file = "/path/to/file.txt"; // \SplFileObject | รูปแบบ file ที่ใช้แนบในเอกสารเป็นแบบ Binary
try {
$result = $apiInstance->taxInvoicesIdAttachmentPost($authorization, $id, $file);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxInvoiceApi->taxInvoicesIdAttachmentPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
id | string | documentId หรือ recordId ของเอกสารที่ต้องการแนบ | |
file | \SplFileObject**\SplFileObject** | รูปแบบ file ที่ใช้แนบในเอกสารเป็นแบบ Binary | [optional] |
\OpenAPI\Client\Model\AttachmentResponse
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\DeleteResponse taxInvoicesIdDelete($authorization, $id)
Get tax invoices document.
ลบ เอกสารใบกำกับภาษี หรือ ใบกำกับภาษี/ใบเสร็จรับเงิน ตามเลขที่เอกสารที่ต้องการ
** การลบเอกสาร เอกสารต้องอยู่ในสถานะรอดำเนินการ
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\TaxInvoiceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$authorization = 'Bearer accessToken'; // string |
$id = 'id_example'; // string | ID เอกสารใช้ recordId
try {
$result = $apiInstance->taxInvoicesIdDelete($authorization, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxInvoiceApi->taxInvoicesIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
id | string | ID เอกสารใช้ recordId |
\OpenAPI\Client\Model\DeleteResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\SimpleDocumentResponse taxInvoicesIdGet($authorization, $id)
Get tax invoices document.
เรียกดูข้อมูลเอกสารใบกำกับภาษี หรือ ใบกำกับภาษี/ใบเสร็จรับเงิน ตามเลขที่เอกสารที่ต้องการ
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\TaxInvoiceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$authorization = 'Bearer accessToken'; // string | ID เอกสารใช้ recordId
$id = 'id_example'; // string | ID เอกสารใช้ recordId
try {
$result = $apiInstance->taxInvoicesIdGet($authorization, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxInvoiceApi->taxInvoicesIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | ID เอกสารใช้ recordId | [default to 'Bearer accessToken'] |
id | string | ID เอกสารใช้ recordId |
\OpenAPI\Client\Model\SimpleDocumentResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\InlineDocumentResponse taxInvoicesIdPaymentPost($authorization, $id, $payment_document)
Change paid status of tax-invoice document.
เก็บเงิน เอกสารพร้อมเปลี่ยนสถานะเอกสาร เฉพาะเอกสารใบกำกับภาษี/ใบเสร็จรับเงิน (Tax Invoice/Reciept)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\TaxInvoiceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$authorization = 'Bearer accessToken'; // string |
$id = 'id_example'; // string | ID เอกสารใช้ recordId หรือ documentId
$payment_document = new \OpenAPI\Client\Model\PaymentDocument(); // \OpenAPI\Client\Model\PaymentDocument |
try {
$result = $apiInstance->taxInvoicesIdPaymentPost($authorization, $id, $payment_document);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxInvoiceApi->taxInvoicesIdPaymentPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
id | string | ID เอกสารใช้ recordId หรือ documentId | |
payment_document | \OpenAPI\Client\Model\PaymentDocument |
\OpenAPI\Client\Model\InlineDocumentResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\InlineDocumentResponse taxInvoicesIdStatusKeyStatusIdPost($authorization, $id, $status_id)
Change status of tax invoices document.
เปลี่ยนสถานะของเอกสารเอกสารใบกำกับภาษี หรือ ใบกำกับภาษี/ใบเสร็จรับเงิน สร้างเอกสารใหม่ครั้งแรกจะได้รับสถานะ รอดำเนินการ (awaiting)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\TaxInvoiceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$authorization = 'Bearer accessToken'; // string |
$id = 'id_example'; // string | ID เอกสารใช้ recordId
$status_id = 'status_id_example'; // string | เปลี่ยนสถานะเอกสารได้ 3 สถานะ <br> awaiting = รอดำเนินการ <br> invoicedelivered = รอเก็บเงิน <br> void = ยกเลิก
try {
$result = $apiInstance->taxInvoicesIdStatusKeyStatusIdPost($authorization, $id, $status_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxInvoiceApi->taxInvoicesIdStatusKeyStatusIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
id | string | ID เอกสารใช้ recordId | |
status_id | string | เปลี่ยนสถานะเอกสารได้ 3 สถานะ <br> awaiting = รอดำเนินการ <br> invoicedelivered = รอเก็บเงิน <br> void = ยกเลิก |
\OpenAPI\Client\Model\InlineDocumentResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\InlineDocumentResponse taxInvoicesInlinePost($authorization, $inline_document)
Create tax invocie document with discount and tax inline.
สร้างเอกสารใบกำกับภาษี หรือ ใบกำกับภาษี/ใบเสร็จรับเงิน แบบส่วนลด หรือ ภาษี แยกตามรายการสินค้า เมื่อสร้างสำเร็จสถานะเอกสารจะอยู่ในสถานะ รอดำเนินการ (awaiting)
ข้อมูลการออกเอกสารใบกำกับภาษี : https://flowaccount.com/blog/ใบกำกับภาษี
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\TaxInvoiceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$authorization = 'Bearer accessToken'; // string |
$inline_document = new \OpenAPI\Client\Model\InlineDocument(); // \OpenAPI\Client\Model\InlineDocument |
try {
$result = $apiInstance->taxInvoicesInlinePost($authorization, $inline_document);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxInvoiceApi->taxInvoicesInlinePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
inline_document | \OpenAPI\Client\Model\InlineDocument |
\OpenAPI\Client\Model\InlineDocumentResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\SimpleDocumentResponse taxInvoicesPost($authorization, $simple_document)
Create tax invocie document.
สร้างเอกสารใบกำกับภาษี หรือ ใบกำกับภาษี/ใบเสร็จรับเงิน เมื่อสร้างสำเร็จสถานะเอกสารจะอยู่ในสถานะ รอดำเนินการ (awaiting)
ข้อมูลการออกเอกสารใบกำกับภาษี : https://flowaccount.com/blog/ใบกำกับภาษี
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\TaxInvoiceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$authorization = 'Bearer accessToken'; // string |
$simple_document = new \OpenAPI\Client\Model\SimpleDocument(); // \OpenAPI\Client\Model\SimpleDocument |
try {
$result = $apiInstance->taxInvoicesPost($authorization, $simple_document);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxInvoiceApi->taxInvoicesPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
simple_document | \OpenAPI\Client\Model\SimpleDocument |
\OpenAPI\Client\Model\SimpleDocumentResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\ShareDocumentResponse taxInvoicesSharedocumentPost($authorization, $share_document)
Share link tax invoice document.
แชร์ลิงค์ เอกสารใบกำกับภาษี หรือ ใบกำกับภาษี/ใบเสร็จรับเงิน ที่ต้องการ จะได้รับลิงค์สำหรับแชร์และเรียกดูเอกสาร
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\TaxInvoiceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$authorization = 'Bearer accessToken'; // string |
$share_document = new \OpenAPI\Client\Model\ShareDocument(); // \OpenAPI\Client\Model\ShareDocument |
try {
$result = $apiInstance->taxInvoicesSharedocumentPost($authorization, $share_document);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TaxInvoiceApi->taxInvoicesSharedocumentPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
share_document | \OpenAPI\Client\Model\ShareDocument |
\OpenAPI\Client\Model\ShareDocumentResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]