AppMonetization / Client / update_app_payment_registration

update_app_payment_registration

AppMonetization.Client.update_app_payment_registration(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.update_app_payment_registration(
    appId='string',
    paymentRegistrationId='string',
    legalName='string',
    developerAddress={
        'street1': 'string',
        'street2': 'string',
        'city': 'string',
        'state': 'string',
        'postalCode': 'string',
        'country': 'string'
    },
    taxRegistrationNumber='string',
    email='string',
    supportEmail='string',
    displayName='string',
    supportPhone='string',
    invoiceLogo=b'bytes',
    taxRegistrations=[
        {
            'countryCode': 'string',
            'state': 'string',
            'collectionType': 'string',
            'registrationType': 'SALES_USE'|'RETAIL_DELIVERY_FEE'|'VAT'|'VAT_OSS'|'VAT_IOSS'|'GST'|'FEDERAL_EIN'|'CPF'|'CNPJ'|'SST'|'TIN'|'NIP'|'NPWP'|'NCID',
            'registrationId': 'string',
            'locality': 'string'
        },
    ],
    scope='sandbox'|'live'
)
Parameters:
  • appId (string) –

    [REQUIRED]

    The ID of the app whose payment registration is updated.

  • paymentRegistrationId (string) – 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.

  • legalName (string) – Your registered legal name.

  • developerAddress (dict) –

    Your business address.

    • street1 (string) – [REQUIRED]

      The first line of the street address.

    • street2 (string) –

      The second line of the street address.

    • city (string) – [REQUIRED]

      The city of the street address.

    • state (string) – [REQUIRED]

      The state or province.

    • postalCode (string) – [REQUIRED]

      The postal or ZIP code.

    • country (string) – [REQUIRED]

      The ISO 3166-1 alpha-2 country code.

  • taxRegistrationNumber (string) – Your tax registration number (for example, VAT, GST, or EIN).

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

  • supportEmail (string) – Your support email address, displayed in the invoice footer.

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

  • supportPhone (string) – Customer-facing support phone number shown to buyers on invoices.

  • invoiceLogo (bytes) – 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.

  • taxRegistrations (list) –

    The jurisdictions where the seller is registered to collect tax.

    • (dict) –

      A jurisdiction where the seller is registered to collect tax.

      • countryCode (string) – [REQUIRED]

        The ISO 3166-1 alpha-2 country code.

      • state (string) –

        The state or province code (for example, “NY” or “CA”). Required for US and CA.

      • collectionType (string) – [REQUIRED]

        The country-specific collection type (for example, “state_sales_tax”, “standard”, or “simplified”).

      • registrationType (string) –

        Which tax this registration is for, or which entity identifier it carries (for example SALES_USE for a US state, VAT or GST elsewhere, FEDERAL_EIN for a US employer identification number). Optional.

      • registrationId (string) –

        The tax ID issued for this registration (permit number or tax registration number). Optional.

      • locality (string) –

        Jurisdiction below the state, as a code rather than a name: a FIPS code in the US, an IBGE code in Brazil. Requires state. Optional.

  • scope (string) –

    [REQUIRED]

    Required. The environment: live or sandbox.

Return type:

dict

Returns:

Response Syntax

{
    'appPaymentRegistration': {
        'appId': 'string',
        'status': 'ACTIVE'|'PENDING'|'FAILED',
        'paymentRegistrationId': 'string',
        'paymentRegistrationStatus': 'ACTIVE'|'PENDING'|'FAILED',
        'additionalAppEligibility': 'ELIGIBLE'|'ONBOARDING_INCOMPLETE'|'IDENTITY_PENDING'|'REGISTRATION_FAILED',
        'legalName': 'string',
        'developerAddress': {
            'street1': 'string',
            'street2': 'string',
            'city': 'string',
            'state': 'string',
            'postalCode': 'string',
            'country': 'string'
        },
        'taxRegistrationNumber': 'string',
        'businessType': 'INDIVIDUAL'|'REGISTERED_BUSINESS',
        'email': 'string',
        'supportEmail': 'string',
        'displayName': 'string',
        'supportPhone': 'string',
        'taxRegistrations': [
            {
                'countryCode': 'string',
                'state': 'string',
                'collectionType': 'string',
                'registrationType': 'SALES_USE'|'RETAIL_DELIVERY_FEE'|'VAT'|'VAT_OSS'|'VAT_IOSS'|'GST'|'FEDERAL_EIN'|'CPF'|'CNPJ'|'SST'|'TIN'|'NIP'|'NPWP'|'NCID',
                'registrationId': 'string',
                'locality': 'string'
            },
        ],
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) –

    Output for UpdateAppPaymentRegistration.

    • appPaymentRegistration (dict) –

      The app’s updated payment registration.

      • appId (string) –

        The ID of the app this registration belongs to.

      • status (string) –

        The onboarding status of the payment registration for this app (ACTIVE, PENDING, or FAILED).

      • paymentRegistrationId (string) –

        The payment registration the app is bound to. Pass it to UpdateAppPaymentRegistration on another app to bind that app to the same registration. Absent if the app uses a payment registration created before registrations could be shared.

      • paymentRegistrationStatus (string) –

        The onboarding status of this app’s payment registration. It has the same value as status. Present exactly when paymentRegistrationId is.

      • additionalAppEligibility (string) –

        Whether a further app may bind to the app’s payment registration, and if not, why. Present exactly when paymentRegistrationId is.

      • legalName (string) –

        The seller’s registered legal name.

      • developerAddress (dict) –

        The seller’s postal address.

        • street1 (string) –

          The first line of the street address.

        • street2 (string) –

          The second line of the street address.

        • city (string) –

          The city of the street address.

        • state (string) –

          The state or province.

        • postalCode (string) –

          The postal or ZIP code.

        • country (string) –

          The ISO 3166-1 alpha-2 country code.

      • taxRegistrationNumber (string) –

        The seller’s tax registration number (for example, VAT, GST, or EIN).

      • businessType (string) –

        Whether the seller registered as an individual or a registered business.

      • email (string) –

        The seller’s primary contact email, read from the seller profile.

      • supportEmail (string) –

        The seller’s support email address, displayed in the invoice footer.

      • displayName (string) –

        Customer-facing name (doing-business-as) shown to buyers on invoices, read from the seller profile.

      • supportPhone (string) –

        Customer-facing support phone number, read from the seller profile.

      • taxRegistrations (list) –

        The jurisdictions where the seller is registered to collect tax.

        • (dict) –

          A jurisdiction where the seller is registered to collect tax.

          • countryCode (string) –

            The ISO 3166-1 alpha-2 country code.

          • state (string) –

            The state or province code (for example, “NY” or “CA”). Required for US and CA.

          • collectionType (string) –

            The country-specific collection type (for example, “state_sales_tax”, “standard”, or “simplified”).

          • registrationType (string) –

            Which tax this registration is for, or which entity identifier it carries (for example SALES_USE for a US state, VAT or GST elsewhere, FEDERAL_EIN for a US employer identification number). Optional.

          • registrationId (string) –

            The tax ID issued for this registration (permit number or tax registration number). Optional.

          • locality (string) –

            Jurisdiction below the state, as a code rather than a name: a FIPS code in the US, an IBGE code in Brazil. Requires state. Optional.

      • createdAt (datetime) –

        The time the payment registration was created.

      • updatedAt (datetime) –

        The time the payment registration was last updated.

Exceptions

  • AppMonetization.Client.exceptions.AccessDeniedException

  • AppMonetization.Client.exceptions.ValidationException

  • AppMonetization.Client.exceptions.ConflictException

  • AppMonetization.Client.exceptions.InternalServerException

  • AppMonetization.Client.exceptions.ResourceNotFoundException

  • AppMonetization.Client.exceptions.ThrottlingException