POST https://api.legendonlineservices.co.uk/Cap2/GetExternalCoursePayment

Find all external course payments for the supplied location and the supplied date range

Request Parameters

From Body Type Description
EndDate DateTime The end date of the time period to search for.
LocationGuid Guid The location guid to search for.
StartDate DateTime The start date of the time period to search for.




{
  "LocationGuid": "a557e0e3-4ffd-4ab0-94ab-85a0e3630d13",
  "StartDate": "2025-04-25T14:10:52.0270506+01:00",
  "EndDate": "2025-04-25T14:10:52.0270506+01:00"
}

Response - (Status 200 - OK)

ExternalCoursePaymentResponse

Name Type Description
[ExternalCoursePaymentsPerContact] A collection of course payments per contact.
Name Type Description
ContactGuid Guid
[ExternalCoursePayment]
Name Type Description
Amount Decimal
DatePaid DateTime




{
  "CoursePayments": [
    {
      "ContactGuid": "d5f365e0-1fbe-4d42-b206-069787537a22",
      "CoursePayments": [
        {
          "Amount": 1.0,
          "DatePaid": "2025-04-25T14:10:52.0270506+01:00"
        },
        {
          "Amount": 1.0,
          "DatePaid": "2025-04-25T14:10:52.0270506+01:00"
        },
        {
          "Amount": 1.0,
          "DatePaid": "2025-04-25T14:10:52.0270506+01:00"
        }
      ]
    },
    {
      "ContactGuid": "d5f365e0-1fbe-4d42-b206-069787537a22",
      "CoursePayments": [
        {
          "Amount": 1.0,
          "DatePaid": "2025-04-25T14:10:52.0270506+01:00"
        },
        {
          "Amount": 1.0,
          "DatePaid": "2025-04-25T14:10:52.0270506+01:00"
        },
        {
          "Amount": 1.0,
          "DatePaid": "2025-04-25T14:10:52.0270506+01:00"
        }
      ]
    },
    {
      "ContactGuid": "d5f365e0-1fbe-4d42-b206-069787537a22",
      "CoursePayments": [
        {
          "Amount": 1.0,
          "DatePaid": "2025-04-25T14:10:52.0270506+01:00"
        },
        {
          "Amount": 1.0,
          "DatePaid": "2025-04-25T14:10:52.0270506+01:00"
        },
        {
          "Amount": 1.0,
          "DatePaid": "2025-04-25T14:10:52.0270506+01:00"
        }
      ]
    }
  ]
}

Remarks

This end point replaces the old GetExternalCoursePayment SOAP endpoint that is now obsolete.

Bundle(s)
Cap2