D
D
densenator2021-03-06 21:39:11
PHP
densenator, 2021-03-06 21:39:11

How to correctly pass parameters to the Aliexpress API?

Hello.
Tell me how to correctly pass parameters in a request to api aliexpress?
Here https://developers.aliexpress.com/en/doc.htm?spm=a...
instructions for different programming languages. I am using php. Everything is clear and works. But for my needs I need another method. I found this description:
Method: cainiao.global.solution.inquiry
This method allows us to query our system for the code of the logistics solution applicable to the customer's order. This parameter is mandatory when creating a logistics order.
Request parameters:

{
  "locale" : "ru_RU" , // Пожалуйста, используйте ru_RU для российского бизнеса 
  "trade_order_param":{
    "trade_order_id" : 1000000 // ID заказа покупателя на AliExpress
  }, 
  "seller_info_param" : { // информация о продавце 
  
  },
  "package_params":[{
    "length" : 1 , // длина посылки в см
    "width" : 2 , // ширина посылки в см
    "height" : 3 , // высота посылки в см
    "weight" : 4 // вес посылки в граммах
  }]
}


How to convert this to php?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2021-03-06
@SilenceOfWinter

and where is the link to the description of this method?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question