GET https://api.legendonlineservices.co.uk/Joining/JourneyAgreement?JourneyId={JourneyId}&FacilityId={FacilityId}

Returns list of agreements for a given journey

Request Parameters

From Query Type Description
JourneyId Int32 ID of a Journey
FacilityId Int32 Optional. Facility ID

Response - (Status 200 - OK)

[JourneyAgreementModel]

Name Type Description
AgreementId Int32 Id of agreement
Name String Agreement Name
[JourneyAgreementPrice] Prices assigned to agreement
Name Type Description
AgreementPriceId Int32 Agreement price ID
BillingMethodId Int32 Billing Method ID
Description String Agreement Price Description
Gender Int32 Gender restriction
MaxAge Int32 Max age restriction
MinAge Int32 Min age restriction
Name String Agreement Price Name




[
  {
    "AgreementId": 1,
    "Name": "sample string 2",
    "AgreementPrices": [
      {
        "AgreementPriceId": 1,
        "BillingMethodId": 2,
        "Name": "sample string 3",
        "Description": "sample string 4",
        "MinAge": 1,
        "MaxAge": 1,
        "Gender": 1
      },
      {
        "AgreementPriceId": 1,
        "BillingMethodId": 2,
        "Name": "sample string 3",
        "Description": "sample string 4",
        "MinAge": 1,
        "MaxAge": 1,
        "Gender": 1
      },
      {
        "AgreementPriceId": 1,
        "BillingMethodId": 2,
        "Name": "sample string 3",
        "Description": "sample string 4",
        "MinAge": 1,
        "MaxAge": 1,
        "Gender": 1
      }
    ]
  },
  {
    "AgreementId": 1,
    "Name": "sample string 2",
    "AgreementPrices": [
      {
        "AgreementPriceId": 1,
        "BillingMethodId": 2,
        "Name": "sample string 3",
        "Description": "sample string 4",
        "MinAge": 1,
        "MaxAge": 1,
        "Gender": 1
      },
      {
        "AgreementPriceId": 1,
        "BillingMethodId": 2,
        "Name": "sample string 3",
        "Description": "sample string 4",
        "MinAge": 1,
        "MaxAge": 1,
        "Gender": 1
      },
      {
        "AgreementPriceId": 1,
        "BillingMethodId": 2,
        "Name": "sample string 3",
        "Description": "sample string 4",
        "MinAge": 1,
        "MaxAge": 1,
        "Gender": 1
      }
    ]
  },
  {
    "AgreementId": 1,
    "Name": "sample string 2",
    "AgreementPrices": [
      {
        "AgreementPriceId": 1,
        "BillingMethodId": 2,
        "Name": "sample string 3",
        "Description": "sample string 4",
        "MinAge": 1,
        "MaxAge": 1,
        "Gender": 1
      },
      {
        "AgreementPriceId": 1,
        "BillingMethodId": 2,
        "Name": "sample string 3",
        "Description": "sample string 4",
        "MinAge": 1,
        "MaxAge": 1,
        "Gender": 1
      },
      {
        "AgreementPriceId": 1,
        "BillingMethodId": 2,
        "Name": "sample string 3",
        "Description": "sample string 4",
        "MinAge": 1,
        "MaxAge": 1,
        "Gender": 1
      }
    ]
  }
]

Bundle(s)
Joining