Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update LOS pricing #341

Open
syedsanahassan opened this issue May 1, 2021 · 5 comments
Open

Update LOS pricing #341

syedsanahassan opened this issue May 1, 2021 · 5 comments

Comments

@syedsanahassan
Copy link

Is their an API point to update rates for different length of stays for each day? I see today you have https://developers.bookingsync.com/reference/endpoints/los_records/ that only searches but is there an end point that we can use to update LOS stays with discount percentages?

Say for each day with different stay length we have % of discounts/premiums then we will just like to push these discount/premiums to you so you can calculate the matrix (point 7 https://developers.bookingsync.com/guides/understanding-los-records/)

Is this possible?


PUT /los-discount

{
"1":  10
"2": 12
"3": -8
"4": -10
"5": -15
}
@Azdaroth
Copy link
Member

Azdaroth commented May 3, 2021

Hi @syedsanahassan

LOS records are computed based on the other entities that contribute to the price calculation, so in that sense they are read-only. If you want to apply discounts per day then, depending on the complexity of the logic behind the discounts, you could use nightly rate maps or rates rules.

@syedsanahassan
Copy link
Author

@Azdaroth how can you apply rates for each day with different length of stay? Say for May 10 I want to set the following rats for different length of stays I believe the nightly rate maps doesn't allow it, can you point me to the link that will help us achieve what we are trying to do?

May 10
Length of stay 1 Rate 200
Length of stay 2 Rate 190
Length of stay 3 Rate 180
Length of stay 4 Rate 170
Length of stay 5 Rate 165
Length of stay 6 Rate 163
Length of stay 7 Rate 160
Length of stay 8 Rate 159
Length of stay 9 Rate 157
Length of stay 10 Rate 155
Length of stay 11 Rate 153
Length of stay 12 Rate 152
Length of stay 13 Rate 150
Length of stay 13 Rate 140

@Azdaroth
Copy link
Member

Azdaroth commented May 6, 2021

@syedsanahassan In such case, you would need to use rates rules, stay_at_least should probably do the job

@syedsanahassan
Copy link
Author

@Azdaroth can you give me the link to this particular API exactly with a link?

I am not able to see where you have "stay_at_least" anywhere in the https://developers.bookingsync.com/reference/endpoints/rates_rules/

@Azdaroth
Copy link
Member

@syedsanahassan It's a rates rule kind, all available kinds are listed here: https://developers.bookingsync.com/reference/enums/#rates-rules-types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants