Skip to main content
PUT

Set Tax Details

Sets the tax / legal-entity details for a space: the legal entity name and address, VAT number and rate, tax type, country, and receipt notes applied to that space’s sales and receipts. This is the merchant-of-record knob. A marketplace using Gomry as merchant of record can provision one space per seller (Create Space) and configure each seller’s tax identity here, so every sale is billed and receipted under the correct entity. Requires the spaces:write scope.
This endpoint uses PUT (full replace) semantics: the request replaces the entire tax_details object. Any field you omit is reset to its default (empty string / 0 / false). Send the complete set of values you want each time.
This capability is intentionally not exposed through the AI assistant (Aven) or the MCP server — tax identity affects what buyers are charged and what their receipts say, so it is changed only through this explicitly-scoped API key endpoint or the dashboard. GENERAL has no persisted document and therefore no tax details.

Path Parameters

string
required
The space’s identifier (its slug).

Request Body

string
VAT or Sales Tax.
string
The legal entity’s VAT / tax registration number.
number
Tax rate as a percentage, 0100 (e.g. 22 for Italy’s 22% VAT).
Registered legal entity name that appears on receipts.
Registered legal entity address that appears on receipts.
string
Country of the legal entity (ISO code or name).
boolean
Whether the entity is in the EU (affects VAT handling).
boolean
Whether the VAT number has been validated. You may set this if you validate externally; Gomry does not re-run VIES validation on this endpoint.
string
Free-text note printed on this space’s receipts.
string
Optional. Updates the space’s contact email (stored on the space, not inside tax_details).

Response

Returns the updated space — same schema as Get Space — with the new tax_details.