Skip to content
Proud to collaborate with Microsoft for Startups

stripe.tax_ids.create_tax_id ​

Attach a tax ID (CNPJ/CPF and others) to a Stripe customer

Attach a tax ID to a customer so it appears on their invoices.

For Brazil the two types that matter are br_cnpj (company) and br_cpf (individual) — without one, an invoice to a Brazilian business is not usable for their accounting.

Acts on the CUSTOMER'S OWN Stripe account, authenticated via the org-scoped Stripe connection selected by cloud_connection_uuid.

Inputs:

  • cloud_connection_uuid: Org-scoped Stripe connection (customer's own account).
  • customer_id: Stripe customer ID (cus_...).
  • tax_id_type: Stripe tax ID type, e.g. br_cnpj, br_cpf, eu_vat.
  • value: The tax ID itself, e.g. the CNPJ number.

Outputs (terminal state_data):

  • tax_id: str
  • tax_id_type: str
  • value: str
  • customer_id: str
  • verification_status: str

Connection required: cloud_connection_uuid — the organization's own Stripe account credentials; there is no platform-key fallback.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-stripe
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuiduuidYes—Org-scoped Stripe connection (customer's own account)
customer_idstringYes—Stripe customer ID (cus_...)
tax_id_typestringYes—Stripe tax ID type, e.g. br_cnpj, br_cpf, eu_vat
valuestringYes—The tax ID itself, e.g. the CNPJ number

Output Schema ​

FieldTypeRequiredDefaultDescription
tax_idstringNo——
tax_id_typestringNo——
valuestringNo——
customer_idstringNo——
verification_statusstringNo——
cloud_connection_uuiduuidNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
errorstringNo——
error_typestringNo——
failed_layerintegerNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "stripe.tax_ids.create_tax_id",
  "initial_data": {
    "cloud_connection_uuid": "value",
    "customer_id": "value",
    "tax_id_type": "value",
    "value": "value"
  }
}