Изменения

Перейти к: навигация, поиск

API Documentation

1201 байт добавлено, 09:41, 15 сентября 2021
м
Delivery Fee Calculation
<?xml version="1.0" encoding="UTF-8" ?>
<calculator>
<auth extra="8" login="login" pass="pass" /> <order> <calc pricetype=">CUSTOMER"</pricetype> <sender> townfrom=" <town>Moscow" </town> addressfrom=" <address>Lenin prospectstreet, 95"</address> zipcode <coords lat="66400055.621048" towntolon="380000030000037.604456"></coords> </sender> addressto <receiver> <zipcode>125480</zipcode> <town regioncode="Pushkinskaya str., 1078" pvzcountry="123RU">Saint Petersburg</town> <address>Petrovka 38 office 35</address> <pvz>124</pvz> l <coords lat="1055.680327" wlon="2037.604456"></coords> </receiver> <weight>5.1</weight> h <service>2</service> <paytype>CASH</paytype> <price>387.5</price> <deliveryprice>150</deliveryprice> <inshprice>387.5</inshprice> <packages> <package mass="301"></package> <package mass="32.75" servicelength="110" pricewidth="120020" inshpriceheight="120030"></package> </packages> <userid>123</userid> <groupid>456</groupid> paytype="CASH" </order>
</calculator>
</source>
*'''pricetype''' — price type. Possible values:
** '''CUSTOMER''' — delivery price for end customer. The default value.
** '''CLIENT''' — courier service price for client.
*'''townfrom''' - sender location.
*'''inshprice''' — declared value amount.
*'''paytype''' — payment type.
*'''userid''' — user ID. Virual field, optional. The field is used in the custom delivery rate settings. It defines the rule priority. You can use the field for CMS and CRM to set delivery fee for each customer individually.
*'''groupid''' — user group ID. Virual field, optional. The field is used in the custom delivery rate settings. It defines the rule priority. You can use the field for CMS and CRM to set delivery fee for each customer group individually.
Cash on delivery amount, declared value amount, and CARD payment type are used in service percent calculations set up in the delivery rate card, on the '''Other''' tab.
*'''mindeliverydate''' — closest delivery date considering holidays.
*'''deliveryprice''' — contains shipping cost details.
 
'''Note''': the actual server response contains the <code>price</code> attribute in the <code>calc</code> tag. It is retained for backward compatibility, use nested <code>price</code> tag instead.
== Getting Client Info ==

Навигация