> ## 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':
          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
        customerRef:
          description: >-
            Customer reference to persist business tax details on the customer
            record
          type: string
        isBusiness:
          description: Whether the purchase is on behalf of a business
          type: boolean
        taxId:
          description: Tax / VAT identification number
          type: string
      required:
        - isBusiness
      type: object
  securitySchemes:
    SecretKey:
      bearerFormat: JWT
      description: >-
        Provider secret API key (sk_live_… / sk_test_…) supplied as a Bearer
        token.
      scheme: bearer
      type: http

````