TaxRate
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
向使用者收取服務費用時適用的稅率,可根據商家或服務來設定。
JSON 表示法 |
{
"microPercent": integer
} |
欄位 |
microPercent |
integer
稅率以一個百分比的百萬為單位,有效位數可達 6 位的精確度。舉例來說,如果稅率是 7.253%,這個欄位就應設定為 7253000。 如果這個欄位未設定或設為 0,則此商家就其提供的任何服務向使用者收取的總價格就是 Service.price 指定的實際價格。系統會假設服務價格為免稅或已包含適用稅金。系統不會在獨立的明細項目中向使用者顯示稅金。 如果將這個欄位設定為任何非零值,則此商家就其提供的任何服務向使用者收取的總價格,將包含服務價格加上以此處提供的稅率計算的稅金。最小貨幣單位的小數 (例如 1 美分後面的小數) 會採用銀行家捨入法。系統會在獨立的明細項目中向使用者顯示稅金。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eTax rate is represented in millionths of a percent, allowing for six decimal places of precision (e.g., 7.253% is represented as 7253000).\u003c/p\u003e\n"],["\u003cp\u003eIf \u003ccode\u003emicroPercent\u003c/code\u003e is 0 or not set, the service price is considered tax-inclusive or exempt, and no separate tax is charged or displayed.\u003c/p\u003e\n"],["\u003cp\u003eWhen \u003ccode\u003emicroPercent\u003c/code\u003e is any non-zero value, the total price includes the service price plus calculated tax, displayed as a separate line item to the user.\u003c/p\u003e\n"],["\u003cp\u003eTaxes are calculated using the provided \u003ccode\u003emicroPercent\u003c/code\u003e and rounded to the nearest even value in the smallest currency unit.\u003c/p\u003e\n"]]],[],null,["# TaxRate\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA tax rate applied when charging the user for a service, and which can be set on either a per merchant, or per service basis.\n\n| JSON representation |\n|-------------------------------------|\n| ``` { \"microPercent\": integer } ``` |\n\n| Fields ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `micro``Percent` | `integer` A tax rate in millionths of one percent, effectively giving 6 decimals of precision. For example, if the tax rate is 7.253%, this field should be set to 7253000. If this field is left unset or set to 0, the total price charged to a user for any service provided by this merchant is the exact price specified by Service.price. The service price is assumed to be exempt from or already inclusive of applicable taxes. Taxes will not be shown to the user as a separate line item. If this field is set to any nonzero value, the total price charged to a user for any service provided by this merchant will include the service price plus the tax assessed using the tax rate provided here. Fractions of the smallest currency unit (for example, fractions of one cent) will be rounded using nearest even rounding. Taxes will be shown to the user as a separate line item. |"]]