PrimaryPackages

GET primary package

Changed on

Returns the primary package for the given ID

get/v3/administrations/{administration_id}/primary_packages/{id}

Request

Path parameters

administration_idstring required

Administration ID

idstring required

Resource ID

Query parameters

fields[primary_package]string

Fieldset. Specify a comma separated list of attributes to return

includestring

Includes list. Specify a comma separated list of resources to include.

Headers

Accept-Languagestring

Supported languages. A comma separated list with one or more of the following locales: cs, da-DK, de, de-AT, de-CH, en-US, en-GB, es, fr, fr-BE, fr-LU, it, nb, nl, nl-BE, pl, pt, tr, en, da. Default: 'en'.

Response

PrimaryPackageResponse

Example response

{
  "data": {
    "id": "1",
    "type": "primary_package",
    "relationships": {
      "administration": {
        "data": {
          "type": "administration"
        }
      },
      "book_period": {
        "data": {
          "type": "period"
        }
      },
      "stay_period": {
        "data": {
          "type": "period"
        }
      },
      "discount_action": {
        "data": {
          "type": "discount_action"
        }
      },
      "images": {
        "data": [
          {
            "type": "image"
          }
        ]
      },
      "package_entries": {
        "data": [
          {
            "type": "package_entry"
          }
        ]
      }
    }
  },
  "included": [
    {
      "id": "1",
      "type": "administration",
      "relationships": {
        "city": {
          "data": {
            "type": "city"
          }
        },
        "checkin_timetable": {
          "data": {
            "type": "timetable"
          }
        },
        "checkout_timetable": {
          "data": {
            "type": "timetable"
          }
        },
        "interactive_map": {
          "data": {
            "type": "interactive_map"
          }
        },
        "payment_handlers": {
          "data": [
            {
              "type": "payment_handler"
            }
          ]
        }
      }
    }
  ]
}

Changes

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      response property included/items/anyOf[DiscountAction]/relationships/discount_campaign deprecated

    • info

      response property included/items/anyOf[DiscountAction]/relationships/discount_campaign/data deprecated

    • info

      response property included/items/anyOf[DiscountAction]/relationships/discount_campaign/data/id deprecated

    • info

      response property included/items/anyOf[DiscountAction]/relationships/discount_campaign/data/meta deprecated

    • info

      response property included/items/anyOf[DiscountAction]/relationships/discount_campaign/data/meta/method deprecated

    • info

      response property included/items/anyOf[DiscountAction]/relationships/discount_campaign/data/meta/temp_id deprecated

    • info

      response property included/items/anyOf[DiscountAction]/relationships/discount_campaign/data/type deprecated