1b.app
Link copied -

Khoroshop: please correct the parameters in the price levels "Export goods to Khoroshop"

Guys, please help. I can’t convey the price levels for good prices.

The support team, after looking at the logs, said that we were passing the parameters incorrectly. Can you correct them please?

This is what they wrote https://prnt.sc/VbAsjWKsfyZi, and below are their images

- https://prnt.sc/qBfO48JPHwVB

- https://prnt.sc/0rGPSgOiZJMb

Here is a link to the documentation on this issue https://horoshop.atlassian.net/wiki/spaces/DOCS/pages/1717633025/B2B#%D0%98%D0%B... D1%82-%D1%82%D0%BE%D0%B2%D0%B0%D1%80%D0%BE%D0%B2-%D0%B2-%D0%BA%D0%B0%D1%82 %D0%B0%D0%BB%D0%BE%D0%B3

I am using a test action in Automations https://prnt.sc/-4a3HDCRCJZJ

Attached the log file
Original question is available on version: ru

Answers:

Good afternoon. You yourself configure what to send to this field. In this case, this is the “Horoshop price type identifier” setting, change the names of your prices there to the desired ids and everything will work
26.02.2024, 17:50
Original comment available on version: ru

And it’s not safe to leave full logs; for example, yours contains a token that can probably now be used to do some kind of mess in the site’s API. If possible, reset all received tokens on the site so that no one can use them
26.02.2024, 17:54
Original comment available on version: ru

Good afternoon

Care Department
OneBox production wrote:
You yourself configure what to send to this field. In this case, this is the “Horoshop price type identifier” setting, change the names of your prices there to the desired ids and everything will work

I understand correctly that you need to insert it like this https://prnt.sc/nW5g7yn_MIEM, I just didn’t find an identifier that gives a good answer https://prnt.sc/RTq7vrlRnVLt

Care Department
OneBox production wrote:
And it’s not safe to leave full logs; for example, yours contains a token that can probably now be used to do some kind of mess in the site’s API. If possible, reset all received tokens on the site so that no one can use them

Exactly(((You are right(((When I sent this request, I already understood it((Thanks for the recommendation
26.02.2024, 18:17
Original comment available on version: ru


Yurchenko Roman Sergeevich wrote:
I understand correctly that you need to insert it like this https://prnt.sc/nW5g7yn_MIEM, I just didn’t find an identifier that gives a good answer https://prnt.sc/RTq7vrlRnVLt

You need to transfer the id of the price for good there, what you write there, we will transfer it there one to one. From which price in the box to take the price you choose on the left
27.02.2024, 10:39
Original comment available on version: ru

in level_id the api transmits what you enter in the line on the right 1 to 1 without any changes. In your case, this should be the id of the price in Good.
27.02.2024, 10:44
Original comment available on version: ru


Care Department
OneBox production wrote:
You need to transfer the id of the price for good there, what you write there, we will transfer it there one to one. From which price in the box to take the price you choose on the left

I just tried to write there, but the result was zero.
- And Box price level ID - https://prnt.sc/3Q78LefB-AyZ
- And the name of the price level in boxing - https://prnt.sc/QkD9OOVqUoWZ
- And "Index of sorting" Good - https://prnt.sc/Rl8vSgrTatnj
- And Just numbers - https://prnt.sc/JBbA0hEmdSQb
The support Khoroshop is in general trouble. I’ve been communicating since yesterday, and all they do is send me a link to the instructions.
27.02.2024, 11:09
Original comment available on version: ru


Care Department
OneBox production wrote:
In your case, this should be the id of the price in Good.

That’s my logic, but since yesterday I haven’t been able to understand and find out from Khoroshop where their “level_id”s are.
thanks for the help
27.02.2024, 11:12
Original comment available on version: ru



Care Department

OneBox production wrote:

in level_id the api transmits what you enter in the line on the right 1 to 1 without any changes. In your case, this should be the id of the price in Good.



Finally I got an answer from good guy. In order to indicate the “Horoshop price type ID” in our Box, you need to perform an API request with which you can get these IDs. Here is the link https://horoshop.atlassian.net/wiki/spaces/DOCS/pages/1717633025/B2B#%D0%AD%D0%B... %82-%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D0%B5%D0%B9-%D1%86%D0%B5%D0%BD

Tell me how this can be done?

I am attaching a screenshot of the response from the good guy.
27.02.2024, 12:06
Original comment available on version: ru


Yurchenko Roman Sergeevich wrote:
I just tried to write there, but the result was zero.
- And Box price level ID - https://prnt.sc/3Q78LefB-AyZ
- And the name of the price level in boxing - https://prnt.sc/QkD9OOVqUoWZ
- And "Index of sorting" Good - https://prnt.sc/Rl8vSgrTatnj
- And Just numbers - https://prnt.sc/JBbA0hEmdSQb

Well, there is no option with id.

Yurchenko Roman Sergeevich wrote:
That’s my logic, but since yesterday I haven’t been able to understand and find out from Khoroshop where their “level_id”s are.
thanks for the help

go to the page for editing the price level in Goodwill, the url will most likely contain the desired id. If instead of going to the page there is some kind of pop-up window, then look at the request that is sent, there will also be an id there. Well, or directly ask how to get this id when you are in the admin panel, unfortunately I don’t know such information
27.02.2024, 12:06
Original comment available on version: ru



Yurchenko Roman Sergeevich wrote:



Care Department

OneBox production wrote:

in level_id the api transmits what you enter in the line on the right 1 to 1 without any changes. In your case, this should be the price id in Good.



Finally I got an answer from good guy. In order to indicate the “Horoshop price type ID” in our Box, you need to execute an API request with which you can get these IDs. Here is the link https://horoshop.atlassian.net/wiki/spaces/DOCS/pages/1717633025/B2B#%D0%AD%D0%B... %82-%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D0%B5%D0%B9-%D1%86%D0%B5%D0%BD

Tell me how this can be done?

I am attaching a screenshot of the response from the good guy.



thank you, you cheered me up) to find out some identifier you need to knock on the API)))

If you don’t find the “hack” according to the instructions above, you’ll just need to get a token in postman or console and make a request where they ask, the answer will contain information with an id. I can do it today for 1 hour of revision, if you need it and can’t do it yourself
27.02.2024, 12:09
Original comment available on version: ru



Care Department

OneBox production wrote:

Well, there is no option with id.



Yes, it wasn’t there, since I didn’t find their id in their admin panel (((



Care Department

OneBox production wrote:

go to the page for editing the price level in Goodwill, the url will most likely contain the desired id. If instead of going to the page there is some kind of pop-up window, then look at the request that is sent, there will also be an id there. Well, or directly ask how to get this id when you are in the admin panel, unfortunately I don’t know such information



This data is not in the URL(((
27.02.2024, 12:15
Original comment available on version: ru


Care Department
OneBox production wrote:
thank you, you cheered me up) to find out some identifier you need to knock on the API)))

This also made me laugh and cry. They can’t just write to the admin panel

Care Department
OneBox production wrote:
If you don’t find the “hack” according to the instructions above, you’ll just need to get a token in postman or console and make a request where they ask, the answer will contain information with an id. I can do it today in 1 hour of revision, if you need it and can’t do it yourself

Issue an invoice. I’m ready to pay now, since there is no id in the admin panel
27.02.2024, 12:18
Original comment available on version: ru

{
"status": "OK",
"response": {
"price_levels": [
{
"id": 1,
"title": "Скрыть цены"
},
{
"id": 2,
"title": "Розничная цена"
},
{
"id": 3,
"title": 2
},
{
"id": 4,
"title": 3
}
]
}
}
27.02.2024, 12:52

it is in the link, you just need to run it through urldecode
https://www.urldecoder.org/ paste the link into the field and click decode
27.02.2024, 12:53
Original comment available on version: ru



Care Department

OneBox production wrote:

it is in the link, you just need to run it through urldecode

https://www.urldecoder.org/ paste the link into the field and click decode



Thank you very much for your help) While I was testing your option, Khoroshopa support sent a picture of how you can find out the ID without an API request (I tried to find out this for a day) :)))

Here's a screenshot
27.02.2024, 13:02
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment