Magic AliExpress

FREEMIUM
От Gautruche | Обновлено 6 месяцев назад | eCommerce
Популярность

9.7 / 10

Задержка

2,971ms

Уровень обслуживания

100%

Назад ко всем обсуждениям

Wrong currency returned (Bug)

avatar
voltek99
2 месяца назад

Hello,

I’m using this API for my eCommerce website and for some of the items that I retrieve from the /products/{productId} endpoint, it is not returning the correct currency. I explicitly pass the language and targetCurrency in params in the reqeust options. This was working fine previously, but now for some items the currency returns either UAH or BGN instead of USD.

Could this be related to the new proxies that were added for security?

Thanks,
Voltek99

avatar
voltek99 commented 2 месяца назад

let options = {
method: ‘GET’,
headers: {
‘Content-Type’: ‘application/json’,
‘X-RapidAPI-Host’: ‘magic-aliexpress1.p.rapidapi.com’,
‘X-RapidAPI-Key’: ‘<redacted>’
},
params: { lg: ‘English’, targetCurrency: ‘United States Dollars’ }
};

let response = await fetch(https://magic-aliexpress1.p.rapidapi.com/api/product/${actualProductId}, options);

avatar
voltek99 commented 2 месяца назад

response is the following (copy/pasted from browser console):

app_sale_price: 648.53
app_sale_price_currency: "UAH"
commission_rate: "7.0%"
discount: "43%"
discount_rate: 57
evaluate_rate: "97.0%"
feedBackRating: {averageStar: ‘4.9’, averageStarRage: ‘98.4’, display: true, evarageStar: ‘4.9’, evarageStarRage: ‘98.4’, …}
first_level_category_id: 15
first_level_category_name: "Home & Garden"
hot_product_commission_rate: "8.0%"
lastest_volume: 446
metadata: {actionModule: {…}, aePlusModule: {…}, buyerProtectionModule: {…}, commonModule: {…}, couponModule: {…}, …}
original_price: "35.98"
original_price_currency: "USD"
productCategoriesBreadcrumb: (6) [{…}, {…}, {…}, {…}, {…}, {…}]
product_detail_url: "//www.aliexpress.com/item/1005002570507567.html"
product_id: "1005002570507567"
product_main_image_url: "https://ae04.alicdn.com/kf/H2b214911eb5c4e3f9944260df0d7aa1dS.jpg"
product_small_image_urls: {string: Array(5)}
product_title: "Creative Water Cup Ceramic Mug Nordic Coffee Cups with Big Handrip Colored Ceramics Big Juice Mugs"
promotion_link: "https://s.click.aliexpress.com/s/09Yy44G0bX7RxzPAyechALAr2qq143VpBnVgZe1q5knWwS7Yop2LG5LEwlffOpo5WvFkBGR6G0gXlf0jLQoXojvIfNSB2aDljkNcwmZAcEhDR8Aewqh1r1NT3bR57hDEEKkl8hw2WRZF9DUATl1UJezMcBbblzs2Ikg9MpOo6dkEgJaWtorGFMQcwySjuoO2bvVjuYSo8KE5BCWVW9Dy8UMVjBGsF2SMSK6yLNX6pCdlCTXEAOCPPLK1vwE4EGWuJwASkBfPocD5i38hZLIii05mFUnOgsDdblb1CbcvEVqkoZICXqyLWBkQkSaF7Sqxyfzj8xjRV5R4UfkkQRZK9V1wDuWgjH0HmEtvafxiuLjCHytsW5E8cn9zznS3OQBMPQzGCgcxSiQGIemgkBL17qdPKu5QvGwmK8KHDN0KrsII32XWBsUX81FpYmUZ2oEfaVrR4QXl0sdI9wVHpGsfNBnBHp2EcFlC6U0MQ4wIDC9DdrDvtdfZtPTM6iINtYjfRLl2oMbaoAZWoqXQGUStwS4HaL0dhfDqmRqcficmryay32YIwMx7xaQkDyTuOvJqP3jiMl6LBOFETGtQ2U0tDnW2xzQIDjVausBChOC4bZWczzKBjyuCL4WqqoQiQWZBvqU881g4kBjOsbV0x7hrhWASICN5zy7ztBQJvcxaFT5V1rlcDfWFKzt0fMNUnnAl3XAuFBWBViyB9USdy9D78fg5IsWdHW9qwPBJGwiloHd"
quantityObject: {activity: true, displayBulkInfo: false, features: {…}, i18nMap: {…}, id: 0, …}
relevant_market_commission_rate: "3.0%"
sale_price: "20.51"
sale_price_currency: "USD"
second_level_category_id: 100003290
second_level_category_name: "Kitchen,Dining & Bar"
shop_id: 5836245
shop_name: "Lazzy House Store"
shop_url: "//www.aliexpress.com/store/5836245"
skuList: (5) [{…}, {…}, {…}, {…}, {…}]
skuProperties: [{…}]
specs: (9) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]
target_app_sale_price: "20.51"
target_app_sale_price_currency: "USD"
target_original_price: "35.98"
target_original_price_currency: "USD"
target_sale_price: "20.51"
target_sale_price_currency: "USD"
wishedCount: 11685

avatar
voltek99 commented 2 месяца назад

I use the values in skuList, and in this example, they are not in USD:

skuList: Array(5)
0:
freightExt: “{“itemScene”:“default”,“p0”:“12000021199868748”,“p1”:“20.51”,“p10”:[86914,82052,103060,86884,84809,23002],“p3”:“USD”,“p4”:“990000”,“p5”:“0”,“p6”:“null”,“p7”:”{\“scItemId\”:\“665986008877\”}",“p9”:“US$20.51”}"
skuAttr: "14:200001438#khaki"
skuId: 12000021199868748
skuIdStr: "12000021199868748"
skuPropIds: "200001438"
skuVal:
availQuantity: 195
discount: "43"
inventory: 195
isActivity: true
optionalWarrantyPrice: []
skuActivityAmount:
currency: "UAH"
formatedAmount: "648,53грн."
value: 648.53
[[Prototype]]: Object
skuAmount: {currency: ‘UAH’, formatedAmount: ‘1137,69грн.’, value: 1137.69}
skuCalPrice: “35.98”

avatar
b2g.corporation commented 2 месяца назад

HI,

Thank you for your opening issue.
I’m analyzing your problem. I’ll get back to you shortly

Best regard,

avatar
b2g.corporation commented 2 месяца назад

Hi,

I have found the problem with my proxies provider. I’m developing the fix and I will deploy the new version tomorrow.

Best regards,

avatar
voltek99 commented 2 месяца назад

Hello,

Awesome that sounds great, thank you! I really appreciate it.

Kind Regards,
Voltek99

avatar
voltek99 commented 2 месяца назад

Hi,

I see that the bug is still present. I’m assuming the fix hasn’t been deployed yet?

Kind Regards,
Voltek99

avatar
b2g.corporation commented 2 месяца назад

Hello,

The implementation of issue is done, I release the next version and deploy it in few hours.
I will contact you when this one is deployed.

Best regards,

avatar
b2g.corporation commented 2 месяца назад

Hi,
New version deployed.
Best regards,

avatar
b2g.corporation commented 2 месяца назад

Discussion closes

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии
Оценки: 5 - Голосов: 1