{"id":106,"date":"2023-08-24T17:25:38","date_gmt":"2023-08-24T10:25:38","guid":{"rendered":"https:\/\/147.50.49.121\/?post_type=docs&#038;p=106"},"modified":"2025-08-08T15:53:34","modified_gmt":"2025-08-08T08:53:34","password":"","slug":"web-api","status":"publish","type":"docs","link":"https:\/\/gestampduty.com\/en\/docs\/web-api\/","title":{"rendered":"Web API"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Authentication (\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e15\u0e31\u0e27\u0e15\u0e19)<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>URL<\/td><td>\/gapi\/v1\/authen<\/td><\/tr><tr><td>Method<\/td><td>POST<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Header :<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th class=\"has-text-align-center\" data-align=\"center\">Name<\/th><th class=\"has-text-align-center\" data-align=\"center\">Required<\/th><th class=\"has-text-align-center\" data-align=\"center\">Type<\/th><th class=\"has-text-align-center\" data-align=\"center\">Description<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\">Authorization<\/td><td class=\"has-text-align-center\" data-align=\"center\">Yes<\/td><td class=\"has-text-align-center\" data-align=\"center\">String<\/td><td class=\"has-text-align-left\" data-align=\"left\">\u0e02\u0e36\u0e49\u0e19\u0e15\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22 &#8220;Basic&lt;1 space&gt;&#8221; <br>, followed by the username and password in the format \"username:password\" encoded in Base64.<br>&nbsp;<br>Example: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Responses :<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th class=\"has-text-align-center\" data-align=\"center\">Code<\/th><th class=\"has-text-align-center\" data-align=\"center\">Description<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\">200<\/td><td class=\"has-text-align-left\" data-align=\"left\">Successfully<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">401<\/td><td class=\"has-text-align-left\" data-align=\"left\">Unauthorized &#8211; The user was not found or incorrect<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">403<\/td><td class=\"has-text-align-left\" data-align=\"left\">Forbidden \u2013 The user is not allow to use the API.<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">404<\/td><td class=\"has-text-align-left\" data-align=\"left\">Not found &#8211; The token was not found or incorrect<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Upload file (\u0e19\u0e33\u0e40\u0e02\u0e49\u0e32\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25)<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>URL<\/td><td>\/gapi\/v1\/uploadfile<\/td><\/tr><tr><td>Method<\/td><td>POST<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Parameter :<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th class=\"has-text-align-center\" data-align=\"center\">Name<\/th><th class=\"has-text-align-center\" data-align=\"center\">Required<\/th><th class=\"has-text-align-center\" data-align=\"center\">Type<\/th><th class=\"has-text-align-center\" data-align=\"center\">Description<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\">file<\/td><td class=\"has-text-align-center\" data-align=\"center\">Yes<\/td><td class=\"has-text-align-center\" data-align=\"center\">String<\/td><td class=\"has-text-align-left\" data-align=\"left\">The file is converted into a binary string.<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">userId<\/td><td class=\"has-text-align-center\" data-align=\"center\">Yes<\/td><td class=\"has-text-align-center\" data-align=\"center\">String<\/td><td class=\"has-text-align-left\" data-align=\"left\">user identity<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">companyAbbr<\/td><td class=\"has-text-align-center\" data-align=\"center\">Yes<\/td><td class=\"has-text-align-center\" data-align=\"center\">String<\/td><td class=\"has-text-align-left\" data-align=\"left\">Company abbreviation found in the Account Information<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">groupName<\/td><td class=\"has-text-align-center\" data-align=\"center\">Yes<\/td><td class=\"has-text-align-center\" data-align=\"center\">String<\/td><td class=\"has-text-align-left\" data-align=\"left\">User group found in the Account Information<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Responses :<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th class=\"has-text-align-center\" data-align=\"center\">Code<\/th><th class=\"has-text-align-center\" data-align=\"center\">Description<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\">202<\/td><td class=\"has-text-align-left\" data-align=\"left\">Accepted<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">401<\/td><td class=\"has-text-align-left\" data-align=\"left\">Unauthorized<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">403<\/td><td class=\"has-text-align-left\" data-align=\"left\">Forbidden \u2013 The user is not allow to use the API.<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">404<\/td><td class=\"has-text-align-left\" data-align=\"left\">Not found<\/td><\/tr><\/tbody><\/table><\/figure>","protected":false},"excerpt":{"rendered":"<p>Authentication (\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e15\u0e31\u0e27\u0e15\u0e19) URL \/gapi\/v1\/authen Method POST Header : Name Required Type Description Authorization Yes String \u0e02\u0e36\u0e49\u0e19\u0e15\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22 &#8220;Basic&lt;1 space&gt;&#8221; \u0e15\u0e48\u0e2d\u0e14\u0e49\u0e27\u0e22 username \u201c:\u201d password \u0e17\u0e35\u0e48\u0e40\u0e02\u0e49\u0e32\u0e23\u0e2b\u0e31\u0e2a\u0e14\u0e49\u0e27\u0e22 base64&nbsp;\u0e40\u0e0a\u0e48\u0e19 Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== Responses : Code Description 200 Successfully 401 Unauthorized &#8211; The user was not found or incorrect 403 Forbidden \u2013 The user is not allow to use the API. 404 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","footnotes":""},"doc_category":[4],"doc_tag":[],"class_list":["post-106","docs","type-docs","status-publish","hentry","doc_category-input_data","entry"],"aioseo_notices":[],"year_month":"2026-05","word_count":83,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Wekij","author_nicename":"wekij-lginkgosoft-co-th","author_url":"https:\/\/gestampduty.com\/en\/author\/wekij-lginkgosoft-co-th\/"},"doc_category_info":[{"term_name":"Input Data","term_url":"https:\/\/gestampduty.com\/en\/docs-category\/input_data\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/gestampduty.com\/en\/wp-json\/wp\/v2\/docs\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gestampduty.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/gestampduty.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/gestampduty.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gestampduty.com\/en\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":13,"href":"https:\/\/gestampduty.com\/en\/wp-json\/wp\/v2\/docs\/106\/revisions"}],"predecessor-version":[{"id":2297,"href":"https:\/\/gestampduty.com\/en\/wp-json\/wp\/v2\/docs\/106\/revisions\/2297"}],"wp:attachment":[{"href":"https:\/\/gestampduty.com\/en\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/gestampduty.com\/en\/wp-json\/wp\/v2\/doc_category?post=106"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/gestampduty.com\/en\/wp-json\/wp\/v2\/doc_tag?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}