Anrok
anrokAnrok automates sales tax calculation, compliance, filings, and exemption management for software businesses.
Acciones disponibles (26)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Add Product ID MappingANROK_ADD_PRODUCT_ID_MAPPINGAcciónMap a billing integration's source product ID to an existing Anrok product, optionally overwriting an existing source mapping.
ANROK_ADD_PRODUCT_ID_MAPPINGAcciónMap a billing integration's source product ID to an existing Anrok product, optionally overwriting an existing source mapping.
Parámetros de entrada
source_idstringObligatorioSource product ID from the billing system.
target_idstringObligatorioExisting target product ID in Anrok.
integration_idstringObligatorioAnrok-built billing integration ID to configure.
should_overwritebooleanWhether to overwrite an existing mapping for source_id.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Archive Exemption CertificateANROK_ARCHIVE_EXEMPTION_CERTIFICATEAcciónArchive and invalidate an exemption certificate by its Anrok certificate ID. Anrok does not document a restore operation.
ANROK_ARCHIVE_EXEMPTION_CERTIFICATEAcciónArchive and invalidate an exemption certificate by its Anrok certificate ID. Anrok does not document a restore operation.
Parámetros de entrada
certificate_idstringObligatorioAnrok certificate ID to archive.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Calculate Transaction TaxANROK_CALCULATE_TRANSACTION_TAXAcciónCalculate tax for an ephemeral invoice without recording a transaction in Anrok.
ANROK_CALCULATE_TRANSACTION_TAXAcciónCalculate tax for an ephemeral invoice without recording a transaction in Anrok.
Parámetros de entrada
tax_datestringdateDate used for tax calculation; defaults to the accounting date.
line_itemsobject[]ObligatorioInvoice line items for which to calculate tax.
customer_idstringExisting customer ID used to apply linked exemption certificates.
currency_codestringObligatorioThree-letter ISO currency code, case-insensitive.
customer_namestringCustomer display name.
accounting_datestringdateAccounting date for the tax preview.
accounting_timestringdate-timeAccounting timestamp used when accounting_date is omitted.
customer_addressanyObligatorioDestination address used to determine taxing jurisdictions.
customer_tax_idsobject[]Tax IDs for the customer receiving the product.
tax_amount_addedintegerTax already shown on the invoice in the currency's smallest denomination; used only for discrepancy tracking.
user_friendly_idstringHuman-readable invoice ID included for context.
ship_from_addressanyOrigin address; defaults to the seller business address when omitted.
accounting_time_zonestringenumTime zone used to derive the accounting date from accounting_time; cannot be supplied with accounting_date.
UTCAmerica/New_YorkAmerica/ChicagoAmerica/DenverAmerica/Los_AngelesAmerica/AnchoragePacific/HonoluluAustralia/PerthAustralia/AdelaideAustralia/DarwinAustralia/BrisbaneAustralia/Sydney+16customer_email_addressstringemailCustomer email address used for display.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create CustomerANROK_CREATE_CUSTOMERAcciónCreate an Anrok customer with the external ID used to link transactions and exemption certificates.
ANROK_CREATE_CUSTOMERAcciónCreate an Anrok customer with the external ID used to link transactions and exemption certificates.
Parámetros de entrada
idstringObligatorioUnique customer ID matching the ID sent by the billing integration. Customer IDs are unique across the seller account.
namestringObligatorioCustomer display name.
email_addressstringemailOptional customer email address.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Exemption CertificateANROK_CREATE_EXEMPTION_CERTIFICATEAcciónCreate a customer tax-exemption certificate from a local or uploaded file and jurisdiction coverage. Raw files are capped at 4 MB to keep the encoded request within host payload limits. Supplying a customer name may also create a missing customer.
ANROK_CREATE_EXEMPTION_CERTIFICATEAcciónCreate a customer tax-exemption certificate from a local or uploaded file and jurisdiction coverage. Raw files are capped at 4 MB to keep the encoded request within host payload limits. Supplying a customer name may also create a missing customer.
Parámetros de entrada
typestringenumType of exemption; omit or pass null to record no type.
agriculturaldirectPayeducationalenergygovernmentFederalgovernmentOthergovernmentStatehealthcaremanufacturingnativeAmericanTribalnonprofitother+3notesstringOptional internal certificate notes.
jurisesobject[]ObligatorioJurisdictions to which the certificate applies.
customer_idstringObligatorioCustomer ID to associate with the certificate.
customer_namestringCustomer display name; with customer_id, permits creating a missing customer.
certificate_fileobjectObligatorioLocal or uploaded certificate file. Raw file content is limited to 4 MB so the encoded request remains within host payload limits.
exemption_numberstringCertificate exemption number for display.
effective_date_beginstringObligatoriodateCertificate effective date in YYYY-MM-DD form.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Exemption Certificate RequestANROK_CREATE_EXEMPTION_CERTIFICATE_REQUESTAcciónCreate a premium customer certificate request, emailing its submission link by default, and optionally auto-approve eligible submissions. Supplying a customer name may also create a missing customer.
ANROK_CREATE_EXEMPTION_CERTIFICATE_REQUESTAcciónCreate a premium customer certificate request, emailing its submission link by default, and optionally auto-approve eligible submissions. Supplying a customer name may also create a missing customer.
Parámetros de entrada
send_emailbooleanWhether Anrok emails the certificate request. Set false to create the request without sending email and share requestLink directly.
customer_idstringObligatorioCustomer ID used to link the request to transactions and exemption certificates.
auto_approvebooleanWhether Anrok automatically approves eligible submissions. Submissions that cannot be approved automatically enter the standard review flow.
customer_namestringCustomer display name. When supplied with customer_id, Anrok creates the customer if it does not already exist.
email_addressstringObligatorioemailCustomer contact email address to which Anrok sends the request.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create or Update TransactionANROK_CREATE_OR_UPDATE_TRANSACTIONAcciónCreate a finalized invoice transaction. If a transaction with the same seller-wide ID exists, overwrite or replace it with the supplied invoice data and recalculate tax. Supplying a customer name with a customer ID may also create a missing customer.
ANROK_CREATE_OR_UPDATE_TRANSACTIONAcciónCreate a finalized invoice transaction. If a transaction with the same seller-wide ID exists, overwrite or replace it with the supplied invoice data and recalculate tax. Supplying a customer name with a customer ID may also create a missing customer.
Parámetros de entrada
idstringObligatorioSeller-wide unique transaction ID, typically the billing-system invoice ID.
tax_datestringdateDate used for tax calculation; defaults to the accounting date.
line_itemsobject[]ObligatorioLine items in the finalized invoice.
customer_idstringCustomer ID used to link transactions and exemption certificates. If supplied without customer_name, the customer must already exist.
currency_codestringObligatorioThree-letter ISO currency code; matching is case-insensitive.
customer_namestringCustomer display name; with customer_id, may create a missing customer.
accounting_datestringdateInvoice accounting date used to select the applicable tax return.
accounting_timestringdate-timeInvoice accounting timestamp. Required when accounting_date is omitted.
customer_addressanyObligatorioDestination address used to determine taxing jurisdictions. All standard-address fields are optional or nullable, but the address must resolve the top-level jurisdiction with high confidence.
customer_tax_idsobject[]Tax IDs for the customer receiving the product.
tax_amount_addedintegerTax already on the invoice in the currency's smallest denomination; used only for discrepancy tracking.
user_friendly_idstringHuman-readable invoice or transaction ID.
ship_from_addressanyOrigin address for jurisdictions that use origin sourcing; defaults to the seller's Anrok business address.
accounting_time_zonestringenumIANA time zone used to derive the accounting date from accounting_time; cannot be supplied with accounting_date.
UTCAmerica/New_YorkAmerica/ChicagoAmerica/DenverAmerica/Los_AngelesAmerica/AnchoragePacific/HonoluluAustralia/PerthAustralia/AdelaideAustralia/DarwinAustralia/BrisbaneAustralia/Sydney+16customer_email_addressstringemailCustomer email address used only for display.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create ProductANROK_CREATE_PRODUCTAcciónCreate an Anrok product ID and assign its product tax category.
ANROK_CREATE_PRODUCTAcciónCreate an Anrok product ID and assign its product tax category.
Parámetros de entrada
namestringObligatorioProduct display name.
descriptionstringOptional product description.
external_idstringObligatorioUnique product ID containing only alphanumeric characters, spaces, periods, hyphens, underscores, or colons, with no leading, trailing, or consecutive spaces.
tax_category_idobjectObligatorioProduct tax category to assign. Use the list product tax categories action to find an available standard or custom category.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Transaction NegationANROK_CREATE_TRANSACTION_NEGATIONAcciónCreate a new transaction that exactly negates an existing transaction, lowering or reversing the original transaction's reported sales and tax totals, optionally enforcing its expected version.
ANROK_CREATE_TRANSACTION_NEGATIONAcciónCreate a new transaction that exactly negates an existing transaction, lowering or reversing the original transaction's reported sales and tax totals, optionally enforcing its expected version.
Parámetros de entrada
new_transaction_idstringObligatorioUnique ID for the new negating transaction.
original_transaction_idstringObligatorioID of the transaction to negate.
original_transaction_expected_versionintegerExpected current version of the original transaction. The operation fails if the transaction has changed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get CustomerANROK_GET_CUSTOMERAcciónRetrieve one Anrok customer by its external customer ID.
ANROK_GET_CUSTOMERAcciónRetrieve one Anrok customer by its external customer ID.
Parámetros de entrada
customer_idstringObligatorioCustomer ID to retrieve; path encoding is handled automatically.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Exemption CertificateANROK_GET_EXEMPTION_CERTIFICATEAcciónRetrieve one exemption certificate and its status and jurisdiction details by certificate ID.
ANROK_GET_EXEMPTION_CERTIFICATEAcciónRetrieve one exemption certificate and its status and jurisdiction details by certificate ID.
Parámetros de entrada
certificate_idstringObligatorioAnrok certificate ID to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get ProductANROK_GET_PRODUCTAcciónRetrieve one Anrok product by its external product ID.
ANROK_GET_PRODUCTAcciónRetrieve one Anrok product by its external product ID.
Parámetros de entrada
external_idstringObligatorioExternal product ID to retrieve; path encoding is handled automatically.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get TransactionANROK_GET_TRANSACTIONAcciónRetrieve the latest version of one Anrok transaction, including complete invoice and tax-calculation details for normal transactions.
ANROK_GET_TRANSACTIONAcciónRetrieve the latest version of one Anrok transaction, including complete invoice and tax-calculation details for normal transactions.
Parámetros de entrada
transaction_idstringObligatorioTransaction ID to retrieve; path encoding is handled automatically.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List CustomersANROK_LIST_CUSTOMERSAcciónReturn one page of seller-account customers in ascending customer ID order.
ANROK_LIST_CUSTOMERSAcciónReturn one page of seller-account customers in ascending customer ID order.
Parámetros de entrada
limitintegerMaximum customers to return in this page (1-100).
cursorstringnextCursor from the previous page; omit for the first page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Exemption CertificatesANROK_LIST_EXEMPTION_CERTIFICATESAcciónReturn one page of exemption certificates, optionally filtered by customer or certificate status.
ANROK_LIST_EXEMPTION_CERTIFICATESAcciónReturn one page of exemption certificates, optionally filtered by customer or certificate status.
Parámetros de entrada
limitintegerMaximum certificates to return in this page (1-100).
cursorstringnextCursor from the previous page; cannot be supplied with filter.
filterobjectOptional customerId/status filter; cannot be supplied with cursor.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List FilingsANROK_LIST_FILINGSAcciónReturn one premium page of jurisdiction filings, optionally filtered by jurisdiction and filing-period end date range.
ANROK_LIST_FILINGSAcciónReturn one premium page of jurisdiction filings, optionally filtered by jurisdiction and filing-period end date range.
Parámetros de entrada
limitintegerMaximum filings to return in this page (1-100).
cursorstringnextCursor from the previous page; cannot be supplied with filter.
filterobjectOptional premium filing filter by jurisdiction and inclusive filing-period end date range; cannot be supplied with cursor.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Filing Transaction IDsANROK_LIST_FILING_TRANSACTION_IDSAcciónReturn one premium page of transaction IDs associated with a jurisdiction filing.
ANROK_LIST_FILING_TRANSACTION_IDSAcciónReturn one premium page of transaction IDs associated with a jurisdiction filing.
Parámetros de entrada
limitintegerMaximum transaction IDs to return in this page (1-2500).
cursorstringnextCursor from the previous page; omit for the first page.
juris_idstringObligatorioJurisdiction ID of the filing.
juris_filing_idstringObligatorioFiling ID within the jurisdiction.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Filing Transactions with Conversion RatesANROK_LIST_FILING_TRANSACTIONS_WITH_CONVERSION_RATESAcciónReturn one premium page of a jurisdiction filing's transactions with their filing conversion rates. Rates may change until the filing is finalized.
ANROK_LIST_FILING_TRANSACTIONS_WITH_CONVERSION_RATESAcciónReturn one premium page of a jurisdiction filing's transactions with their filing conversion rates. Rates may change until the filing is finalized.
Parámetros de entrada
limitintegerMaximum transactions to return in this page (1-1000).
cursorstringnextCursor from the previous page; omit for the first page.
juris_idstringObligatorioJurisdiction ID of the filing.
juris_filing_idstringObligatorioFiling ID within the jurisdiction.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Product ID MappingsANROK_LIST_PRODUCT_ID_MAPPINGSAcciónList all source-to-Anrok product ID mappings for one Anrok-built billing integration.
ANROK_LIST_PRODUCT_ID_MAPPINGSAcciónList all source-to-Anrok product ID mappings for one Anrok-built billing integration.
Parámetros de entrada
integration_idstringObligatorioAnrok-built billing integration ID whose product mappings should be listed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ProductsANROK_LIST_PRODUCTSAcciónReturn one page of Anrok products, optionally including default and integration shipping products.
ANROK_LIST_PRODUCTSAcciónReturn one page of Anrok products, optionally including default and integration shipping products.
Parámetros de entrada
limitintegerMaximum products to return in this page (1-1000).
cursorstringnextCursor from the previous page; omit for the first page.
include_default_productsbooleanWhether to include default products and default integration shipping products. When false, only regular products are returned.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Product Tax CategoriesANROK_LIST_PRODUCT_TAX_CATEGORIESAcciónList the standard and seller-specific product tax categories available for assigning to products.
ANROK_LIST_PRODUCT_TAX_CATEGORIESAcciónList the standard and seller-specific product tax categories available for assigning to products.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List TransactionsANROK_LIST_TRANSACTIONSAcciónReturn one premium page of Anrok transactions, optionally filtered by modification time or filing association.
ANROK_LIST_TRANSACTIONSAcciónReturn one premium page of Anrok transactions, optionally filtered by modification time or filing association.
Parámetros de entrada
limitintegerMaximum transactions to return in this page (1-20).
cursorstringnextCursor from the previous page; cannot be supplied with filter.
filteranyOptional premium filter by modification time or filing association; cannot be supplied with cursor.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Remove Transactions from FilingANROK_REMOVE_TRANSACTIONS_FROM_FILINGAcciónRemove 1-100 transactions from a premium Anrok jurisdiction filing and return the removal result for every requested transaction ID. This cannot be undone; Anrok documents no restore operation.
ANROK_REMOVE_TRANSACTIONS_FROM_FILINGAcciónRemove 1-100 transactions from a premium Anrok jurisdiction filing and return the removal result for every requested transaction ID. This cannot be undone; Anrok documents no restore operation.
Parámetros de entrada
juris_idstringObligatorioJurisdiction ID of the filing.
juris_filing_idstringObligatorioFiling ID within the jurisdiction.
transaction_idsstring[]ObligatorioTransaction IDs to remove from the filing (1-100).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Resolve AddressANROK_RESOLVE_ADDRESSAcciónResolve a customer address to its normalized form and return the applicable taxable jurisdictions.
ANROK_RESOLVE_ADDRESSAcciónResolve a customer address to its normalized form and return the applicable taxable jurisdictions.
Parámetros de entrada
citystringCity or town name.
line1stringAddress delivery line.
regionstringPrincipal subdivision such as state, province, or county.
countrystringCountry full name or two-letter ISO code.
postal_codestringPostal code.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Validate Tax IDsANROK_VALIDATE_TAX_IDSAcciónValidate premium customer tax IDs for the taxable jurisdictions resolved from a customer address.
ANROK_VALIDATE_TAX_IDSAcciónValidate premium customer tax IDs for the taxable jurisdictions resolved from a customer address.
Parámetros de entrada
customer_addressobjectObligatorioCustomer address used to determine the applicable taxable jurisdictions.
customer_tax_idsobject[]ObligatorioTax IDs to validate.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Void TransactionANROK_VOID_TRANSACTIONAcciónVoid an existing transaction so it is no longer included in returns or sales totals, optionally requiring its current version. This cannot be undone; Anrok documents no restore or unvoid operation.
ANROK_VOID_TRANSACTIONAcciónVoid an existing transaction so it is no longer included in returns or sales totals, optionally requiring its current version. This cannot be undone; Anrok documents no restore or unvoid operation.
Parámetros de entrada
transaction_idstringObligatorioID of the transaction to void.
transaction_expected_versionintegerExpected current transaction version. The void fails if the transaction has changed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not