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 all receiving inventory documents. |
purchasesIdAttachmentPost | POST /purchases/{id}/attachment | Attachment receiving inventory document. |
purchasesIdDelete | DELETE /purchases/{id} | Delete receiving inventory document. |
purchasesIdGet | GET /purchases/{id} | Get receiving inventory document. |
purchasesIdPaymentPost | POST /purchases/{id}/payment | Change status is paid receiving inventory document. |
purchasesIdPut | PUT /purchases/{id} | Edit receiving inventory document. |
purchasesIdStatusStatusIdPost | POST /purchases/{id}/status/{statusId} | Change status receiving inventory document. |
purchasesInlinePost | POST /purchases/inline | Create receiving inventory document inline discount or inline vat. |
purchasesInlineWithPaymentPost | POST /purchases/inline/with-payment | Create receiving inventory document inline discount or inline vat with payment. |
purchasesPost | POST /purchases | Create receiving inventory document. |
purchasesSharedocumentPost | POST /purchases/sharedocument | Share link receiving inventory document. |
purchasesWithPaymentPost | POST /purchases/with-payment | Create receiving inventory document with payment. |
\OpenAPI\Client\Model\SendEmailResponse purchasesEmailDocumentPost($authorization, $send_email_coppies)
Send email receiving inventory document.
ส่งเอกสารใบรับสินค้า ผ่านทางอีเมล ตามเลขที่เอกสารที่ต้องการ
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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->purchasesEmailDocumentPost($authorization, $send_email_coppies);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesEmailDocumentPost: ', $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\AllDocumentResponse purchasesGet($current_page, $page_size, $authorization, $sort_by, $filter)
Get all receiving inventory documents.
เรียกดูข้อมูลเอกสารใบรับสินค้าทั้งหมดในระบบ
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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 purchases. <br>Example Pattern: <ex>/purchases?currentPage=1 </ex><ex>/purchases?currentPage=1&pageSize=20</ex>
$page_size = 56; // int | Query document purchases list amount per page. <br>Example Pattern: <ex> /purchases?pageSize=20 </ex>
$authorization = 'Bearer accessToken'; // string |
$sort_by = 'sort_by_example'; // string | Query document purchases list amount per page. <br>Example Pattern: <ex> /purchases?sortBy=[{'name':'publishedOn','sortOrder':'asc'},{'name':'documentSerial','sortOrder':'desc'}] </ex><ex>/purchases?sortBy=[{'name':'Contact.NameLocal','sortOrder':'desc'},{'name':'documentSerial','sortOrder':'desc'}]</ex><ex>/purchases?sortBy=[{'name':'Value','sortOrder':'asc'},{'name':'documentSerial','sortOrder':'desc'}]</ex><ex>/purchases?sortBy=[{'name':'Status','sortOrder':'asc'},{'name':'documentSerial','sortOrder':'desc'}]</ex>
$filter = 'filter_example'; // string | Query filter purchases. <br>Example Pattern: <ex> /purchases?filter=[{'columnName':'Contact.NameLocal','columnValue':'Contact Name','columnPredicateOperator':'And'}] </ex>
try {
$result = $apiInstance->purchasesGet($current_page, $page_size, $authorization, $sort_by, $filter);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
current_page | int | Query current page document purchases. <br>Example Pattern: <ex>/purchases?currentPage=1 </ex><ex>/purchases?currentPage=1&pageSize=20</ex> | |
page_size | int | Query document purchases list amount per page. <br>Example Pattern: <ex> /purchases?pageSize=20 </ex> | |
authorization | string | [default to 'Bearer accessToken'] | |
sort_by | string | Query document purchases list amount per page. <br>Example Pattern: <ex> /purchases?sortBy=[{'name':'publishedOn','sortOrder':'asc'},{'name':'documentSerial','sortOrder':'desc'}] </ex><ex>/purchases?sortBy=[{'name':'Contact.NameLocal','sortOrder':'desc'},{'name':'documentSerial','sortOrder':'desc'}]</ex><ex>/purchases?sortBy=[{'name':'Value','sortOrder':'asc'},{'name':'documentSerial','sortOrder':'desc'}]</ex><ex>/purchases?sortBy=[{'name':'Status','sortOrder':'asc'},{'name':'documentSerial','sortOrder':'desc'}]</ex> | [optional] |
filter | string | Query filter purchases. <br>Example Pattern: <ex> /purchases?filter=[{'columnName':'Contact.NameLocal','columnValue':'Contact Name','columnPredicateOperator':'And'}] </ex> | [optional] |
\OpenAPI\Client\Model\AllDocumentResponse
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 purchasesIdAttachmentPost($authorization, $id, $file)
Attachment receiving inventory document.
แนบไฟล์ รูปภาพ หรือ เอกสารที่เกี่ยวข้อง ในเอกสารใบรับสินค้าตามเลขที่เอกสารที่ต้องการ
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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->purchasesIdAttachmentPost($authorization, $id, $file);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesIdAttachmentPost: ', $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 purchasesIdDelete($authorization, $id)
Delete receiving inventory document.
ลบ เอกสารใบรับสินค้า ตามเลขที่เอกสารที่ต้องการ
** การลบเอกสาร เอกสารต้องอยู่ในสถานะ รออนุมัติ
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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->purchasesIdDelete($authorization, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesIdDelete: ', $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\InlineDocumentResponse purchasesIdGet($authorization, $id)
Get receiving inventory document.
เรียกดูข้อมูลเอกสารใบรับสินค้าตามเลขที่เอกสารที่ต้องการ
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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->purchasesIdGet($authorization, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
id | string | ID เอกสารใช้ recordId |
\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 purchasesIdPaymentPost($authorization, $id, $payment_paid_document)
Change status is paid receiving inventory document.
ขำระเงิน เอกสารใบรับสินค้าเปลี่ยนสถานะเป็น ชำระเงินแล้ว
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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_paid_document = new \OpenAPI\Client\Model\PaymentPaidDocument(); // \OpenAPI\Client\Model\PaymentPaidDocument |
try {
$result = $apiInstance->purchasesIdPaymentPost($authorization, $id, $payment_paid_document);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesIdPaymentPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
id | string | ID เอกสารใช้ recordId หรือ documentId | |
payment_paid_document | \OpenAPI\Client\Model\PaymentPaidDocument |
\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 purchasesIdPut($authorization, $id, $update_inline_document)
Edit receiving inventory document.
แก้ไขข้อมูลเอกสารใบรับสินค้า ตามเลขที่เอกสารที่ต้องการเอกสารต้องเป็นสถานะ รออนุมัติ (Awaiting)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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
$update_inline_document = new \OpenAPI\Client\Model\UpdateInlineDocument(); // \OpenAPI\Client\Model\UpdateInlineDocument |
try {
$result = $apiInstance->purchasesIdPut($authorization, $id, $update_inline_document);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
id | string | ID เอกสารใช้ recordId | |
update_inline_document | \OpenAPI\Client\Model\UpdateInlineDocument |
\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 purchasesIdStatusStatusIdPost($authorization, $id, $status_id)
Change status receiving inventory document.
เปลี่ยนสถานะของเอกสารใบรับสินค้า สร้างเอกสารใหม่ครั้งแรกจะได้รับสถานะ รออนุมัติ (awaiting)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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> approved = อนุมัติ <br> void = ยกเลิก
try {
$result = $apiInstance->purchasesIdStatusStatusIdPost($authorization, $id, $status_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesIdStatusStatusIdPost: ', $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> approved = อนุมัติ <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 purchasesInlinePost($authorization, $inline_document)
Create receiving inventory document inline discount or inline vat.
สร้างเอกสารใบรับสินค้า แบบส่วนลด หรือ ภาษี แยกตามรายการสินค้า เมื่อสร้างสำเร็จสถานะเอกสารจะอยู่ในสถานะ รออนุมัติ (awaiting)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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->purchasesInlinePost($authorization, $inline_document);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesInlinePost: ', $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\InlineDocumentResponse purchasesInlineWithPaymentPost($authorization, $inline_document_with_payment_paid)
Create receiving inventory document inline discount or inline vat with payment.
สร้างเอกสารใบรับสินค้า แบบส่วนลด หรือ ภาษี แยกตามรายการสินค้า พร้อมชำระเงิน เมื่อสร้างสำเร็จสถานะเอกสารจะอยู่ในสถานะ ชำระเงินแล้ว (paid)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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_with_payment_paid = new \OpenAPI\Client\Model\InlineDocumentWithPaymentPaid(); // \OpenAPI\Client\Model\InlineDocumentWithPaymentPaid |
try {
$result = $apiInstance->purchasesInlineWithPaymentPost($authorization, $inline_document_with_payment_paid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesInlineWithPaymentPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
inline_document_with_payment_paid | \OpenAPI\Client\Model\InlineDocumentWithPaymentPaid |
\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 purchasesPost($authorization, $simple_document)
Create receiving inventory document.
สร้างเอกสารใบรับสินค้า เมื่อสร้างสำเร็จสถานะเอกสารจะอยู่ในสถานะ รออนุมัติ (awaiting)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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->purchasesPost($authorization, $simple_document);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesPost: ', $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 purchasesSharedocumentPost($authorization, $share_document)
Share link receiving inventory document.
แชร์ลิงค์ เอกสารใบรับสินค้าที่ต้องการ จะได้รับลิงค์สำหรับแชร์และเรียกดูเอกสาร
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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->purchasesSharedocumentPost($authorization, $share_document);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesSharedocumentPost: ', $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]
\OpenAPI\Client\Model\SimpleDocumentResponse purchasesWithPaymentPost($authorization, $simple_document_with_payment_paid)
Create receiving inventory document with payment.
สร้างเอกสารใบรับสินค้า พร้อมชำระเงิน เมื่อสร้างสำเร็จสถานะเอกสารจะอยู่ในสถานะ ชำระเงินแล้ว (paid)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\ReceivingInventoryApi(
// 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_with_payment_paid = new \OpenAPI\Client\Model\SimpleDocumentWithPaymentPaid(); // \OpenAPI\Client\Model\SimpleDocumentWithPaymentPaid |
try {
$result = $apiInstance->purchasesWithPaymentPost($authorization, $simple_document_with_payment_paid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReceivingInventoryApi->purchasesWithPaymentPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | [default to 'Bearer accessToken'] | |
simple_document_with_payment_paid | \OpenAPI\Client\Model\SimpleDocumentWithPaymentPaid |
\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]