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

# Upsert deal splits

> 指定されたIDを使用して、取引の取引分割の作成または置換を行います。各取引の取引分割の割合は合計で1.0（100％）にする必要があり、小数点以下は8桁まで指定できます。

export const ScopesList = ({scopes = [], description = "この API には、次のいずれかのスコープが必要です。"}) => {
  if (!scopes || scopes.length === 0) {
    return null;
  }
  const sortedScopes = scopes.sort((a, b) => a.localeCompare(b));
  return <div>
      <div className="text-sm mb-2">{description}</div>
      <div>
        {sortedScopes.map((scope, index) => <div key={index}>
            <code>
              <span className="text-xs">{scope}</span>
            </code>
          </div>)}
      </div>
    </div>;
};

export const SupportedProducts = ({marketing, sales, service, cms, marketingLevel, salesLevel, serviceLevel, cmsLevel}) => {
  const translations = {
    header: "サポートされる製品",
    description: "次のいずれかの製品またはそれ以上が必要です。",
    productNames: {
      marketing: "Marketing Hub",
      sales: "Sales Hub",
      service: "Service Hub",
      cms: "Content Hub"
    },
    tiers: {
      free: "無料ツール",
      starter: "Starter",
      professional: "Professional",
      enterprise: "Enterprise"
    }
  };
  const translateTier = tier => {
    if (!tier) return '';
    const lowerTier = tier.toLowerCase();
    return translations.tiers[lowerTier] || tier;
  };
  const products = [{
    name: marketing ? translations.productNames.marketing : '',
    level: translateTier(marketingLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/marketing-bolt.svg",
    alt: "Marketing Hub"
  }, {
    name: sales ? translations.productNames.sales : '',
    level: translateTier(salesLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/sales-star.svg",
    alt: "Sales Hub"
  }, {
    name: service ? translations.productNames.service : '',
    level: translateTier(serviceLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/service-heart.svg",
    alt: "Service Hub"
  }, {
    name: cms ? translations.productNames.cms : '',
    level: translateTier(cmsLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/content-play.svg",
    alt: "Content Hub"
  }].filter(product => product.name && product.level);
  if (products.length === 0) return null;
  return <div>
      <div className="text-sm mb-2">{translations.description}</div>
      <div className={`grid ${products.length === 1 ? 'grid-cols-1' : 'grid-cols-2'} gap-1.5`}>
        {products.map((product, index) => <div key={index} style={{
    display: 'flex',
    alignItems: 'center'
  }}>
            <img src={product.icon} alt={product.alt} className="w-3.5 h-3.5 mr-1.5 mt-2.5 mb-2.5 flex-shrink-0 align-middle" />
            <span className="font-medium mr-1 text-sm">{product.name} -</span>
            <span className="text-sm">{product.level}</span>
          </div>)}
      </div>
    </div>;
};

<AccordionGroup>
  <Accordion title="Supported products" defaultOpen="true" icon="cubes">
    <SupportedProducts marketing={true} sales={true} service={true} cms={true} marketingLevel="FREE" salesLevel="ENTERPRISE" serviceLevel="FREE" cmsLevel="FREE" />
  </Accordion>

  <Accordion title="Required Scopes" icon="key">
    <ScopesList
      scopes={[
  'crm.dealsplits.read_write'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/2026-03/crm-deal-splits-v2026-03.json POST /deal-splits/2026-03/batch/upsert
openapi: 3.0.1
info:
  title: CRM Deal Splits
  description: Basepom for all HubSpot Projects
  version: 2026-03
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: ENTERPRISE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
  x-hubspot-api-use-case: >-
    When two sales reps work together to close a deal, add a split to the deal
    to reflect that the credit and commission are being shared.
  x-hubspot-introduction: >-
    Use the deal splits API to split existing deals between owners when credit
    and/or commission are shared between them. 
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Batch
paths:
  /deal-splits/2026-03/batch/upsert:
    post:
      tags:
        - Batch
      summary: >-
        指定されたIDを使用して、取引の取引分割の作成または置換を行います。各取引の取引分割の割合は合計で1.0（100％）にする必要があり、小数点以下は8桁まで指定できます。
      description: >-
        指定されたIDを使用して、取引の取引分割の作成または置換を行います。各取引の取引分割の割合は合計で1.0（100％）にする必要があり、小数点以下は8桁まで指定できます。
      operationId: >-
        post-/deal-splits/2026-03/batch/upsert_/crm/objects/v3/deals/splits/batch/upsert
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicDealSplitsBatchCreateRequest'
        required: true
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchResponseDealToDealSplits'
        '207':
          description: multiple statuses
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchResponseDealToDealSplitsWithErrors'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - crm.dealsplits.read_write
components:
  schemas:
    PublicDealSplitsBatchCreateRequest:
      required:
        - inputs
      type: object
      properties:
        inputs:
          type: array
          description: 取引分割の入力の配列
          items:
            $ref: '#/components/schemas/PublicDealSplitsCreateRequest'
    BatchResponseDealToDealSplits:
      required:
        - completedAt
        - results
        - startedAt
        - status
      type: object
      properties:
        completedAt:
          type: string
          description: バッチ処理が完了した時点を示すタイムスタンプ（日時形式）。
          format: date-time
        links:
          type: object
          additionalProperties:
            type: string
          description: その他のリソースまたはドキュメントの関連付けられたURIへのリンク名の対応付け
        requestedAt:
          type: string
          description: バッチ処理が要求された時点を示すタイムスタンプ（日時形式）。
          format: date-time
        results:
          type: array
          description: バッチ処理の結果を表す取引ごとの分割オブジェクトの配列。
          items:
            $ref: '#/components/schemas/DealToDealSplits'
        startedAt:
          type: string
          description: バッチ処理が始まった時点を示すタイムスタンプ（日時形式）。
          format: date-time
        status:
          type: string
          description: 次の値を取り得る、バッチ処理の現在のステータス：CANCELED、COMPLETE、PENDING、PROCESSING。
          enum:
            - CANCELED
            - COMPLETE
            - PENDING
            - PROCESSING
    BatchResponseDealToDealSplitsWithErrors:
      required:
        - completedAt
        - results
        - startedAt
        - status
      type: object
      properties:
        completedAt:
          type: string
          description: バッチ処理が完了した時点を示すタイムスタンプ（日時形式）。
          format: date-time
        errors:
          type: array
          description: バッチ処理中に発生したエラーについて詳述するエラーオブジェクトの配列。
          items:
            $ref: '#/components/schemas/StandardError'
        links:
          type: object
          additionalProperties:
            type: string
          description: その他のリソースまたはドキュメントの関連付けられたURIへのリンク名の対応付け
        numErrors:
          type: integer
          description: バッチ処理中に発生したエラーの合計数。
          format: int32
        requestedAt:
          type: string
          description: バッチ処理が要求された時点を示すタイムスタンプ（日時形式）。
          format: date-time
        results:
          type: array
          description: バッチ処理の結果を表す取引ごとの分割オブジェクトの配列。
          items:
            $ref: '#/components/schemas/DealToDealSplits'
        startedAt:
          type: string
          description: バッチ処理が始まった時点を示すタイムスタンプ（日時形式）。
          format: date-time
        status:
          type: string
          description: 次の値を取り得る、バッチ処理の現在のステータス：CANCELED、COMPLETE、PENDING、PROCESSING。
          enum:
            - CANCELED
            - COMPLETE
            - PENDING
            - PROCESSING
    PublicDealSplitsCreateRequest:
      required:
        - id
        - splits
      type: object
      properties:
        id:
          type: integer
          description: 取引の固有ID。
          format: int64
        splits:
          type: array
          description: それぞれの担当者IDと取引分割のパーセントが含まれる、取引分割の入力の配列。
          items:
            $ref: '#/components/schemas/PublicDealSplitInput'
    DealToDealSplits:
      required:
        - id
        - splits
      type: object
      properties:
        id:
          type: string
          description: 取引分割と関連付けられた取引の固有ID。
        splits:
          type: array
          description: それぞれが担当者に割り当てられた取引の部分を表す、取引分割オブジェクトの配列。
          items:
            $ref: '#/components/schemas/SimplePublicObject'
    StandardError:
      required:
        - category
        - context
        - errors
        - links
        - message
        - status
      type: object
      properties:
        category:
          type: string
          description: エラーカテゴリー
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー条件に関する背景状況
        errors:
          type: array
          description: The detailed error objects.
          items:
            $ref: '#/components/schemas/ErrorDetail'
        id:
          type: string
          description: エラーのID
        links:
          type: object
          additionalProperties:
            type: string
          description: エラーまたは推奨の修正手順に関するドキュメントが含まれる関連付けられたURIへのリンク名の対応付け
        message:
          type: string
          description: エラーメッセージ
        status:
          type: string
          description: エラーと修正手順（該当する場合）を記した、人が理解できるメッセージ
        subCategory:
          type: object
          properties: {}
          description: エラーに関する具体的な詳細が含まれる特定のカテゴリー
      description: Ye olde error
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: エラーカテゴリー
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー条件に関する背景状況
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: リクエストの固有ID。エラー報告またはサポートチケットには必ずこの値を含めてください
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: エラーに関する詳細情報
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: エラーまたは推奨の修正手順に関するドキュメントが含まれる関連付けられたURIへのリンク名の対応付け
        message:
          type: string
          description: エラーと修正手順（該当する場合）を記した、人が理解できるメッセージ
          example: An error occurred
        subCategory:
          type: string
          description: エラーに関する具体的な詳細が含まれる特定のカテゴリー
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    PublicDealSplitInput:
      required:
        - ownerId
        - percentage
      type: object
      properties:
        ownerId:
          type: integer
          description: 取引分割を受け取る担当者の固有ID。
          format: int32
        percentage:
          type: number
          description: >-
            パーセントで表される、担当者に割り当てられた取引の部分。取引の全ての分割のパーセントは合計で1.0（100％）にする必要があり、小数点以下は8桁まで指定できます。
    SimplePublicObject:
      required:
        - archived
        - createdAt
        - id
        - properties
        - updatedAt
      type: object
      properties:
        archived:
          type: boolean
          description: Whether the object is archived.
        archivedAt:
          type: string
          description: The timestamp when the object was archived, in ISO 8601 format.
          format: date-time
        createdAt:
          type: string
          description: The timestamp when the object was created, in ISO 8601 format.
          format: date-time
        id:
          type: string
          description: The unique ID of the object.
        objectWriteTraceId:
          type: string
          description: An identifier used for tracing the write request for the object.
        properties:
          type: object
          additionalProperties:
            type: string
          description: Key-value pairs representing the properties of the object.
        propertiesWithHistory:
          type: object
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/ValueWithTimestamp'
          description: >-
            Key-value pairs representing the properties of the object along with
            their history.
        updatedAt:
          type: string
          description: The timestamp when the object was last updated, in ISO 8601 format.
          format: date-time
        url:
          type: string
          description: The URL associated with the object.
      description: A simple public object.
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: エラーの詳細に関連付けられているステータスコード
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー条件に関する背景状況
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: エラーが見つかったフィールドまたはパラメーターの名前。
        message:
          type: string
          description: エラーと修正手順（該当する場合）を記した、人が理解できるメッセージ
        subCategory:
          type: string
          description: エラーに関する具体的な詳細が含まれる特定のカテゴリー
    ValueWithTimestamp:
      required:
        - sourceType
        - timestamp
        - value
      type: object
      properties:
        sourceId:
          type: string
          description: The unique ID of the property.
        sourceLabel:
          type: string
          description: A human-readable label.
        sourceType:
          type: string
          description: The property type.
        timestamp:
          type: string
          description: The timestamp when the property was updated, in ISO 8601 format.
          format: date-time
        updatedByUserId:
          type: integer
          description: The ID of the user who last updated the property.
          format: int32
        value:
          type: string
          description: The property value.
      description: Property model that includes timestamp.
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            crm.dealsplits.read_write: ''

````