:doc:`PartnerCentralAccountAPI <../../partnercentral-account>` / Client / accept_connection_invitation

****************************
accept_connection_invitation
****************************



.. py:method:: PartnerCentralAccountAPI.Client.accept_connection_invitation(**kwargs)

  

  Accepts a connection invitation from another partner, establishing a formal partnership connection between the two parties.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/partnercentral-account-2025-04-04/AcceptConnectionInvitation>`_  


  **Request Syntax**
  ::

    response = client.accept_connection_invitation(
        Catalog='string',
        Identifier='string',
        ClientToken='string'
    )
    
  :type Catalog: string
  :param Catalog: **[REQUIRED]** 

    The catalog identifier where the connection invitation exists.

    

  
  :type Identifier: string
  :param Identifier: **[REQUIRED]** 

    The unique identifier of the connection invitation to accept.

    

  
  :type ClientToken: string
  :param ClientToken: **[REQUIRED]** 

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Connection': {
              'Catalog': 'string',
              'Id': 'string',
              'Arn': 'string',
              'OtherParticipantAccountId': 'string',
              'UpdatedAt': datetime(2015, 1, 1),
              'ConnectionTypes': {
                  'string': {
                      'CreatedAt': datetime(2015, 1, 1),
                      'InviterEmail': 'string',
                      'InviterName': 'string',
                      'Status': 'ACTIVE'|'CANCELED',
                      'CanceledAt': datetime(2015, 1, 1),
                      'CanceledBy': 'string',
                      'OtherParticipant': {
                          'PartnerProfile': {
                              'Id': 'string',
                              'Name': 'string'
                          },
                          'SellerProfile': {
                              'Id': 'string',
                              'Name': 'string'
                          },
                          'Account': {
                              'Name': 'string'
                          }
                      }
                  }
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Connection** *(dict) --* 

        The details of the accepted connection between the two partners.

        
        

        - **Catalog** *(string) --* 

          The catalog identifier that the connection belongs to.

          
        

        - **Id** *(string) --* 

          The unique identifier of the connection.

          
        

        - **Arn** *(string) --* 

          The AWS Resource Name (ARN) of the connection.

          
        

        - **OtherParticipantAccountId** *(string) --* 

          The AWS account ID of the other participant in the connection.

          
        

        - **UpdatedAt** *(datetime) --* 

          The timestamp when the connection was last updated.

          
        

        - **ConnectionTypes** *(dict) --* 

          The type of connection.

          
          

          - *(string) --* 
            

            - *(dict) --* 

              Detailed information about a specific connection type within a connection.

              
              

              - **CreatedAt** *(datetime) --* 

                The timestamp when this connection type was created.

                
              

              - **InviterEmail** *(string) --* 

                The email address of the person who initiated this connection type.

                
              

              - **InviterName** *(string) --* 

                The name of the person who initiated this connection type.

                
              

              - **Status** *(string) --* 

                The current status of this connection type.

                
              

              - **CanceledAt** *(datetime) --* 

                The timestamp when this connection type was cancelled, if applicable.

                
              

              - **CanceledBy** *(string) --* 

                The AWS account ID of the participant who cancelled this connection type.

                
              

              - **OtherParticipant** *(dict) --* 

                Information about the other participant in this connection type.

                .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``PartnerProfile``, ``SellerProfile``, ``Account``.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                                'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


              
                

                - **PartnerProfile** *(dict) --* 

                  The partner profile information for the participant.

                  
                  

                  - **Id** *(string) --* 

                    The unique identifier of the partner profile.

                    
                  

                  - **Name** *(string) --* 

                    The display name of the partner.

                    
              
                

                - **SellerProfile** *(dict) --* 

                  The seller profile information for the participant.

                  
                  

                  - **Id** *(string) --* 

                    The unique identifier of the seller profile.

                    
                  

                  - **Name** *(string) --* 

                    The display name of the seller.

                    
              
                

                - **Account** *(dict) --* 

                  The AWS account information for the participant.

                  
                  

                  - **Name** *(string) --* 

                    The name associated with the AWS account.

                    
              
            
          
      
    
    
  
  **Exceptions**
  
  *   :py:class:`PartnerCentralAccountAPI.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`PartnerCentralAccountAPI.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`PartnerCentralAccountAPI.Client.exceptions.ThrottlingException`

  
  *   :py:class:`PartnerCentralAccountAPI.Client.exceptions.ConflictException`

  
  *   :py:class:`PartnerCentralAccountAPI.Client.exceptions.ValidationException`

  
  *   :py:class:`PartnerCentralAccountAPI.Client.exceptions.InternalServerException`

  