GET adventures/booking?bookingId={bookingId}&invoiceId={invoiceId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bookingId

integer

Default value is 0

invoiceId

integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

BookingGET
NameDescriptionTypeAdditional information
Activity

ActivityGET

None.

Adventurer

AdventurerBasicGET

None.

Addons

Collection of BookingAddonGET

None.

Packages

Collection of BookingAddonGET

None.

EndDate

date

None.

Id

integer

None.

Modified

date

None.

ModifiedBy

UserBasicGET

None.

Pax

integer

None.

Permits

Collection of PermitGET

None.

SessionType

SessionTypeGET

None.

StartDate

date

None.

BookingStatus

BookingStatusGET

None.

Transactions

Collection of BookingTransactionGET

None.

Response Formats

application/json, text/json

Sample:
{
  "activity": {
    "activityType": {
      "description": "sample string 1",
      "iconUrl": "sample string 2",
      "id": 3,
      "name": "sample string 4",
      "selectedIconUrl": "sample string 5",
      "unselectedIconUrl": "sample string 6"
    },
    "contacts": [
      {
        "contactNo": "sample string 1",
        "email": "sample string 2",
        "id": 3,
        "name": "sample string 4"
      },
      {
        "contactNo": "sample string 1",
        "email": "sample string 2",
        "id": 3,
        "name": "sample string 4"
      }
    ],
    "coordinates": null,
    "days": 1,
    "description": "sample string 2",
    "difficulty": {
      "description": "sample string 1",
      "iconUrl": "sample string 2",
      "id": 3,
      "name": "sample string 4",
      "selectedIconUrl": "sample string 5",
      "unselectedIconUrl": "sample string 6"
    },
    "distance": 3.0,
    "elevation": 4,
    "featuredImageId": 5,
    "features": [
      {
        "description": "sample string 1",
        "iconUrl": "sample string 2",
        "id": 3,
        "name": "sample string 4"
      },
      {
        "description": "sample string 1",
        "iconUrl": "sample string 2",
        "id": 3,
        "name": "sample string 4"
      }
    ],
    "id": 6,
    "location": null,
    "mapUrl": "sample string 7",
    "modified": "2024-09-08T02:54:29.2615141+00:00",
    "modifiedBy": null,
    "name": "sample string 9",
    "requirements": "sample string 10",
    "sessionTypes": [
      {
        "dayOfWeek": 1,
        "id": 2,
        "name": "sample string 3"
      },
      {
        "dayOfWeek": 1,
        "id": 2,
        "name": "sample string 3"
      }
    ],
    "site": null,
    "status": {
      "id": 1,
      "name": "sample string 2"
    },
    "startDate": "2024-09-08T02:54:29.2615141+00:00"
  },
  "adventurer": {
    "contactNumber": "sample string 1",
    "emailAddress": "sample string 2",
    "emergencyContactNo": "sample string 3",
    "id": 4,
    "fullName": "sample string 5",
    "rsaId": "sample string 6"
  },
  "addons": [
    {
      "id": 1,
      "status": {
        "id": 1,
        "name": "sample string 2"
      },
      "packageType": {
        "baseCost": 1.0,
        "baseUsers": 2,
        "core": true,
        "description": "sample string 4",
        "extraCost": 5.0,
        "id": 6,
        "modified": "2024-09-08T02:54:29.2615141+00:00",
        "modifiedBy": null,
        "name": "sample string 8",
        "status": {
          "id": 1,
          "name": "sample string 2"
        },
        "resourceGroups": [
          {
            "day": 1,
            "resourceGroupId": 2,
            "description": "sample string 3",
            "id": 4,
            "modified": "2024-09-08T02:54:29.2615141+00:00",
            "modifiedBy": null,
            "name": "sample string 6",
            "status": {
              "id": 1,
              "name": "sample string 2"
            }
          },
          {
            "day": 1,
            "resourceGroupId": 2,
            "description": "sample string 3",
            "id": 4,
            "modified": "2024-09-08T02:54:29.2615141+00:00",
            "modifiedBy": null,
            "name": "sample string 6",
            "status": {
              "id": 1,
              "name": "sample string 2"
            }
          }
        ]
      },
      "trxCost": 2.0,
      "pax": 3
    },
    {
      "id": 1,
      "status": {
        "id": 1,
        "name": "sample string 2"
      },
      "packageType": {
        "baseCost": 1.0,
        "baseUsers": 2,
        "core": true,
        "description": "sample string 4",
        "extraCost": 5.0,
        "id": 6,
        "modified": "2024-09-08T02:54:29.2615141+00:00",
        "modifiedBy": null,
        "name": "sample string 8",
        "status": {
          "id": 1,
          "name": "sample string 2"
        },
        "resourceGroups": [
          {
            "day": 1,
            "resourceGroupId": 2,
            "description": "sample string 3",
            "id": 4,
            "modified": "2024-09-08T02:54:29.2615141+00:00",
            "modifiedBy": null,
            "name": "sample string 6",
            "status": {
              "id": 1,
              "name": "sample string 2"
            }
          },
          {
            "day": 1,
            "resourceGroupId": 2,
            "description": "sample string 3",
            "id": 4,
            "modified": "2024-09-08T02:54:29.2615141+00:00",
            "modifiedBy": null,
            "name": "sample string 6",
            "status": {
              "id": 1,
              "name": "sample string 2"
            }
          }
        ]
      },
      "trxCost": 2.0,
      "pax": 3
    }
  ],
  "packages": [
    {
      "id": 1,
      "status": {
        "id": 1,
        "name": "sample string 2"
      },
      "packageType": {
        "baseCost": 1.0,
        "baseUsers": 2,
        "core": true,
        "description": "sample string 4",
        "extraCost": 5.0,
        "id": 6,
        "modified": "2024-09-08T02:54:29.2615141+00:00",
        "modifiedBy": null,
        "name": "sample string 8",
        "status": {
          "id": 1,
          "name": "sample string 2"
        },
        "resourceGroups": [
          {
            "day": 1,
            "resourceGroupId": 2,
            "description": "sample string 3",
            "id": 4,
            "modified": "2024-09-08T02:54:29.2615141+00:00",
            "modifiedBy": null,
            "name": "sample string 6",
            "status": {
              "id": 1,
              "name": "sample string 2"
            }
          },
          {
            "day": 1,
            "resourceGroupId": 2,
            "description": "sample string 3",
            "id": 4,
            "modified": "2024-09-08T02:54:29.2615141+00:00",
            "modifiedBy": null,
            "name": "sample string 6",
            "status": {
              "id": 1,
              "name": "sample string 2"
            }
          }
        ]
      },
      "trxCost": 2.0,
      "pax": 3
    },
    {
      "id": 1,
      "status": {
        "id": 1,
        "name": "sample string 2"
      },
      "packageType": {
        "baseCost": 1.0,
        "baseUsers": 2,
        "core": true,
        "description": "sample string 4",
        "extraCost": 5.0,
        "id": 6,
        "modified": "2024-09-08T02:54:29.2615141+00:00",
        "modifiedBy": null,
        "name": "sample string 8",
        "status": {
          "id": 1,
          "name": "sample string 2"
        },
        "resourceGroups": [
          {
            "day": 1,
            "resourceGroupId": 2,
            "description": "sample string 3",
            "id": 4,
            "modified": "2024-09-08T02:54:29.2615141+00:00",
            "modifiedBy": null,
            "name": "sample string 6",
            "status": {
              "id": 1,
              "name": "sample string 2"
            }
          },
          {
            "day": 1,
            "resourceGroupId": 2,
            "description": "sample string 3",
            "id": 4,
            "modified": "2024-09-08T02:54:29.2615141+00:00",
            "modifiedBy": null,
            "name": "sample string 6",
            "status": {
              "id": 1,
              "name": "sample string 2"
            }
          }
        ]
      },
      "trxCost": 2.0,
      "pax": 3
    }
  ],
  "endDate": "2024-09-08T02:54:29.2615141+00:00",
  "id": 2,
  "modified": "2024-09-08T02:54:29.2615141+00:00",
  "modifiedBy": null,
  "pax": 4,
  "permits": [
    {
      "accessCards": [
        {
          "cardNo": "sample string 1",
          "id": 2
        },
        {
          "cardNo": "sample string 1",
          "id": 2
        }
      ],
      "id": 1,
      "pax": 2,
      "permitType": {
        "baseCost": 1.0,
        "baseUsers": 2,
        "daysValid": 3,
        "description": "sample string 4",
        "extraCost": 5.0,
        "id": 6,
        "modified": "2024-09-08T02:54:29.2615141+00:00",
        "modifiedBy": null,
        "name": "sample string 8",
        "organisation": null,
        "status": {
          "id": 1,
          "name": "sample string 2"
        }
      },
      "plates": [
        {
          "plateNo": "sample string 1",
          "id": 2
        },
        {
          "plateNo": "sample string 1",
          "id": 2
        }
      ],
      "validFrom": "2024-09-08T02:54:29.2615141+00:00",
      "validTo": "2024-09-08T02:54:29.2615141+00:00"
    },
    {
      "accessCards": [
        {
          "cardNo": "sample string 1",
          "id": 2
        },
        {
          "cardNo": "sample string 1",
          "id": 2
        }
      ],
      "id": 1,
      "pax": 2,
      "permitType": {
        "baseCost": 1.0,
        "baseUsers": 2,
        "daysValid": 3,
        "description": "sample string 4",
        "extraCost": 5.0,
        "id": 6,
        "modified": "2024-09-08T02:54:29.2615141+00:00",
        "modifiedBy": null,
        "name": "sample string 8",
        "organisation": null,
        "status": {
          "id": 1,
          "name": "sample string 2"
        }
      },
      "plates": [
        {
          "plateNo": "sample string 1",
          "id": 2
        },
        {
          "plateNo": "sample string 1",
          "id": 2
        }
      ],
      "validFrom": "2024-09-08T02:54:29.2615141+00:00",
      "validTo": "2024-09-08T02:54:29.2615141+00:00"
    }
  ],
  "sessionType": {
    "dayOfWeek": 1,
    "id": 2,
    "name": "sample string 3"
  },
  "startDate": "2024-09-08T02:54:29.2615141+00:00",
  "bookingStatus": {
    "id": 1,
    "name": "sample string 2"
  },
  "transactions": [
    {
      "id": 1,
      "amount": 2.0,
      "bookingId": 3,
      "transactionDate": "2024-09-08T02:54:29.2615141+00:00",
      "transactionType": {
        "id": 1,
        "name": "sample string 2"
      },
      "transactionRef": "sample string 5"
    },
    {
      "id": 1,
      "amount": 2.0,
      "bookingId": 3,
      "transactionDate": "2024-09-08T02:54:29.2615141+00:00",
      "transactionType": {
        "id": 1,
        "name": "sample string 2"
      },
      "transactionRef": "sample string 5"
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'myPortalApi.Models.Coordinates' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'myPortalApi.Models.Coordinates' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.