AppMonetization / Client / create_app_payment_registration

create_app_payment_registration

AppMonetization.Client.create_app_payment_registration(**kwargs)

Creates a hosted URL that an app owner uses to register payment and tax details.

See also: AWS API Documentation

Request Syntax

response = client.create_app_payment_registration(
    appId='string',
    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',
    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'
        },
    ],
    returnUrl='string',
    refreshUrl='string',
    clientToken='string',
    scope='sandbox'|'live'
)
Parameters:
  • appId (string) –

    [REQUIRED]

    The ID of the app being registered for payment.

  • 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).

  • businessType (string) – Whether the seller is an individual or a registered business.

  • email (string) – Your primary contact email for this registration, distinct from supportEmail (the address shown to customers). If you omit it, AWS App Monetization uses supportEmail.

  • 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.

  • returnUrl (string) –

    [REQUIRED]

    The URL the seller’s browser is redirected to after completing hosted registration.

  • refreshUrl (string) –

    [REQUIRED]

    The URL the seller’s browser is redirected to if the hosted registration session expires.

  • clientToken (string) –

    A unique, case-sensitive identifier to ensure that the operation completes no more than one time.

    This field is autopopulated if not provided.

  • scope (string) –

    [REQUIRED]

    Required. The environment: live or sandbox.

Return type:

dict

Returns:

Response Syntax

{
    'registrationUrl': 'string',
    'expiresAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    Output for CreateAppPaymentRegistration.

    • registrationUrl (string) –

      The hosted URL the seller opens to finish entering payment and tax details.

    • expiresAt (datetime) –

      The time the registration URL expires.

Exceptions