API console: admin-tax
Cette page est générée à partir de server/api/openapi.yaml. Son contenu est en anglais ; ne la modifiez pas à la main.
Tax report, organisations’ billing details (V3 B2). Handlers: internal/admin/tax.
GET /api/v1/admin/tax/report
Section intitulée « GET /api/v1/admin/tax/report »Taxable revenue by country and tax type
operationId adminTaxReport · auth: adminSession
Sums of the tax records whose event lies in [from, to) (at most 366 days). Charges are positive, refunds and chargebacks negative, their reversals positive again. Cents, USD.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string<date-time> | yes | |
to |
query | string<date-time> | yes |
| Status | Meaning | Body |
|---|---|---|
| 200 | OK | application/json TaxReport |
| default | Error envelope. The HTTP status follows the error kind. | application/json Error |
Response 200 application/json — TaxReport
from(string, required) to(string, required) currency(string, required) — Always USD.data(array of TaxReportRow, required)country(string, required) — ISO 3166-1 alpha-2; empty when unknown.tax_type(string, required) — The provider’s tax type (gst, vat, sales_tax, …); empty when unknown.provider(PaymentProvider, required)taxable_cents(integer, required) tax_cents(integer, required) events(integer, required)
taxable_cents(integer, required) tax_cents(integer, required)
GET /api/v1/admin/tax/report.csv
Section intitulée « GET /api/v1/admin/tax/report.csv »Taxable revenue by country and tax type, as CSV
operationId adminTaxReportCsv · auth: adminSession
Columns: from, to, country, tax_type, provider, currency, taxable_cents, tax_cents, events; a last TOTAL row.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string<date-time> | yes | |
to |
query | string<date-time> | yes |
| Status | Meaning | Body |
|---|---|---|
| 200 | The report | text/csv string |
| default | Error envelope. The HTTP status follows the error kind. | application/json Error |
Response 200 text/csv — string
GET /api/v1/admin/orgs/{org_id}/billing-profile
Section intitulée « GET /api/v1/admin/orgs/{org_id}/billing-profile »An organisation’s billing details
operationId adminTaxGetBillingProfile · auth: adminSession
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id |
path | string<uuid> | yes |
| Status | Meaning | Body |
|---|---|---|
| 200 | OK | application/json BillingProfile |
| default | Error envelope. The HTTP status follows the error kind. | application/json Error |
Response 200 application/json — BillingProfile
company_name(string, required)address_line1(string, required)address_line2(string, required)city(string, required)state(string, required)postal_code(string, required)country(string, required)tax_id_type(string, required)tax_id(string, required)email(string, required)updated_at(string, required, nullable) — null when nothing was saved yet.
PUT /api/v1/admin/orgs/{org_id}/billing-profile
Section intitulée « PUT /api/v1/admin/orgs/{org_id}/billing-profile »Replace an organisation’s billing details
operationId adminTaxUpdateBillingProfile · auth: adminSession
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_id |
path | string<uuid> | yes |
Request body (required) application/json — BillingProfileInput
company_name(string, maxLength: 200)address_line1(string, maxLength: 200)address_line2(string, maxLength: 200)city(string, maxLength: 200)state(string, maxLength: 200)postal_code(string, maxLength: 20)country(string, maxLength: 2) — ISO 3166-1 alpha-2 code.tax_id_type(string) — One of the names listed by taxListTaxIdTypes.tax_id(string, maxLength: 200)email(string, maxLength: 200) — Address for billing documents; empty uses the owner’s.
| Status | Meaning | Body |
|---|---|---|
| 200 | OK | application/json BillingProfile |
| default | Error envelope. The HTTP status follows the error kind. | application/json Error |
Response 200 application/json — BillingProfile
company_name(string, required)address_line1(string, required)address_line2(string, required)city(string, required)state(string, required)postal_code(string, required)country(string, required)tax_id_type(string, required)tax_id(string, required)email(string, required)updated_at(string, required, nullable) — null when nothing was saved yet.