/AWS1/IF_TXS=>BATCHPUTTAXREGISTRATION()¶
About BatchPutTaxRegistration¶
Adds or updates tax registration for multiple accounts in batch. This can be used to add or update tax registrations for up to five accounts in one batch. You can't set a TRN if there's a pending TRN. You'll need to delete the pending TRN first.
To call this API operation for specific countries, see the following country-specific requirements.
Bangladesh
-
You must specify the tax registration certificate document in the
taxRegistrationDocumentsfield of theVerificationDetailsobject.
Brazil
-
You must complete the tax registration process in the Payment preferences page in the Billing and Cost Management console. After your TRN and billing address are verified, you can call this API operation.
-
For Amazon Web Services accounts created through Organizations, you can call this API operation when you don't have a billing address.
Georgia
-
The valid
personTypevalues arePhysical PersonandBusiness.
Indonesia
-
PutTaxRegistration: The use of this operation to submit tax information is subject to the Amazon Web Services service terms. By submitting, you’re providing consent for Amazon Web Services to validate NIK, NPWP, and NITKU data, provided by you with the Directorate General of Taxes of Indonesia in accordance with the Minister of Finance Regulation (PMK) Number 112/PMK.03/2022. -
BatchPutTaxRegistration: The use of this operation to submit tax information is subject to the Amazon Web Services service terms. By submitting, you’re providing consent for Amazon Web Services to validate NIK, NPWP, and NITKU data, provided by you with the Directorate General of Taxes of Indonesia in accordance with the Minister of Finance Regulation (PMK) Number 112/PMK.03/2022, through our third-party partner PT Achilles Advanced Management (OnlinePajak). -
You must specify the
taxRegistrationNumberTypein theindonesiaAdditionalInfofield of theadditionalTaxInformationobject. -
If you specify
decisionNumber, you must specify theppnExceptionDesignationCodein theindonesiaAdditionalInfofield of theadditionalTaxInformationobject. If thetaxRegistrationNumberTypeis set to NPWP or NITKU, valid values forppnExceptionDesignationCodeare either01,02,03,07, or08.For other
taxRegistrationNumberTypevalues,ppnExceptionDesignationCodemust be either01,07, or08. -
If
ppnExceptionDesignationCodeis07, you must specify thedecisionNumberin theindonesiaAdditionalInfofield of theadditionalTaxInformationobject.
Kenya
-
You must specify the
personTypein thekenyaAdditionalInfofield of theadditionalTaxInformationobject. -
If the
personTypeisPhysical Person, you must specify the tax registration certificate document in thetaxRegistrationDocumentsfield of theVerificationDetailsobject.
Malaysia
-
The sector valid values are
BusinessandIndividual. -
RegistrationTypevalid values areNRICfor individual, and TIN and sales and service tax (SST) for Business. -
For individual, you can specify the
taxInformationNumberinMalaysiaAdditionalInfowith NRIC type, and a validMyKador NRIC number. -
For business, you must specify a
businessRegistrationNumberinMalaysiaAdditionalInfowith a TIN type and tax identification number. -
For business resellers, you must specify a
businessRegistrationNumberandtaxInformationNumberinMalaysiaAdditionalInfowith a sales and service tax (SST) type and a valid SST number. -
For business resellers with service codes, you must specify
businessRegistrationNumber,taxInformationNumber, and distinctserviceTaxCodesinMalaysiaAdditionalInfowith a SST type and valid sales and service tax (SST) number. By using this API operation, Amazon Web Services registers your self-declaration that you’re an authorized business reseller registered with the Royal Malaysia Customs Department (RMCD), and have a valid SST number. -
Amazon Web Services reserves the right to seek additional information and/or take other actions to support your self-declaration as appropriate.
-
Amazon Web Services is currently registered under the following service tax codes. You must include at least one of the service tax codes in the service tax code strings to declare yourself as an authorized registered business reseller.
Taxable service and service tax codes:
Consultancy - 9907061674
Training or coaching service - 9907071685
IT service - 9907101676
Digital services and electronic medium - 9907121690
Nepal
-
The sector valid values are
BusinessandIndividual.
Saudi Arabia
-
For
address, you must specifyaddressLine3.
South Korea
-
You must specify the
certifiedEmailIdandlegalNamein theTaxRegistrationEntryobject. Use Korean characters forlegalName. -
You must specify the
businessRepresentativeName,itemOfBusiness, andlineOfBusinessin thesouthKoreaAdditionalInfofield of theadditionalTaxInformationobject. Use Korean characters for these fields. -
You must specify the tax registration certificate document in the
taxRegistrationDocumentsfield of theVerificationDetailsobject. -
For the
addressobject, use Korean characters foraddressLine1,addressLine2city,postalCode, andstateOrRegion.
Spain
-
You must specify the
registrationTypein thespainAdditionalInfofield of theadditionalTaxInformationobject. -
If the
registrationTypeisLocal, you must specify the tax registration certificate document in thetaxRegistrationDocumentsfield of theVerificationDetailsobject.
Turkey
-
You must specify the
sectorin thetaxRegistrationEntryobject. -
If your
sectorisBusiness,Individual, orGovernment:-
Specify the
taxOffice. If yoursectorisIndividual, don't enter this value. -
(Optional) Specify the
kepEmailId. If yoursectorisIndividual, don't enter this value. -
Note: In the Tax Settings page of the Billing console,
Governmentappears as Public institutions
-
-
If your
sectorisBusinessand you're subject to KDV tax, you must specify your industry in theindustriesfield. -
For
address, you must specifydistrictOrCounty.
Ukraine
-
The sector valid values are
BusinessandIndividual.
Method Signature¶
METHODS /AWS1/IF_TXS~BATCHPUTTAXREGISTRATION
IMPORTING
!IT_ACCOUNTIDS TYPE /AWS1/CL_TXSACCOUNTIDS_W=>TT_ACCOUNTIDS OPTIONAL
!IO_TAXREGISTRATIONENTRY TYPE REF TO /AWS1/CL_TXSTAXREGENTRY OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_txsbatchputtaxregrsp
RAISING
/AWS1/CX_TXSCONFLICTEXCEPTION
/AWS1/CX_TXSINTERNALSERVEREX
/AWS1/CX_TXSVALIDATIONEX
/AWS1/CX_TXSCLIENTEXC
/AWS1/CX_TXSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_accountids TYPE /AWS1/CL_TXSACCOUNTIDS_W=>TT_ACCOUNTIDS TT_ACCOUNTIDS¶
List of unique account identifiers.
io_taxregistrationentry TYPE REF TO /AWS1/CL_TXSTAXREGENTRY /AWS1/CL_TXSTAXREGENTRY¶
Your TRN information that will be stored to the accounts mentioned in
putEntries.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_txsbatchputtaxregrsp /AWS1/CL_TXSBATCHPUTTAXREGRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->batchputtaxregistration(
io_taxregistrationentry = new /aws1/cl_txstaxregentry(
io_additionaltaxinformation = new /aws1/cl_txsaddlinforequest(
io_canadaadditionalinfo = new /aws1/cl_txscanadaaddlinfo(
iv_canadaquebecsalestaxnum = |string|
iv_canadaretailsalestaxnum = |string|
iv_isreselleraccount = ABAP_TRUE
iv_provincialsalestaxid = |string|
)
io_egyptadditionalinfo = new /aws1/cl_txsegyptaddlinfo(
iv_uniqueidentificationnoe00 = |string|
iv_uniqueidentificationnum = |string|
)
io_estoniaadditionalinfo = new /aws1/cl_txsestoniaaddlinfo( |string| )
io_georgiaadditionalinfo = new /aws1/cl_txsgeorgiaaddlinfo( |string| )
io_greeceadditionalinfo = new /aws1/cl_txsgreeceaddlinfo( |string| )
io_indonesiaadditionalinfo = new /aws1/cl_txsindonesiaaddlinfo(
iv_decisionnumber = |string|
iv_ppnexdesignationcode = |string|
iv_taxregistrationnumbertype = |string|
)
io_israeladditionalinfo = new /aws1/cl_txsisraeladdlinfo(
iv_customertype = |string|
iv_dealertype = |string|
)
io_italyadditionalinfo = new /aws1/cl_txsitalyaddlinfo(
iv_cignumber = |string|
iv_cupnumber = |string|
iv_sdiaccountid = |string|
iv_taxcode = |string|
)
io_kenyaadditionalinfo = new /aws1/cl_txskenyaaddlinfo( |string| )
io_malaysiaadditionalinfo = new /aws1/cl_txsmalaysiaaddlinfo(
it_servicetaxcodes = VALUE /aws1/cl_txsmalaysiasvctaxco00=>tt_malaysiaservicetaxcodeslist(
( new /aws1/cl_txsmalaysiasvctaxco00( |string| ) )
)
iv_businessregnumber = |string|
iv_taxinformationnumber = |string|
)
io_polandadditionalinfo = new /aws1/cl_txspolandaddlinfo(
iv_individualregnumber = |string|
iv_isgroupvatenabled = ABAP_TRUE
)
io_romaniaadditionalinfo = new /aws1/cl_txsromaniaaddlinfo( |string| )
io_saudiarabiaadditionalinfo = new /aws1/cl_txssaudiarabiaaddli00( |string| )
io_southkoreaadditionalinfo = new /aws1/cl_txssouthkoreaaddlinfo(
iv_businessrepresentativen00 = |string|
iv_itemofbusiness = |string|
iv_lineofbusiness = |string|
)
io_spainadditionalinfo = new /aws1/cl_txsspainaddlinfo( |string| )
io_turkeyadditionalinfo = new /aws1/cl_txsturkeyaddlinfo(
iv_industries = |string|
iv_kepemailid = |string|
iv_secondarytaxid = |string|
iv_taxoffice = |string|
)
io_ukraineadditionalinfo = new /aws1/cl_txsukraineaddlinfo( |string| )
io_uzbekistanadditionalinfo = new /aws1/cl_txsuzbekistanaddlinfo(
iv_taxregistrationnumbertype = |string|
iv_vatregistrationnumber = |string|
)
io_vietnamadditionalinfo = new /aws1/cl_txsvietnamaddlinfo(
iv_electronictransactcodenum = |string|
iv_enterpriseidentificatio00 = |string|
iv_paymentvouchernumber = |string|
iv_paymentvouchernumberdate = |string|
)
)
io_legaladdress = new /aws1/cl_txsaddress(
iv_addressline1 = |string|
iv_addressline2 = |string|
iv_addressline3 = |string|
iv_city = |string|
iv_countrycode = |string|
iv_districtorcounty = |string|
iv_postalcode = |string|
iv_stateorregion = |string|
)
io_verificationdetails = new /aws1/cl_txsverificationdets(
it_taxregistrationdocuments = VALUE /aws1/cl_txstaxregdocument=>tt_taxregistrationdocuments(
(
new /aws1/cl_txstaxregdocument(
io_file = new /aws1/cl_txstaxregdocfile(
iv_filecontent = '5347567362473873563239796247513D'
iv_filename = |string|
)
io_s3location = new /aws1/cl_txssources3location(
iv_bucket = |string|
iv_key = |string|
)
)
)
)
iv_dateofbirth = |string|
)
iv_certifiedemailid = |string|
iv_legalname = |string|
iv_registrationid = |string|
iv_registrationtype = |string|
iv_sector = |string|
)
it_accountids = VALUE /aws1/cl_txsaccountids_w=>tt_accountids(
( new /aws1/cl_txsaccountids_w( |string| ) )
)
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_taxregistrationstatus = lo_result->get_status( ).
LOOP AT lo_result->get_errors( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_accountid = lo_row_1->get_accountid( ).
lv_errormessage = lo_row_1->get_message( ).
lv_errorcode = lo_row_1->get_code( ).
ENDIF.
ENDLOOP.
ENDIF.