Skip to content
Console
Menu

Generated Assets

Workflows

Getting Started

Authentication

KV Store

List tax threshold statuses

Lists where the environment's consumer sales stand against each jurisdiction's digital-services tax registration threshold, per its own…

Lists where the environment's consumer sales stand against each jurisdiction's digital-services tax registration threshold, per its own window. EU and UK have no threshold and are not tracked.

  • Path GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/tax_threshold_statuses
  • Scope billing:read
  • Effect read — nothing is written.
  • Collection tax_threshold_statuses
  • Query page_size, page_token
  • Pagination the answer carries tax_threshold_statuses and, when there is more, next_page_token

#Request

FieldTypeWhat it is
parentstringThe parent to list in. Required.
page_sizeint32At most this many; default 50, clamped to 1000.
page_tokenstringnext_page_token of the previous page.

#Response

FieldTypeWhat it is
tax_threshold_statusesTaxThresholdStatus[]The page.
next_page_tokenstringThe token of the next page; empty on the last page.

#TaxThresholdStatus

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/tax_threshold_statuses/{threshold}, the threshold's id (au-gst, us-tx).
uidstringThe threshold's id, as in name. Output only.
metaResourceMetaResource metadata; not set for a computed view.
region_codestringThe jurisdiction's country, upper-case ISO 3166-1 alpha-2. Output only.
subdivision_codestringThe jurisdiction's subdivision (a US state, TX); empty for a country. Output only.
tax_namestringThe tax the threshold registers for, for example GST. Output only.
currency_codestringThe threshold's currency, upper-case ISO 4217. Output only.
threshold_amountstringThe amount that triggers registration, integer minor units of currency_code; "0" when the threshold is a transaction count only. Output only.
threshold_transaction_countint64The transaction count that triggers registration; 0 when none. Output only.
window_kindstringrolling_12_months, calendar_year, or prior_or_current_calendar_year. Output only.
window_start_timetimestampThe start (inclusive) of the window the figures below cover. Output only.
window_end_timetimestampThe end of the window (the moment of the read for a rolling window). Output only.
sales_amountstringThe consumer paid sales in the window, net of tax, in currency_code minor units. Business sales (a tax id was given) are excluded. Output only.
sales_transaction_countint64The number of those sales. Output only.
percentint32How close the sales are to the threshold, in whole percent (the higher of the amount and the count); it can exceed 100. Output only.
alerted_percentint32The highest alert level (70, 90, 100) already sent for this window; 0 if none. Output only.
unconverted_currency_codesstring[]Currencies of sales that could not be converted into currency_code (no rate in the rate table) and so are not counted in sales_amount. Output only.
source_urlstringThe authority page the threshold comes from. Output only.
effective_timetimestampWhen the threshold row took effect. Output only.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/tax_threshold_statuses" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"