# Visit Sequence

> Specify the order in which visits should be performed.

Page: https://docs.icepack.ai/nvd/visit-sequence/

## Overview

### Applicable models
* NVD `nvd-hap0j2y4zlm1`

## Visit Sequence

The task sequence provides an interface to describe the sequence in which visits should be performed per territory per day.

### Schema definition 

```protobuf
message VisitSequence {
  required string territoryId = 1;
  required int32 dayIndex = 2;      // the day index (zero-based)
  repeated string visitId = 3;
}
```



### Fields

territoryId
: The [territory](/nvd/territory/) to which the sequence of visits should be applied.

dayIndex
: The day index for the visit sequence. Note that the day index is zero-based. I.e. for a period length of 20 days, the days should be numbered [0, 19]

visitId
: The [visit](/nvd/visit/) identifier for the next visit in the sequence on this specified day for the territory to be performed.


<hr>

