I have a structure of data like this:
Method SIOrderRate
gets an orderData structure.
orderData has a field:
sizeData has parameters:
Dim danePrzesylki As BazyPolaczenia.SenditAPI.orderData = New BazyPolaczenia.SenditAPI.orderData
Dim danePaczki(0) As BazyPolaczenia.SenditAPI.singleSizesData danePaczki(0) = New BazyPolaczenia.SenditAPI.singleSizesData danePaczki(0).width = 100 danePaczki(0).height = 100 danePaczki(0).depth = 10 danePaczki(0).weight = 10 danePaczki(0).COD = 0 danePaczki(0).INS = 5 danePaczki(0).content = "Test" //... danePrzesylki.sizesData = danePaczki //...
Here I'm calling a method:
send.SIOrderRate(apiKey, userHash, danePrzesylki, "ups", "pl")
I get message error: "Do not select any packages to be sent" , but I should receive a price.
I'm using this SenditAPI system so I can help you. If you use danePrzesylki.sizesData
field, your fourth parametes in SIOrderRate() method cannot be "ups". UPS does not provide this kind of packages.
Try this when you call this method:
send.SIOrderRate(apiKey, userHash, danePrzesylki, "inpost", "pl")
Because only inpost uses this field so now it should be everything correct.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.