Schedule Report

Use this request to create and schedule a report.

This request creates and schedules a report in one of two ways, each with different parameters and outputs:

  • Vertex O Series Cloud Online Commerce—Use this report to create and schedule a general audit report.
  • Standalone Vertex Validator—Use this report to generate a tax number validation report with different parameters.

This request schedules a single report. Use the List Reports request to retrieve the results.

Details

EndpointMethod
/api/v3/reportsPOST

Request parameters

The report options support different use cases and therefore accept different sets of parameters. Choose the option that best matches your requirements and the transaction details you need to provide.

Online Commerce

FieldTypeFormatMaxMinRequiredDescription
report-typeStringN/AN/AN/AYesSpecify Audit to generate an audit report.
formatStringN/AN/AN/ANoSpecify csv to generate an uncompressed report file or csv.gz to generate a compressed report file.
product-classesString or Null^(S|P|D)\*N/AN/ANoFilter the report by product class. Specify P to include only physical goods. If omitted, the report includes all product classes.
end-dateString^\\d{4}-\\d{2}-\\d{2}$N/AN/AYesSpecify the last date to include in the report.
fx-sourceStringN/AN/AN/AYesSpecify the exchange rate source to use for currency conversions.
tax-country-subdivision-codeString or Null\\w\\w-\\w\\w55NoFilter the report by country subdivision. For example, specify US-FL to include only transactions associated with Florida.
tax-country-codeString or NullN/A22NoFilter the report by country. Specify a two-letter country code.
currency-codeString or Null^\\w{3}$33NoConvert all monetary amounts in the report to the specified currency. If omitted, the report uses the country's default currency.
fx-date-typeStringN/AN/AN/AYesSpecify the date used to determine exchange rates for currency conversions. Valid values are day, prev-day, and end. Required when currency-code is specified.
tax-region-keyString or Null^[A-Z]{2}$22NoFilter the report by tax region. For example, specify EU to include only transactions within the European Union.
report-scopeString or NullN/AN/AN/ANoSpecify the scope of transactions to include in the report. See Report Scope Values.
transaction-typeString or NullN/AN/AN/ANoFilter the report by transaction type. Specify Sale to include sales transactions or Refund to include refund transactions. If omitted, both are included.
start-dateString^\\d{4}-\\d{2}-\\d{2}$N/AN/AYesSpecify the first date to include in the report.
fx-date-fieldString or NullN/AN/AN/ANoSpecify which transaction date to use when determining the exchange rate. Use tax-timestamp to use the tax calculation timestamp or invoice-timestamp to use the invoice timestamp. If omitted, tax-timestamp is used.

Standalone Vertex Validator

ParameterTypeFormatMaxMinRequiredDescription
start-dateString^\\d{4}-\\d{2}-\\d{2}$N/AN/AYesSpecify the first date in the reporting period.
end-dateString^\\d{4}-\\d{2}-\\d{2}$N/AN/AYesSpecify the last date in the reporting period.
tax-idsString and Nulln/aN/A1NoFilter the report to include only the specified Tax IDs. You can provide one or more Tax IDs.
region-keysString and Null^[A-Z]{2}$22NoFilter the report by region. For example, specify EU to include only records associated with the European Union. Specify Unknown to include records where the region could not be determined. If omitted, all regions are included.
validation-statusesStringn/aN/AN/ANoFilter the report by validation status. See Validation Status Values.
result-changedBoolean and Nulltrue or falseN/AN/ANoSpecify true to include only Tax IDs whose validation result changed during the reporting period. If false or omitted, all matching records are included.

Sample requests

The following is a sample request for Vertex O Series Cloud Online Commerce:

curl --request POST \
     --url https://reporting-api.marketplace.taxamo.com/api/v3/reports \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "report-type": "Audit",
  "parameters": {
    "fx-source": "ECB",
    "fx-date-type": "day",
    "format": "csv",
    "product-classes": "p",
    "end-date": "20-07-2023",
    "tax-country-subdivision-code": "US-FL",
    "tax-country-code": "US",
    "currency-code": "USD",
    "tax-region-key": "US",
    "report-scope": "full",
    "transaction-type": "sale",
    "start-date": "01-01-2024",
    "fx-date-field": "tax-timestamp"
  }
}
'

The following is a sample request for Standalone Vertex Validator:

curl --request POST \
     --url https://reporting-api.marketplace.taxamo.com/api/v3/reports \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "report-type": "Tax-ID",
  "parameters": {
    "fx-source": "ECB",
    "fx-date-type": "day",
    "start-date": "01-01-2023",
    "end-date": "01-03-2023",
    "tax-ids": [
      "ABC23232, DEF430923"
    ],
    "region-keys": [
      "unknown",
      "EU"
    ],
    "validation-statuses": [
      "syntax-valid-full-valid-cache-not-used",
      "syntax-valid-full-invalid-cache-not-used"
    ],
    "result-changed": true
  }
}
'

Sample responses

The following is a sample response for Vertex O Series Cloud Online Commerce:

{
  "uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "Queued",
  "message": "string"
}

The following is a sample response for Standalone Vertex Validator:

curl --request POST \
     --url https://reporting-api.marketplace.taxamo.com/api/v3/reports \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "report-type": "Tax-ID",
  "parameters": {
    "fx-source": "ECB",
    "fx-date-type": "day",
    "start-date": "01-01-2023",
    "end-date": "01-03-2023",
    "tax-ids": [
      "ABC23232, DEF430923"
    ],
    "region-keys": [
      "unknown",
      "EU"
    ],
    "validation-statuses": [
      "syntax-valid-full-valid-cache-not-used",
      "syntax-valid-full-invalid-cache-not-used"
    ],
    "result-changed": true
  }
}
'