create_app_payment_registration
¶
create_app_payment_registration(
app_id: AppId,
return_url: Url,
refresh_url: Url,
scope: RequestScope,
*,
config_overrides: Optional[AppMonetizationClientConfig] = None,
legal_name: Optional[LegalName] = None,
developer_address: Optional[DeveloperAddress] = None,
tax_registration_number: Optional[TaxRegistrationNumber] = None,
business_type: Optional[BusinessType] = 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,
client_token: Optional[ClientToken] = None,
) -> CreateAppPaymentRegistrationResponse
Creates a hosted URL that an app owner uses to register payment and tax details.
Parameters:
-
app_id(AppId) –The ID of the app being registered for payment.
-
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).
-
business_type(Optional[BusinessType], default:None) –Whether the seller is an individual or a registered business.
-
email(Optional[Email], default:None) –Your primary contact email for this registration, distinct from supportEmail (the address shown to customers). If you omit it, AWS App Monetization uses supportEmail.
-
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.
-
return_url(Url) –The URL the seller's browser is redirected to after completing hosted registration.
-
refresh_url(Url) –The URL the seller's browser is redirected to if the hosted registration session expires.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier to ensure that the operation completes no more than one time.
-
scope(RequestScope) –Required. The environment: live or sandbox.
Raises:
-
AccessDeniedException–The caller does not have sufficient permission to perform this action.
-
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.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The referenced resource does not exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request failed input validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appmonetization/_services/app_monetization.py
580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 | |