> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solvapay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Attach business tax details to a payment intent

> Applies business or consumer tax location to a payment intent and returns the calculated tax breakdown.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/sdk/payment-intents/{processorPaymentId}/business-details
openapi: 3.0.0
info:
  contact: {}
  description: The SolvaPay REST API specification
  title: SolvaPay REST API
  version: '1.0'
servers: []
security: []
tags: []
paths:
  /v1/sdk/payment-intents/{processorPaymentId}/business-details:
    post:
      tags:
        - Payment Intents
      summary: Attach business tax details to a payment intent
      description: >-
        Applies business or consumer tax location to a payment intent and
        returns the calculated tax breakdown.
      operationId: PaymentIntentSdkController_attachBusinessDetails
      parameters:
        - description: Stripe payment intent ID (pi_…)
          in: path
          name: processorPaymentId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BusinessDetailsDto'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttachBusinessDetailsResponse'
          description: Business details applied and tax breakdown returned
        '400':
          description: Invalid request or business details
        '404':
          description: Payment intent not found
      security:
        - SecretKey: []
components:
  schemas:
    BusinessDetailsDto:
      properties:
        businessName:
          description: Legal business name
          type: string
        country:
          description: ISO 3166-1 alpha-2 country code
          type: string
        customerCity:
          description: Billing city
          type: string
        customerCountry:
          description: ISO 3166-1 alpha-2 billing country (non-business consumers)
          type: string
        customerLine1:
          description: Billing address line 1
          type: string
        customerLine2:
          description: Billing address line 2
          type: string
        customerName:
          description: Customer full name
          maxLength: 100
          type: string
        customerPostalCode:
          description: Billing postal code (required by Stripe Tax for US)
          type: string
        customerRef:
          description: >-
            Customer reference to persist business tax details on the customer
            record. Only honored by the payment-intent business-details
            endpoint; ignored on the checkout-session endpoint.
          type: string
        customerState:
          description: Billing state/region
          type: string
        isBusiness:
          description: Whether the purchase is on behalf of a business
          type: boolean
        taxId:
          description: Tax / VAT identification number
          type: string
        taxIdType:
          description: Tax ID type
          enum:
            - eu_vat
            - gb_vat
            - us_ein
          type: string
      required:
        - isBusiness
      type: object
    AttachBusinessDetailsResponse:
      properties:
        taxBreakdown:
          allOf:
            - $ref: '#/components/schemas/TaxBreakdownDto'
          description: Calculated tax breakdown
      required:
        - taxBreakdown
      type: object
    TaxBreakdownDto:
      properties:
        currency:
          description: ISO 4217 currency code
          type: string
        inclusive:
          description: Whether tax is included in the listed price
          type: boolean
        subtotal:
          description: Pre-tax amount in minor units
          type: number
        taxAmount:
          description: Tax amount in minor units
          type: number
        taxRate:
          description: Tax rate as a decimal (e.g. 0.25 for 25%)
          type: number
        taxType:
          description: Stripe tax type (e.g. vat, sales_tax, gst)
          enum:
            - amusement_tax
            - communications_tax
            - gst
            - hst
            - igst
            - jct
            - lease_tax
            - pst
            - qst
            - retail_delivery_fee
            - rst
            - sales_tax
            - service_tax
            - vat
          type: string
        total:
          description: Total amount in minor units
          type: number
        treatment:
          enum:
            - reverse_charge
            - standard
            - none
            - not_collecting
          type: string
      required:
        - subtotal
        - taxAmount
        - taxRate
        - treatment
        - total
        - currency
        - inclusive
      type: object
  securitySchemes:
    SecretKey:
      bearerFormat: JWT
      description: >-
        Provider secret API key (sk_live_… / sk_test_…) supplied as a Bearer
        token.
      scheme: bearer
      type: http

````