Skip to content

update_app_payment_registration

update_app_payment_registration(
    app_id: AppId,
    scope: RequestScope,
    *,
    config_overrides: Optional[AppMonetizationClientConfig] = None,
    payment_registration_id: Optional[PaymentRegistrationId] = None,
    legal_name: Optional[LegalName] = None,
    developer_address: Optional[DeveloperAddress] = None,
    tax_registration_number: Optional[TaxRegistrationNumber] = None,
    email: Optional[Email] = None,
    support_email: Optional[Email] = None,
    display_name: Optional[SellerDisplayName] = None,
    support_phone: Optional[SupportPhone] = None,
    invoice_logo: Optional[InvoiceLogo] = None,
    tax_registrations: Optional[TaxRegistrationList] = None,
) -> UpdateAppPaymentRegistrationResponse

Updates the payment and tax details on an app's payment registration.

Parameters:

  • app_id (AppId) –

    The ID of the app whose payment registration is updated.

  • payment_registration_id (Optional[PaymentRegistrationId], default: None ) –

    Binds the app to this payment registration, owned by the caller, or rebinds it from another one. Cannot be combined with legal-detail or contact members. Naming the registration the app already holds succeeds without a write.

  • legal_name (Optional[LegalName], default: None ) –

    Your registered legal name.

  • developer_address (Optional[DeveloperAddress], default: None ) –

    Your business address.

  • tax_registration_number (Optional[TaxRegistrationNumber], default: None ) –

    Your tax registration number (for example, VAT, GST, or EIN).

  • email (Optional[Email], default: None ) –

    Your primary contact email for this registration, distinct from supportEmail (the address shown to customers).

  • support_email (Optional[Email], default: None ) –

    Your support email address, displayed in the invoice footer.

  • display_name (Optional[SellerDisplayName], default: None ) –

    Customer-facing name (doing-business-as) shown to buyers on invoices, distinct from legalName.

  • support_phone (Optional[SupportPhone], default: None ) –

    Customer-facing support phone number shown to buyers on invoices.

  • invoice_logo (Optional[InvoiceLogo], default: None ) –

    Logo printed on the seller's invoices: raw PNG or JPEG bytes, up to 100 KiB. The image type is detected from the bytes. Write-only: the logo is not returned by GetAppPaymentRegistration.

  • tax_registrations (Optional[TaxRegistrationList], default: None ) –

    The jurisdictions where the seller is registered to collect tax.

  • scope (RequestScope) –

    Required. The environment: live or sandbox.

Raises:

Source code in docs_src/capo_appmonetization/_services/app_monetization.py
def update_app_payment_registration(
    self,
    app_id: "capo_appmonetization.types.app_id.AppId",
    scope: "capo_appmonetization.types.request_scope.RequestScope",
    *,
    config_overrides: Optional[AppMonetizationClientConfig] = None,
    payment_registration_id: Optional[
        "capo_appmonetization.types.payment_registration_id.PaymentRegistrationId"
    ] = None,
    legal_name: Optional["capo_appmonetization.types.legal_name.LegalName"] = None,
    developer_address: Optional[
        "capo_appmonetization.types.developer_address.DeveloperAddress"
    ] = None,
    tax_registration_number: Optional[
        "capo_appmonetization.types.tax_registration_number.TaxRegistrationNumber"
    ] = None,
    email: Optional["capo_appmonetization.types.email.Email"] = None,
    support_email: Optional["capo_appmonetization.types.email.Email"] = None,
    display_name: Optional[
        "capo_appmonetization.types.seller_display_name.SellerDisplayName"
    ] = None,
    support_phone: Optional[
        "capo_appmonetization.types.support_phone.SupportPhone"
    ] = None,
    invoice_logo: Optional[
        "capo_appmonetization.types.invoice_logo.InvoiceLogo"
    ] = None,
    tax_registrations: Optional[
        "capo_appmonetization.types.tax_registration_list.TaxRegistrationList"
    ] = None,
) -> "capo_appmonetization.types.update_app_payment_registration_response.UpdateAppPaymentRegistrationResponse":
    """Updates the payment and tax details on an app's payment registration.

    Args:
        app_id: The ID of the app whose payment registration is updated.
        payment_registration_id: Binds the app to this payment registration, owned by the caller, or rebinds it from another one. Cannot be combined with legal-detail or contact members. Naming the registration the app already holds succeeds without a write.
        legal_name: Your registered legal name.
        developer_address: Your business address.
        tax_registration_number: Your tax registration number (for example, VAT, GST, or EIN).
        email: Your primary contact email for this registration, distinct from supportEmail (the address shown to customers).
        support_email: Your support email address, displayed in the invoice footer.
        display_name: Customer-facing name (doing-business-as) shown to buyers on invoices, distinct from legalName.
        support_phone: Customer-facing support phone number shown to buyers on invoices.
        invoice_logo: Logo printed on the seller's invoices: raw PNG or JPEG bytes, up to 100 KiB. The image type is detected from the bytes. Write-only: the logo is not returned by GetAppPaymentRegistration.
        tax_registrations: The jurisdictions where the seller is registered to collect tax.
        scope: Required. The environment: live or sandbox.

    Raises:
        capo_appmonetization.errors.access_denied_exception.AccessDeniedException: The caller does not have sufficient permission to perform this action.
        capo_appmonetization.errors.conflict_exception.ConflictException: The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
        capo_appmonetization.errors.internal_server_exception.InternalServerException: An unexpected error occurred while processing the request.
        capo_appmonetization.errors.resource_not_found_exception.ResourceNotFoundException: The referenced resource does not exist.
        capo_appmonetization.errors.throttling_exception.ThrottlingException: The request was denied due to request throttling.
        capo_appmonetization.errors.validation_exception.ValidationException: The request failed input validation.
        capo_appmonetization.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_appmonetization.types.update_app_payment_registration_request.UpdateAppPaymentRegistrationRequest]",
    ) -> OperationResponse[
        "capo_appmonetization.types.update_app_payment_registration_response.UpdateAppPaymentRegistrationResponse"
    ]:
        import capo_appmonetization._operations.aws_monetization_ai_front_end.update_app_payment_registration

        output, http_response = (
            capo_appmonetization._operations.aws_monetization_ai_front_end.update_app_payment_registration.update_app_payment_registration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_input(
        input_: "capo_appmonetization.types.update_app_payment_registration_request.UpdateAppPaymentRegistrationRequest",
    ) -> dict[str, Any]:
        import capo_appmonetization.types.update_app_payment_registration_request

        return capo_appmonetization.types.update_app_payment_registration_request.redact_sensitive(
            input_
        )

    def _redact_output(
        output: "capo_appmonetization.types.update_app_payment_registration_response.UpdateAppPaymentRegistrationResponse",
    ) -> dict[str, Any]:
        import capo_appmonetization.types.update_app_payment_registration_response

        return capo_appmonetization.types.update_app_payment_registration_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "UpdateAppPaymentRegistration",
            redact_input=_redact_input,
            redact_output=_redact_output,
        ),
    )
    input_: capo_appmonetization.types.update_app_payment_registration_request.UpdateAppPaymentRegistrationRequest = {
        "app_id": app_id,
        "scope": scope,
    }
    if payment_registration_id is not None:
        input_["payment_registration_id"] = payment_registration_id
    if legal_name is not None:
        input_["legal_name"] = legal_name
    if developer_address is not None:
        input_["developer_address"] = developer_address
    if tax_registration_number is not None:
        input_["tax_registration_number"] = tax_registration_number
    if email is not None:
        input_["email"] = email
    if support_email is not None:
        input_["support_email"] = support_email
    if display_name is not None:
        input_["display_name"] = display_name
    if support_phone is not None:
        input_["support_phone"] = support_phone
    if invoice_logo is not None:
        input_["invoice_logo"] = invoice_logo
    if tax_registrations is not None:
        input_["tax_registrations"] = tax_registrations

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output