Batch

Process a complete dataset through any available service.

Services

Services and service definitions

ServiceDescription
STD_HYGIENECASS standardization without Change of Address
ENH_HYGIENECASS standardization and Change of Address. Requires completed PAF and PAF ID
ENRICHMENT_ESSENTIAL_DEMOGRAPHICSEssential demographic append package
ENRICHMENT_COMPREHENSIVE_DEMOGRAPHICSComprehensive demographic append package
ENRICHMENT_GEOGRAPHYGeography append package
ENRICHMENT_FINANCIALFinancial demographic append package
ENRICHMENT_HOMEOWNERSHIPHomeownership demographic append package
ENRICHMENT_HOBBIES_INTERESTS_HOMEHobbies and Interests demographic append package
ENRICHMENT_HEALTH_WELLNESSHealth and Wellness demographic append package
ENRICHMENT_ENTERTAINMENT_TRAVEL_SPORTSEntertainment, Travel, and Sports interest demographic append package

Standard Workflow

Create a batch and store the id from the response:

/Batch/{accountId}/create

{
  "id": "string",
  "result": "string",
  "status": "string",
  "error": "string"
}

Start processing the batch id from /Batch/{accountId}/create:

/Batch/{accountId}/{batchId}/process

Periodically check the status of the batch until it has completed. The chart below lists all possible statuses and the processing state they represent.

/Batch/{accountId}/{batchId}/status

StatusDescriptionState
ACCEPTEDBatch request has been acceptedPending
CREATEDBatch request has been createdPending
PENDINGBatch processing start is pendingPending
STARTEDBatch has started processingRunning
PROCESSINGBatch is currently being processedRunning
COMPLETEDBatch has completed, use /Batch/{accountId}/{batchId}/result to retrieve the resultsCompleted without error
NOTFOUNDThe specified batch was not foundCompleted with error (not found)
ERRORAn error occurred while processing the batchCompleted with error
{
  "result": "string",
  "status": "string",
  "error": "string"
}

Retrieve the batch processing result. The result property in the response body contains the location of the processed data.

/Batch/{accountId}/{batchId}/result

{
  "result": "string",
  "status": "string",
  "error": "string"
}

Example Workflow

/Batch/{accountId}/create

Input

{
  "RemoteFile": "s3://a-remote-file/input.csv",
  "Optimization": "None",
  "Services": ["ENH_HYGIENE", "ENRICHMENT_COMPREHENSIVE_DEMOGRAPHICS"]
}

Output

{
  "id": "12345",
  "status": "CREATED"
}

/Batch/{accountId}/{batchId}/process

Input

{}

Output

{
  "id": "12345",
  "status": "STARTED"
}

/Batch/{accountId}/{batchId}/status

Output

{
  "id": "12345",
  "status": "PROCESSING"
}

/Batch/{accountId}/{batchId}/result

Output

{
  "id": "12345",
  "status": "COMPLETED",
  "result": "s3://a-remote-file/output.csv"
}

Results are available immediately following successful completion. No results will be produced any any error state.