/
CREATE PRICES FOR ACTIVITIES

CREATE PRICES FOR ACTIVITIES

Next step is to upload prices – here it’s necessary to use logic of Tariffs and Price lists.

By default one tariff “Standard” will be already created, you can create more.

 

  1. To create a new tariff – use POST /ownProductTariffs

2. To create a new price list – use POST /ownProductPriceLists and link it with tariff

For example:

{

  "contractId": 2803579,

  "name": "Prices 2023",

  "prices": [

    {

      "paxId": 2803586,

      "serviceId": 2803713,

      "secondaryServiceId": 2803587,

      "amount": 40.0,

      "formula": "40",

      "placeType": "Base"

    },

 

    {

      "paxId": 2803593,

      "serviceId": 2803713,

      "secondaryServiceId": 2803587,

      "amount": 20.0,

      "formula": "20",

      "placeType": "Base"

    }

  ],

  "description": "Prices 2023",

  "active": true,

  "priceTypeCode": "OptionalMatrix",

  "calculationType": "PRICE_PER_SERVICE",

  "tariffLinks": [

    {

      "weekDays": [

        true,

        true,

        true,

        true,

        true,

        true,

        true       

      ],

      "tariffId": 2803588,

      "dateFrom": "2023-01-01",

      "dateTo": "2023-12-31",

      "priority": 1

    }

  ]

}

 

Notes:

  • "paxId" from GET /ownProductPaxes

  • "serviceId" from GET /ownExcursionServices

  • "secondaryServiceId" from GET /ownProductSecondaryServices

 3.   To create prices for extra services – use POST /ownProductPriceListExtras

 For example:

{

  "contractId": 2810327,

  "name": "Prices for extras",

  "weekDays": [

    true,

    true,

    true,

    true,

    true,

    true,

    true  

  ],

  "description": "Prices for extras in 2023",

  "bookingDates": [

    {

      "condition": "BETWEEN",

      "dateFrom": "2023-01-01",

      "dateTo": "2023-12-31"

    }

  ],

  "active": true,

  "extraServicePrices": [

    {

      "includeInFee": true,

      "includeInMarkUpAndCommission": true,

      "percentage": true,

      "active": true,

      "amount": 1,

      "availability": "REQUIRED",

      "priceCalculationType": "TOTAL_PRICE",

      "extraServiceId": 2810389

    },

    {

      "includeInFee": true,

      "includeInMarkUpAndCommission": false,

      "percentage": false,

      "active": true,

      "amount": 20,

      "availability": "OPTIONAL",

      "priceCalculationType": "FIRST_NIGHT",

      "extraServiceId": 2810388

    }

  ],

  "tariffLinks": [

    {

      "tariffId": 2810337,

      "dateFrom": "2023-01-01",

      "dateTo": "2023-12-31",

      "priority": 1

    }

  ]

}

 4.   To create discounts – use POST /ownProductDiscounts

5.   To define cancellation policy – use POST /ownProductPenalties

6.   To defined commission from supplier – use POST /ownProductCommissions