:doc:`Invoicing <../../invoicing>` / Client / update_procurement_portal_preference_status

*******************************************
update_procurement_portal_preference_status
*******************************************



.. py:method:: Invoicing.Client.update_procurement_portal_preference_status(**kwargs)

  

  Updates the status of a procurement portal preference, including the activation state of e-invoice delivery and purchase order retrieval features.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/invoicing-2024-12-01/UpdateProcurementPortalPreferenceStatus>`_  


  **Request Syntax**
  ::

    response = client.update_procurement_portal_preference_status(
        ProcurementPortalPreferenceArn='string',
        EinvoiceDeliveryPreferenceStatus='PENDING_VERIFICATION'|'TEST_INITIALIZED'|'TEST_INITIALIZATION_FAILED'|'TEST_FAILED'|'ACTIVE'|'SUSPENDED',
        EinvoiceDeliveryPreferenceStatusReason='string',
        PurchaseOrderRetrievalPreferenceStatus='PENDING_VERIFICATION'|'TEST_INITIALIZED'|'TEST_INITIALIZATION_FAILED'|'TEST_FAILED'|'ACTIVE'|'SUSPENDED',
        PurchaseOrderRetrievalPreferenceStatusReason='string'
    )
    
  :type ProcurementPortalPreferenceArn: string
  :param ProcurementPortalPreferenceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the procurement portal preference to update.

    

  
  :type EinvoiceDeliveryPreferenceStatus: string
  :param EinvoiceDeliveryPreferenceStatus: 

    The updated status of the e-invoice delivery preference.

    

  
  :type EinvoiceDeliveryPreferenceStatusReason: string
  :param EinvoiceDeliveryPreferenceStatusReason: 

    The reason for the e-invoice delivery preference status update, providing context for the change.

    

  
  :type PurchaseOrderRetrievalPreferenceStatus: string
  :param PurchaseOrderRetrievalPreferenceStatus: 

    The updated status of the purchase order retrieval preference.

    

  
  :type PurchaseOrderRetrievalPreferenceStatusReason: string
  :param PurchaseOrderRetrievalPreferenceStatusReason: 

    The reason for the purchase order retrieval preference status update, providing context for the change.

    

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

    
    ::

      {
          'ProcurementPortalPreferenceArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ProcurementPortalPreferenceArn** *(string) --* 

        The Amazon Resource Name (ARN) of the procurement portal preference with updated status.

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

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

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

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

  
  *   :py:class:`Invoicing.Client.exceptions.ServiceQuotaExceededException`

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

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

  