Skip to content

docs(api): align TaxId schemas across fx-account and fx-payment with dev-utils 2.79.0#14

Closed
diegopereira90 wants to merge 3 commits intomainfrom
feat/taxid-spec-alignment
Closed

docs(api): align TaxId schemas across fx-account and fx-payment with dev-utils 2.79.0#14
diegopereira90 wants to merge 3 commits intomainfrom
feat/taxid-spec-alignment

Conversation

@diegopereira90
Copy link
Copy Markdown
Contributor

@diegopereira90 diegopereira90 commented Apr 29, 2026

Summary

  • Aligns fx-account and fx-payment OpenAPI specs with the renamed TaxId domain type from development-utils 2.79.0 (TaxId.numberTaxId.value)
  • Updates TaxIdRequest / TaxIdResponse (fx-account) and TaxId (fx-payment) schemas
  • Updates every inline example in path operations
  • Updates error response field paths (body:owner.taxId.numberbody:owner.taxId.value, body:taxId.numberbody:taxId.value)
  • Updates journey examples (open-multi-currency-account.mdx, withdrawal.mdx)

Why

The previous number name implied a numeric format, but several real-world tax IDs are alphanumeric (ABN, VAT_GB, RFC, USCC, GSTIN, NIF_ES, NIE, PARTITA_IVA, CODICE_FISCALE, etc.). The value name is honest about the contract being a string identifier.

Test plan

  • Spec lints / OpenAPI tooling
  • Visual review on the rendered docs site

🤖 Generated with Claude Code

fx-account: drop redundant `country` field and rename `value` → `number`
on TaxIdRequest/TaxIdResponse to match the shared TaxId domain type.
Update 3 invalidTaxId error examples and 4 inline body examples to the
new shape. Add a markdown country-mapping table to TaxIdType so
consumers can discover the right type for their jurisdiction without
the redundant field.

fx-payment: factor out TaxIdType as a proper enum schema (all 59 values)
with the same markdown country table, replacing the previous untyped
`type: string`. Existing inline body examples already use {type, number}
so no example changes were needed.

Companion to fx-account PR #122.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mintlify
Copy link
Copy Markdown

mintlify Bot commented Apr 29, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
tracefinance 🟢 Ready View Preview Apr 29, 2026, 1:32 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Two journey docs still showed stale taxId shapes that the openapi.yml
update (previous commit) made inconsistent with the spec:

- open-multi-currency-account.mdx: two curl bodies used the old
  {value, type, country} shape from fx-account. Updated to {type, number}.
- withdrawal.mdx: the fx-payment beneficiary example sent taxId as a
  bare string ("12345678901"); the fx-payment spec defines TaxId as an
  object {type, number}. Pre-existing inconsistency, fixed for clarity.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Aligns fx-account and fx-payment OpenAPI specs with development-utils
2.79.0, which renamed `TaxId.number` → `TaxId.value`. Updates:

- TaxIdRequest / TaxIdResponse schema (fx-account)
- TaxId schema (fx-payment)
- All inline JSON/YAML examples in path operations
- Error response field paths (e.g., `body:owner.taxId.number` →
  `body:owner.taxId.value`)
- Journey examples (open-multi-currency-account, withdrawal)

The `number` name implied a numeric format, but several types are
alphanumeric (ABN, VAT_GB, RFC, USCC, GSTIN, NIF_ES, NIE, etc.).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@diegopereira90 diegopereira90 changed the title docs(api): align TaxId schemas across fx-account and fx-payment docs(api): align TaxId schemas across fx-account and fx-payment with dev-utils 2.79.0 Apr 29, 2026
@diegopereira90
Copy link
Copy Markdown
Contributor Author

Superseded by Mário's #15 (docs/api-audit-pass), which landed first on main and includes the same numbervalue rename across the fx-account and fx-payment OpenAPI specs (commit 53869a1) plus drops the redundant country field. The journey examples (open-multi-currency-account.mdx, withdrawal.mdx) were also updated. Closing — no further work needed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant