Volver al catálogo

Anrok

anrok

Anrok automates sales tax calculation, compliance, filings, and exemption management for software businesses.

Acciones
26
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

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ón

Map a billing integration's source product ID to an existing Anrok product, optionally overwriting an existing source mapping.

Parámetros de entrada

  • source_idstringObligatorio

    Source product ID from the billing system.

  • target_idstringObligatorio

    Existing target product ID in Anrok.

  • integration_idstringObligatorio

    Anrok-built billing integration ID to configure.

  • should_overwriteboolean

    Whether to overwrite an existing mapping for source_id.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Archive Exemption CertificateANROK_ARCHIVE_EXEMPTION_CERTIFICATEAcción

Archive and invalidate an exemption certificate by its Anrok certificate ID. Anrok does not document a restore operation.

Parámetros de entrada

  • certificate_idstringObligatorio

    Anrok certificate ID to archive.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Calculate Transaction TaxANROK_CALCULATE_TRANSACTION_TAXAcción

Calculate tax for an ephemeral invoice without recording a transaction in Anrok.

Parámetros de entrada

  • tax_datestringdate

    Date used for tax calculation; defaults to the accounting date.

  • line_itemsobject[]Obligatorio

    Invoice line items for which to calculate tax.

  • customer_idstring

    Existing customer ID used to apply linked exemption certificates.

  • currency_codestringObligatorio

    Three-letter ISO currency code, case-insensitive.

  • customer_namestring

    Customer display name.

  • accounting_datestringdate

    Accounting date for the tax preview.

  • accounting_timestringdate-time

    Accounting timestamp used when accounting_date is omitted.

  • customer_addressanyObligatorio

    Destination address used to determine taxing jurisdictions.

  • customer_tax_idsobject[]

    Tax IDs for the customer receiving the product.

  • tax_amount_addedinteger

    Tax already shown on the invoice in the currency's smallest denomination; used only for discrepancy tracking.

  • user_friendly_idstring

    Human-readable invoice ID included for context.

  • ship_from_addressany

    Origin address; defaults to the seller business address when omitted.

  • accounting_time_zonestringenum

    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+16
  • customer_email_addressstringemail

    Customer email address used for display.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create CustomerANROK_CREATE_CUSTOMERAcción

Create an Anrok customer with the external ID used to link transactions and exemption certificates.

Parámetros de entrada

  • idstringObligatorio

    Unique customer ID matching the ID sent by the billing integration. Customer IDs are unique across the seller account.

  • namestringObligatorio

    Customer display name.

  • email_addressstringemail

    Optional customer email address.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Exemption CertificateANROK_CREATE_EXEMPTION_CERTIFICATEAcción

Create 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

  • typestringenum

    Type of exemption; omit or pass null to record no type.

    agriculturaldirectPayeducationalenergygovernmentFederalgovernmentOthergovernmentStatehealthcaremanufacturingnativeAmericanTribalnonprofitother+3
  • notesstring

    Optional internal certificate notes.

  • jurisesobject[]Obligatorio

    Jurisdictions to which the certificate applies.

  • customer_idstringObligatorio

    Customer ID to associate with the certificate.

  • customer_namestring

    Customer display name; with customer_id, permits creating a missing customer.

  • certificate_fileobjectObligatorio

    Local or uploaded certificate file. Raw file content is limited to 4 MB so the encoded request remains within host payload limits.

  • exemption_numberstring

    Certificate exemption number for display.

  • effective_date_beginstringObligatoriodate

    Certificate effective date in YYYY-MM-DD form.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Exemption Certificate RequestANROK_CREATE_EXEMPTION_CERTIFICATE_REQUESTAcción

Create 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_emailboolean

    Whether Anrok emails the certificate request. Set false to create the request without sending email and share requestLink directly.

  • customer_idstringObligatorio

    Customer ID used to link the request to transactions and exemption certificates.

  • auto_approveboolean

    Whether Anrok automatically approves eligible submissions. Submissions that cannot be approved automatically enter the standard review flow.

  • customer_namestring

    Customer display name. When supplied with customer_id, Anrok creates the customer if it does not already exist.

  • email_addressstringObligatorioemail

    Customer contact email address to which Anrok sends the request.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create or Update TransactionANROK_CREATE_OR_UPDATE_TRANSACTIONAcción

Create 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

  • idstringObligatorio

    Seller-wide unique transaction ID, typically the billing-system invoice ID.

  • tax_datestringdate

    Date used for tax calculation; defaults to the accounting date.

  • line_itemsobject[]Obligatorio

    Line items in the finalized invoice.

  • customer_idstring

    Customer ID used to link transactions and exemption certificates. If supplied without customer_name, the customer must already exist.

  • currency_codestringObligatorio

    Three-letter ISO currency code; matching is case-insensitive.

  • customer_namestring

    Customer display name; with customer_id, may create a missing customer.

  • accounting_datestringdate

    Invoice accounting date used to select the applicable tax return.

  • accounting_timestringdate-time

    Invoice accounting timestamp. Required when accounting_date is omitted.

  • customer_addressanyObligatorio

    Destination 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_addedinteger

    Tax already on the invoice in the currency's smallest denomination; used only for discrepancy tracking.

  • user_friendly_idstring

    Human-readable invoice or transaction ID.

  • ship_from_addressany

    Origin address for jurisdictions that use origin sourcing; defaults to the seller's Anrok business address.

  • accounting_time_zonestringenum

    IANA 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+16
  • customer_email_addressstringemail

    Customer email address used only for display.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create ProductANROK_CREATE_PRODUCTAcción

Create an Anrok product ID and assign its product tax category.

Parámetros de entrada

  • namestringObligatorio

    Product display name.

  • descriptionstring

    Optional product description.

  • external_idstringObligatorio

    Unique product ID containing only alphanumeric characters, spaces, periods, hyphens, underscores, or colons, with no leading, trailing, or consecutive spaces.

  • tax_category_idobjectObligatorio

    Product tax category to assign. Use the list product tax categories action to find an available standard or custom category.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Transaction NegationANROK_CREATE_TRANSACTION_NEGATIONAcción

Create 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_idstringObligatorio

    Unique ID for the new negating transaction.

  • original_transaction_idstringObligatorio

    ID of the transaction to negate.

  • original_transaction_expected_versioninteger

    Expected current version of the original transaction. The operation fails if the transaction has changed.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get CustomerANROK_GET_CUSTOMERAcción

Retrieve one Anrok customer by its external customer ID.

Parámetros de entrada

  • customer_idstringObligatorio

    Customer ID to retrieve; path encoding is handled automatically.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Exemption CertificateANROK_GET_EXEMPTION_CERTIFICATEAcción

Retrieve one exemption certificate and its status and jurisdiction details by certificate ID.

Parámetros de entrada

  • certificate_idstringObligatorio

    Anrok certificate ID to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get ProductANROK_GET_PRODUCTAcción

Retrieve one Anrok product by its external product ID.

Parámetros de entrada

  • external_idstringObligatorio

    External product ID to retrieve; path encoding is handled automatically.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get TransactionANROK_GET_TRANSACTIONAcción

Retrieve the latest version of one Anrok transaction, including complete invoice and tax-calculation details for normal transactions.

Parámetros de entrada

  • transaction_idstringObligatorio

    Transaction ID to retrieve; path encoding is handled automatically.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List CustomersANROK_LIST_CUSTOMERSAcción

Return one page of seller-account customers in ascending customer ID order.

Parámetros de entrada

  • limitinteger

    Maximum customers to return in this page (1-100).

  • cursorstring

    nextCursor from the previous page; omit for the first page.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Exemption CertificatesANROK_LIST_EXEMPTION_CERTIFICATESAcción

Return one page of exemption certificates, optionally filtered by customer or certificate status.

Parámetros de entrada

  • limitinteger

    Maximum certificates to return in this page (1-100).

  • cursorstring

    nextCursor from the previous page; cannot be supplied with filter.

  • filterobject

    Optional customerId/status filter; cannot be supplied with cursor.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List FilingsANROK_LIST_FILINGSAcción

Return one premium page of jurisdiction filings, optionally filtered by jurisdiction and filing-period end date range.

Parámetros de entrada

  • limitinteger

    Maximum filings to return in this page (1-100).

  • cursorstring

    nextCursor from the previous page; cannot be supplied with filter.

  • filterobject

    Optional premium filing filter by jurisdiction and inclusive filing-period end date range; cannot be supplied with cursor.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Filing Transaction IDsANROK_LIST_FILING_TRANSACTION_IDSAcción

Return one premium page of transaction IDs associated with a jurisdiction filing.

Parámetros de entrada

  • limitinteger

    Maximum transaction IDs to return in this page (1-2500).

  • cursorstring

    nextCursor from the previous page; omit for the first page.

  • juris_idstringObligatorio

    Jurisdiction ID of the filing.

  • juris_filing_idstringObligatorio

    Filing ID within the jurisdiction.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Filing Transactions with Conversion RatesANROK_LIST_FILING_TRANSACTIONS_WITH_CONVERSION_RATESAcción

Return 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

  • limitinteger

    Maximum transactions to return in this page (1-1000).

  • cursorstring

    nextCursor from the previous page; omit for the first page.

  • juris_idstringObligatorio

    Jurisdiction ID of the filing.

  • juris_filing_idstringObligatorio

    Filing ID within the jurisdiction.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Product ID MappingsANROK_LIST_PRODUCT_ID_MAPPINGSAcción

List all source-to-Anrok product ID mappings for one Anrok-built billing integration.

Parámetros de entrada

  • integration_idstringObligatorio

    Anrok-built billing integration ID whose product mappings should be listed.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List ProductsANROK_LIST_PRODUCTSAcción

Return one page of Anrok products, optionally including default and integration shipping products.

Parámetros de entrada

  • limitinteger

    Maximum products to return in this page (1-1000).

  • cursorstring

    nextCursor from the previous page; omit for the first page.

  • include_default_productsboolean

    Whether to include default products and default integration shipping products. When false, only regular products are returned.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Product Tax CategoriesANROK_LIST_PRODUCT_TAX_CATEGORIESAcción

List the standard and seller-specific product tax categories available for assigning to products.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List TransactionsANROK_LIST_TRANSACTIONSAcción

Return one premium page of Anrok transactions, optionally filtered by modification time or filing association.

Parámetros de entrada

  • limitinteger

    Maximum transactions to return in this page (1-20).

  • cursorstring

    nextCursor from the previous page; cannot be supplied with filter.

  • filterany

    Optional premium filter by modification time or filing association; cannot be supplied with cursor.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Remove Transactions from FilingANROK_REMOVE_TRANSACTIONS_FROM_FILINGAcción

Remove 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_idstringObligatorio

    Jurisdiction ID of the filing.

  • juris_filing_idstringObligatorio

    Filing ID within the jurisdiction.

  • transaction_idsstring[]Obligatorio

    Transaction IDs to remove from the filing (1-100).

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Resolve AddressANROK_RESOLVE_ADDRESSAcción

Resolve a customer address to its normalized form and return the applicable taxable jurisdictions.

Parámetros de entrada

  • citystring

    City or town name.

  • line1string

    Address delivery line.

  • regionstring

    Principal subdivision such as state, province, or county.

  • countrystring

    Country full name or two-letter ISO code.

  • postal_codestring

    Postal code.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Validate Tax IDsANROK_VALIDATE_TAX_IDSAcción

Validate premium customer tax IDs for the taxable jurisdictions resolved from a customer address.

Parámetros de entrada

  • customer_addressobjectObligatorio

    Customer address used to determine the applicable taxable jurisdictions.

  • customer_tax_idsobject[]Obligatorio

    Tax IDs to validate.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Void TransactionANROK_VOID_TRANSACTIONAcción

Void 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_idstringObligatorio

    ID of the transaction to void.

  • transaction_expected_versioninteger

    Expected current transaction version. The void fails if the transaction has changed.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not