Docs
DevelopersReferenceDays

API: List Days

GET
/v1/itineraries/{id}/days

The itinerary's days.

AuthorizationBearer <token>

A Travelyfe access token.

In: header

Path Parameters

id*string

The itinerary id (UUID).

Formatuuid

Header Parameters

Travelyfe-Itinerary-Shape?"clean"

Send clean on every request that reads or writes an itinerary. It is the shape this reference documents.

Value in

  • "clean"

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/itineraries/497f6eca-6276-4993-bfeb-53cbbbba6f08/days"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "image": {        "url": "http://example.com",        "source": "string"      },      "stops": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string",          "category": "beach",          "place": {            "name": "string",            "address": "string",            "coordinate": {              "latitude": -90,              "longitude": -180            },            "placeId": "string",            "countryCode": "string",            "timeZone": "string",            "code": "string"          },          "startTime": "string",          "startTimeSuggested": true,          "durationMinutes": 1,          "phoneNumber": "string",          "activity": {            "provider": "string",            "productCode": "string",            "rating": 0,            "reviewCount": 0,            "bookingUrl": "http://example.com",            "lastCheckedAt": "2019-08-24T14:15:22Z"          }        }      ],      "legs": [        {          "from": "string",          "mode": "walk",          "minutes": 0,          "metres": 0,          "source": "string",          "to": "string"        }      ]    }  ]}