{"id":9680,"date":"2024-05-29T08:21:35","date_gmt":"2024-05-29T08:21:35","guid":{"rendered":"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/quick-reference\/quickstart-billing-account\/"},"modified":"2024-05-29T13:06:31","modified_gmt":"2024-05-29T13:06:31","slug":"quickstart-billing-account","status":"publish","type":"docs","link":"https:\/\/accuweb.cloud\/api\/docs\/latest\/quick-reference\/quickstart-billing-account\/","title":{"rendered":"Quickstart.Billing.Account"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"9680\" class=\"elementor elementor-9680\" data-elementor-post-type=\"docs\">\n\t\t\t\t<div class=\"elementor-element elementor-element-49ac171 e-con-full e-flex e-con e-parent\" data-id=\"49ac171\" data-element_type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-a8a2fbd e-con-full e-flex e-con e-child\" data-id=\"a8a2fbd\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-42f3aa7 elementor-widget elementor-widget-text-editor\" data-id=\"42f3aa7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 05-08-2024 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<h4>Get Account Billing History.<\/h4><p>This service provide billing information about a user account.<\/p><h4><strong>URL:<\/strong><\/h4><p>https:\/\/[hoster-api-host]\/1.0\/billing\/account\/rest\/getaccountbillinghistorybyperiod<\/p><h4 data-sourcepos=\"14:1-14:19\"><strong>Authentication:<\/strong><\/h4><p>You can authenticate using either an application ID (<code>appid<\/code>) or a <a class=\"wpil_keyword_link\" href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/users\/authentication\/#signin-appid-login-password-authenticationresponse\"   title=\"user session\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"1526\">user session<\/a> token (<code>session<\/code>).<\/p><h4><strong>POST fields in the body :<\/strong><\/h4><div><table><thead><tr><th>Fields<\/th><th>Types<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td>session\/appid <span style=\"color: #ff0000;\">*<\/span><\/td><td>string<\/td><td>134bdc9a2892************de8057d<\/td><\/tr><tr><td>starttime <span style=\"color: #ff0000;\">*<\/span><\/td><td>string<\/td><td>1999-01-01 12:00:00 (yyyy-MM-dd HH:mm:ss)<\/td><\/tr><tr><td>endtime <span style=\"color: #ff0000;\">*<\/span><\/td><td>string<\/td><td>1999-01-02 12:00:00 (yyyy-MM-dd HH:mm:ss)<\/td><\/tr><tr><td>period <span style=\"color: #ff0000;\">*<\/span><\/td><td>string<\/td><td>DAY [YEAR, MONTH, WEEK, DAY, HOUR]<\/td><\/tr><tr><td>targetAppid<\/td><td>string<\/td><td>&#8211;<\/td><\/tr><tr><td>timeOffset<\/td><td>string<\/td><td>&#8211;<\/td><\/tr><tr><td>groupNodes<\/td><td>string<\/td><td>&#8211;<\/td><\/tr><\/tbody><\/table><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-f651922 e-con-full e-flex e-con e-child\" data-id=\"f651922\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5a092ca elementor-widget elementor-widget-text-editor\" data-id=\"5a092ca\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>Request<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f563bf7 elementor-widget elementor-widget-docly_code_syntax_highlighter\" data-id=\"f563bf7\" data-element_type=\"widget\" data-widget_type=\"docly_code_syntax_highlighter.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t                    <div class=\"docly-source-code prism-solarizedlight\" data-lng-type=\"bash\">\r\n\t\t\t<pre>\r\n\t\t\t\t<code class=\"language-bash\">\r\n\t\t\t\t\tcurl -X POST \\\n  https:\/\/[hoster-api-host]\/1.0\/billing\/account\/rest\/getaccountbillinghistorybyperiod \\\n  -H &quot;cache-control: no-cache&quot; \\\n  -H &quot;content-type: application\/x-www-form-urlencoded&quot; \\\n  -d &quot;session=582e7dd&amp;starttime=2024-04-01 20:23:55&amp;endtime=2024-04-02 20:23:55&amp;period=DAY&quot;\t\t\t\t<\/code>\r\n\t\t\t<\/pre>\r\n            <\/div>\r\n                \t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7d8c74b elementor-widget elementor-widget-text-editor\" data-id=\"7d8c74b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h5>Response<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-aaf8744 elementor-widget elementor-widget-docly_code_syntax_highlighter\" data-id=\"aaf8744\" data-element_type=\"widget\" data-widget_type=\"docly_code_syntax_highlighter.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t                    <div class=\"docly-source-code prism-solarizedlight\" data-lng-type=\"json\">\r\n\t\t\t<pre>\r\n\t\t\t\t<code class=\"language-json\">\r\n\t\t\t\t\t{\n  &quot;result&quot;: 0,\n  &quot;array&quot;: [\n    {\n      &quot;resourceFreeCost&quot;: 0,\n      &quot;dateTime&quot;: &quot;2024-04-01 00:00:00&quot;,\n      &quot;billNetworkExtAmount&quot;: 0,\n      &quot;usedStorageAmount&quot;: 0,\n      &quot;licenceHours&quot;: 0,\n      &quot;fixedCloudletsCost&quot;: 0,\n      &quot;storageCost&quot;: 0,\n      &quot;type&quot;: &quot;ip&quot;,\n      &quot;resourceBillableAmount&quot;: 0,\n      &quot;networkExtCost&quot;: 0,\n      &quot;hostGroupDisplayName&quot;: &quot;Users&quot;,\n      &quot;isBonus&quot;: false,\n      &quot;flexibleCloudletsFreeAmount&quot;: 0,\n      &quot;nodeCount&quot;: 1,\n      &quot;flexibleCloudletsCost&quot;: 0,\n      &quot;networkExtFreeAmount&quot;: 0,\n      &quot;nodeid&quot;: 1639,\n      &quot;group&quot;: 0,\n      &quot;usedCloudletsAmount&quot;: 3,\n      &quot;cost&quot;: 0.012846,\n      &quot;fixedCloudletsFreeAmount&quot;: 0,\n      &quot;isRemote&quot;: false,\n      &quot;count&quot;: 3,\n      &quot;flexibleCloudletsAmount&quot;: 0,\n      &quot;resourceFreeAmount&quot;: 0,\n      &quot;isPaid&quot;: false,\n      &quot;fixedCloudletsAmount&quot;: 0,\n      &quot;isWithdrawn&quot;: false,\n      &quot;resourceCost&quot;: 0,\n      &quot;minFeeResourceAmount&quot;: 0,\n      &quot;appid&quot;: &quot;08888888888888888888888888888851&quot;,\n      &quot;domain&quot;: &quot;env-7057607&quot;,\n      &quot;billStorageAmount&quot;: 0,\n      &quot;usedNetworkExtAmount&quot;: 0,\n      &quot;storageFreeAmount&quot;: 0,\n      &quot;hostGroupUniqueName&quot;: &quot;user_host_group&quot;,\n      &quot;resourceType&quot;: &quot;OPTION&quot;\n    }, ... \n    ]\n}\t\t\t\t<\/code>\r\n\t\t\t<\/pre>\r\n            <\/div>\r\n                \t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Get Account Billing History. This service provide billing information about a user account. URL: https:\/\/[hoster-api-host]\/1.0\/billing\/account\/rest\/getaccountbillinghistorybyperiod Authentication: You can authenticate using either an application ID (appid) or a user session token (session). POST fields in the body : Fields Types Example session\/appid * string 134bdc9a2892************de8057d starttime * string 1999-01-01 12:00:00 (yyyy-MM-dd HH:mm:ss) endtime * string 1999-01-02 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":9376,"menu_order":6,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_links_to":"","_links_to_target":""},"doc_tag":[],"class_list":["post-9680","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/docs\/9680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/comments?post=9680"}],"version-history":[{"count":61,"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/docs\/9680\/revisions"}],"predecessor-version":[{"id":9776,"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/docs\/9680\/revisions\/9776"}],"up":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/docs\/9376"}],"wp:attachment":[{"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/media?parent=9680"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/accuweb.cloud\/api\/wp-json\/wp\/v2\/doc_tag?post=9680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}